Function at 0x407485
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x3fc]
sub esp, 0x47c
mov eax, dword [0x413040]
xor eax, ebp
push esi
mov esi, ecx
mov edx, dword [esi + 0x4c]
mov ecx, dword [esi + 8]
mov dword [ebp + 0x3f8], eax
mov eax, dword [esi + 0xc]
cmp edx, eax
push edi
mov edi, dword [esi + 0x48]
mov dword [ebp - 0x74], esi
ja 0x4074d9
jb 0x4074bd
cmp edi, ecx
jae 0x4074d9
sub ecx, edi
sbb eax, edx
xor edx, edx
cmp eax, edx
jb 0x4074d9
ja 0x4074d1
cmp ecx, dword [ebp + 0x404]
jbe 0x4074d9
xor eax, eax
inc eax
jmp 0x40775b
xor eax, eax
push ebx
mov dword [ebp + 0x3f0], eax
mov dword [ebp + 0x3f4], eax
mov word [ebp + 0x1e4], ax
push str..tmp
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x70]
push eax
mov word [ebp + 0x3ec], 0x5c
call fcn.004032b9
mov eax, dword [eax]
lea ebx, [ebp - 0x6c]
call fcn.00405667
mov edi, eax
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff4
cmp eax, dword [0x413054]
je 0x40752a
push eax
call fcn.004018e7
test edi, edi
je 0x407562
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x6c]
call fcn.0040542c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff4
cmp eax, dword [0x413054]
je 0x407556
push eax
call fcn.004018e7
lea eax, [ebp - 0x6c]
call fcn.0040563e
test eax, eax
jne 0x40752e
mov eax, dword [esi + 0x3c]
dec eax
mov dword [ebp - 0x7c], eax
js 0x407618
lea edi, [esi + 0x38]
jmp 0x407577
mov eax, dword [ebp - 0x7c]
mov esi, eax
call fcn.004087e2
mov ecx, dword [eax]
add ecx, 8
lea esi, [ebp - 0x70]
call fcn.00401c29
mov eax, dword [ebp - 0x70]
lea ebx, [ebp - 0x6c]
call fcn.00405667
test eax, eax
je 0x4075c1
mov ecx, ebx
call fcn.0040879a
mov esi, dword [ebp - 0x7c]
mov ebx, eax
mov eax, edi
call fcn.004087bc
call fcn.004087e2
mov ecx, dword [eax]
add ecx, 0x14
lea eax, [ebp - 0x6c]
call fcn.0040877b
jmp 0x4075f8
push dword [ebp - 0x70]
lea eax, [ebp - 0x78]
push eax
call fcn.00407313
push eax
mov eax, dword [ebp - 0x74]
add eax, 0x50
push eax
call fcn.00407da0
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff4
cmp eax, dword [0x413054]
je 0x4075ee
push eax
call fcn.004018e7
mov eax, dword [ebp - 0x7c]
mov ecx, edi
call fcn.00408835
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff4
cmp eax, dword [0x413054]
je 0x40760c
push eax
call fcn.004018e7
dec dword [ebp - 0x7c]
jns 0x407574
mov esi, dword [ebp - 0x74]
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0xc]
cmp edx, eax
mov edi, dword [esi + 0x48]
mov ecx, dword [esi + 8]
ja 0x40764a
jb 0x40762e
cmp edi, ecx
jae 0x40764a
sub ecx, edi
sbb eax, edx
xor edx, edx
cmp eax, edx
jb 0x40764a
ja 0x407642
cmp ecx, dword [ebp + 0x404]
jbe 0x40764a
xor esi, esi
inc esi
jmp 0x407750
lea edi, [esi + 0x38]
mov ecx, edi
call fcn.0040871f
mov edx, dword [ebp + 0x404]
mov ebx, dword [esi + 0x3c]
lea ecx, [edx + 0x1400000]
xor eax, eax
dec ebx
mov dword [ebp - 0x80], ecx
add ecx, dword [esi + 0x48]
adc eax, dword [esi + 0x4c]
cmp eax, dword [esi + 0xc]
jb 0x407733
ja 0x40768e
cmp ecx, dword [esi + 8]
jbe 0x407733
jmp 0x40768e
mov esi, dword [ebp - 0x74]
mov edx, dword [ebp + 0x404]
test ebx, ebx
jl 0x407733
mov esi, ebx
call fcn.004087e2
mov ecx, dword [eax]
add ecx, 8
lea esi, [ebp - 0x70]
call fcn.00401c29
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4076ef
push dword [ebp - 0x70]
lea eax, [ebp - 0x78]
push eax
call fcn.00407313
mov esi, dword [ebp - 0x74]
push eax
lea eax, [esi + 0x50]
push eax
call fcn.00407da0
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff4
cmp eax, dword [0x413054]
je 0x4076e4
push eax
call fcn.004018e7
mov eax, ebx
mov ecx, edi
call fcn.00408835
jmp 0x4076f2
mov esi, dword [ebp - 0x74]
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff4
dec ebx
cmp eax, dword [0x413054]
je 0x407707
push eax
call fcn.004018e7
mov ecx, dword [ebp - 0x80]
add ecx, dword [esi + 0x48]
push 0
pop eax
adc eax, dword [esi + 0x4c]
cmp eax, dword [esi + 0xc]
ja 0x407685
jb 0x40772a
mov eax, dword [ebp - 0x74]
cmp ecx, dword [eax + 8]
ja 0x407685
mov esi, dword [ebp - 0x74]
mov edx, dword [ebp + 0x404]
xor eax, eax
add edx, dword [esi + 0x48]
adc eax, dword [esi + 0x4c]
cmp eax, dword [esi + 0xc]
ja 0x40774c
jb 0x407747
cmp edx, dword [esi + 8]
jae 0x40774c
xor eax, eax
inc eax
jmp 0x40774e
xor eax, eax
mov esi, eax
lea eax, [ebp - 0x6c]
call fcn.0040571d
mov eax, esi
pop ebx
mov ecx, dword [ebp + 0x3f8]
pop edi
xor ecx, ebp
pop esi
call fcn.0040f143
add ebp, 0x3fc
leave
ret 4