Function at 0x407c50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44a9cc
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x45d740]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
mov eax, dword [0x45d740]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov esi, ecx
mov byte [esi + 0x8c4], 1
call fcn.00412fcd
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407cb3
push 0x80004005
call fcn.00402350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0
push 0
mov dword [esp + 0x148], 0
mov ecx, dword [esi + 0x86c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x1032
push ecx
call edi
cmp eax, 1
push 0
push 0
jbe 0x407d15
mov edx, dword [esi + 0x86c]
push 0x1032
push edx
call edi
push eax
lea eax, [esp + 0x1c]
push 0x4526b0
push eax
call fcn.0040b0d0
add esp, 0xc
jmp 0x407daf
mov ecx, dword [esi + 0x86c]
push 0x1042
push ecx
call edi
push 0
push eax
lea edx, [esp + 0x1c]
lea ebx, [esi + 0x84c]
push edx
mov ecx, ebx
call fcn.00410db0
push 0
push 0
mov byte [esp + 0x148], 1
mov eax, dword [esi + 0x86c]
push 0x1042
push eax
call edi
push eax
mov ecx, ebx
call fcn.004107ff
cmp eax, 1
jne 0x407d70
mov ecx, dword [esp + 0x14]
push ecx
push 0x4526c8
lea edx, [esp + 0x20]
push edx
jmp 0x407d7f
mov eax, dword [esp + 0x14]
push eax
push 0x4526f4
lea ecx, [esp + 0x20]
push ecx
call fcn.0040b0d0
mov byte [esp + 0x14c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407daf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x103
lea ecx, [esp + 0x29]
push 0
push ecx
mov byte [esp + 0x30], 0
call fcn.00435f30
add esp, 0xc
lea edx, [esp + 0x24]
push 0x24
push edx
mov ebx, 0x45270c
call fcn.0040c680
mov ebx, dword [esp + 0x20]
add esp, 4
push eax
mov eax, dword [esi + 0x20]
push ebx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x407fc3
lea ecx, [esi + 0x84c]
push 0
call fcn.0041355b
lea ecx, [esi + 0x7f8]
push 0
call fcn.0041355b
lea ecx, [esi + 0x7a4]
push 0
call fcn.0041355b
lea ecx, [esi + 0x750]
push 0
call fcn.0041355b
mov ecx, dword [esi + 0x86c]
push 2
push 0xffffffffffffffff
push 0x100c
push ecx
call edi
mov edi, eax
add edi, 1
je 0x407f77
jmp 0x407e50
mov edx, dword [esi + 0x86c]
push 2
lea ebx, [edi - 1]
push ebx
push 0x100c
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
add eax, 1
push 0
mov edi, eax
push ebx
lea eax, [esp + 0x28]
push eax
lea ecx, [esi + 0x84c]
call fcn.00410db0
push eax
lea eax, [esi + 0x6b0]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x14c], 2
call fcn.0040a480
add esp, 0xc
mov byte [esp + 0x140], 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407ec5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
lea ecx, [esi + 0x84c]
call fcn.004107ff
test eax, eax
je 0x407f38
mov edx, dword [esp + 0x14]
mov ebx, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov dword [esp + 0x1c], ebx
add ebx, 1
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, ebx
or eax, ecx
jge 0x407f02
push ebx
lea ecx, [esp + 0x18]
call fcn.004023a0
mov edx, dword [esp + 0x14]
test ebx, ebx
mov ecx, dword [esp + 0x1c]
mov byte [ecx + edx], 0x5c
jl 0x40800a
mov eax, dword [esp + 0x14]
cmp ebx, dword [eax - 8]
jg 0x40800a
mov dword [eax - 0xc], ebx
mov edx, dword [esp + 0x14]
mov byte [ebx + edx], 0
mov eax, dword [esp + 0x14]
push eax
mov ecx, esi
call fcn.00408b70
jmp 0x407f43
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [esp + 0x140], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407f6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x407e50
mov ebx, dword [esp + 0x18]
push 1
lea ecx, [esi + 0x84c]
call fcn.0041355b
push 1
lea ecx, [esi + 0x7f8]
call fcn.0041355b
push 1
lea ecx, [esi + 0x7a4]
call fcn.0041355b
push 1
lea ecx, [esi + 0x750]
call fcn.0041355b
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x452250
call fcn.0040ad70
mov ecx, esi
call fcn.00403860
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x140], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407fe6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00431676
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402350
int3