Function at 0x418250
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x457d8c
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46be4c]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
mov ebp, 1
je 0x418546
push 0x104
lea eax, [esp + 0x28]
push ebx
push eax
call fcn.004413c0
lea ecx, [esp + 0x30]
push ecx
call fcn.0040cb30
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0x10
push esi
call edi
test eax, eax
je 0x4184f1
lea ebx, [ebx]
push esi
lea ecx, [esp + 0x1c]
call fcn.004027b0
push 3
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x240], ebx
call fcn.004072d0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x23c], 1
call fcn.00402020
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x238], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41832a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
lea ecx, [esp + 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x24]
push edx
call edi
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push ecx
call fcn.00443378
add esp, 0xc
test eax, eax
je 0x41839e
lea edx, [esp + 0x24]
push edx
call edi
lea ecx, [esp + 0x24]
sub ecx, 1
cmp byte [eax + ecx], 0x5c
push esi
je 0x418383
lea edx, [esp + 0x28]
push edx
push 0x45ce28
lea eax, [esp + 0x134]
push eax
jmp 0x418395
lea ecx, [esp + 0x28]
push ecx
push 0x45ccb8
lea edx, [esp + 0x134]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push ebx
push esi
call fcn.0040cd10
add esp, 8
test eax, eax
jne 0x4184b4
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
cmp ebp, ebx
jne 0x4183ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
cmp eax, 0x1e
ja case.0x4183dd.4
movzx ecx, byte [eax + 0x418554]
jmp dword [ecx*4 + 0x41854c]
mov ebp, 1
jmp 0x4184b4
lea edx, [esp + 0x128]
push edx
lea ecx, [esp + 0x18]
call fcn.004027b0
push 3
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x240], 2
call fcn.004072d0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x23c], 3
call fcn.00402020
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x238], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418451
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push 0x45dc8c
push ecx
call fcn.00440d82
add esp, 8
test eax, eax
je 0x41847d
mov edx, dword [esp + 0x14]
push 0x45dc88
push edx
call fcn.00440d82
add esp, 8
test eax, eax
jne 0x41848d
lea eax, [esp + 0x128]
push eax
call fcn.00416e70
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x238], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4184b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call edi
lea esi, [esi + eax + 1]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x238], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4184e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call edi
test eax, eax
jne 0x4182d0
mov eax, ebp
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0044027a
add esp, 0x228
ret
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x238], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418546
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4184f3