Function at 0x4027f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474bbc
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x496694]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x208
xor edi, edi
lea edx, [ebp - 0x21c]
push edi
push edx
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x25c], ecx
call fcn.0041a050
add esp, 0xc
push 0x104
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x21c]
push 0x5c
push ecx
call fcn.00410030
add esp, 8
cmp eax, edi
je 0x402871
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x402880
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
mov ecx, 0x4995b0
call fcn.00401290
lea esi, [ebp - 0x274]
call fcn.00401bd0
lea esi, [ebp - 0x238]
lea ebx, [ebp - 0x274]
mov dword [ebp - 4], edi
call fcn.00401cd0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x228], edi
je 0x4029a6
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x4028e5
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [ebp - 0x254]
lea ebx, [ebp - 0x274]
call fcn.00401cd0
mov esi, eax
lea ecx, [ebp - 0x238]
mov ebx, 8
cmp ecx, esi
je 0x40297f
cmp dword [ebp - 0x224], ebx
jb 0x402925
mov edx, dword [ebp - 0x238]
push edx
call fcn.0040fc81
add esp, 4
xor eax, eax
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], edi
mov word [ebp - 0x238], ax
cmp dword [esi + 0x14], ebx
jae 0x40295d
mov eax, dword [esi + 0x10]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x238]
push esi
push edx
call fcn.0040f920
add esp, 0xc
jmp 0x402967
mov eax, dword [esi]
mov dword [ebp - 0x238], eax
mov dword [esi], edi
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x228], ecx
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x224], edx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov byte [ebp - 4], 1
cmp dword [ebp - 0x240], ebx
jb 0x40299a
mov eax, dword [ebp - 0x254]
push eax
call fcn.0040fc81
add esp, 4
cmp dword [ebp - 0x228], edi
jne 0x4028d0
mov edx, dword [0x4995b0]
mov ebx, 8
cmp dword [0x4995c4], ebx
jae 0x4029be
mov edx, 0x4995b0
xor ecx, ecx
mov eax, edx
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], edi
mov word [ebp - 0x254], cx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4029e0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x254]
call fcn.00401290
mov ecx, dword [ebp - 0x258]
lea edx, [ebp - 0x254]
push edx
mov byte [ebp - 4], 3
call fcn.00402ac0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x240], ebx
jb 0x402a2d
mov eax, dword [ebp - 0x254]
push eax
call fcn.0040fc81
add esp, 4
mov eax, dword [ebp - 0x25c]
cmp dword [eax + 0x10], edi
jne 0x402a3d
call fcn.0040df3e
mov ecx, dword [eax + 0x10]
fld1
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ecx
fstp dword [esp]
call eax
cmp dword [ebp - 0x224], ebx
jb 0x402a64
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.0040fc81
add esp, 4
mov eax, dword [ebp - 0x274]
xor edx, edx
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], edi
mov word [ebp - 0x238], dx
cmp eax, 0xffffffff
je 0x402a8f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x270]
cmp eax, edi
je 0x402aa2
push eax
call fcn.0040fc81
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040f787
mov esp, ebp
pop ebp
ret 4