Function at 0x402520
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x44fb69
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x46c8b0]
xor eax, esp
mov dword [esp + 0x140], eax
push ebp
push esi
push edi
mov eax, dword [0x46c8b0]
xor eax, esp
push eax
lea eax, [esp + 0x154]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x168]
mov dword [esp + 0x24], ebp
lea ecx, [esp + 0x28]
mov dword [esp + 0x15c], 0
call fcn.004189a0
mov byte [esp + 0x15c], 1
call fcn.00417b8f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40259b
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x164]
push 0
push 0
push esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x168], 2
call fcn.004189b6
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00418efd
test eax, eax
je 0x4027d5
mov edi, edi
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
jg 0x4025ef
or esi, 0xffffffff
jmp 0x402609
push 0x2c
push eax
call fcn.00434411
add esp, 8
test eax, eax
jne 0x402603
or esi, 0xffffffff
jmp 0x402609
sub eax, dword [esp + 0x10]
mov esi, eax
push esi
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x18]
call fcn.00402030
mov eax, dword [eax]
lea edx, [esp + 0x3c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x402620
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40264c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 1
push esi
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.004024d0
mov ecx, dword [eax]
mov esi, dword [esp + 0x10]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
mov byte [esp + 0x15c], 3
je 0x4026c1
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4026b3
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4026b3
push eax
call fcn.004011e0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4026a6
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x24]
jmp 0x4026c1
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00401fa0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x15c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4026e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
jg 0x4026f8
or esi, 0xffffffff
jmp 0x402712
push 0x2c
push eax
call fcn.00434411
add esp, 8
test eax, eax
jne 0x40270c
or esi, 0xffffffff
jmp 0x402712
sub eax, dword [esp + 0x10]
mov esi, eax
push esi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402030
mov eax, dword [eax]
push eax
call fcn.00433ed7
mov dword [esp + 0x148], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402753
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 1
push esi
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
call fcn.004024d0
mov eax, dword [eax]
push eax
call fcn.00433ed7
mov dword [esp + 0x14c], eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402797
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
sub esp, 0x114
mov edi, esp
mov ecx, 0x45
lea esi, [esp + 0x150]
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, ebp
call fcn.00401b30
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00418efd
test eax, eax
jne 0x4025e0
mov esi, dword [esp + 0x164]
lea ecx, [esp + 0x28]
call fcn.00418d66
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x15c], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40280d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x15c], 0
call fcn.00418dca
lea eax, [esi - 0x10]
mov dword [esp + 0x15c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402845
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x154]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.00433eb7
add esp, 0x150
ret 8