Function at 0x402400
Capabilities:
Delete file

Disassembly:
sub esp, 0x6c
push ebx
push ebp
mov eax, 1
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x84]
push edi
push eax
lea ecx, [esp + 0x8c]
call fcn.004021d0
push 0x4172fa
push 0x4172fc
lea ecx, [esp + 0x90]
call fcn.00401e20
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.004020b0
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.004020b0
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.004020b0
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.004020b0
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.004020b0
lea edx, [esp + 0xb0]
push edx
lea eax, [esp + 0x58]
push eax
call fcn.004020b0
lea ecx, [esp + 0xb8]
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.004020b0
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x60]
push ecx
call fcn.004020b0
add esp, 0x40
lea edx, [esp + 0x88]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004020b0
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0040790e
mov ebx, eax
mov eax, dword [esp + 0x30]
movzx edx, bh
push eax
mov dword [0x41d818], edx
and ebx, 0xff
call fcn.0040790e
mov ecx, dword [esp + 0x30]
mov esi, eax
push ecx
mov dword [esp + 0x28], esi
call fcn.0040790e
add esp, 0x14
test esi, esi
mov dword [esp + 0x10], eax
jne 0x40252f
mov dword [esp + 0x14], 0x140
mov esi, dword [esp + 0x14]
test eax, eax
jne 0x40253b
mov dword [esp + 0x10], 0xf0
mov edx, dword [esp + 0x30]
push edx
call fcn.0040790e
mov edi, eax
mov eax, esi
cdq
sub eax, edx
sar eax, 1
neg eax
add edi, eax
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x4c], edi
call fcn.0040790e
mov ebp, eax
mov eax, dword [esp + 0x18]
cdq
sub eax, edx
sar eax, 1
add esp, 8
sub ebp, eax
test edi, edi
jge 0x40257c
mov dword [esp + 0x44], 0
test ebp, ebp
jge 0x402582
xor ebp, ebp
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.004020b0
mov eax, dword [esp + 0x90]
add eax, 0xfffffff0
push eax
call fcn.004014a0
lea edi, [eax + 0x10]
mov eax, dword [edi - 0xc]
add esp, 0xc
test eax, eax
mov dword [esp + 0x48], edi
jne 0x4025ca
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x1c]
push eax
mov ecx, 0x41d81c
call fcn.00402030
jmp 0x40261b
push ebx
push ecx
lea ecx, [edi - 0x10]
mov dword [esp + 0x64], esp
mov esi, esp
push ecx
call fcn.004014a0
lea edx, [esp + 0x5c]
add esp, 4
add eax, 0x10
push edx
mov dword [esi], eax
call fcn.00402280
add esp, 0xc
push eax
mov ecx, 0x41d81c
call fcn.00402030
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40261b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x41d81c]
cmp dword [ecx - 0xc], 0
jne 0x40263b
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4027f4
mov edx, dword [esp + 0x40]
push edx
call fcn.0040790e
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x40]
push eax
call fcn.0040790e
mov ecx, dword [esp + 0x40]
push ecx
mov dword [esp + 0x68], eax
call fcn.0040790e
mov edx, dword [esp + 0x40]
push edx
mov dword [esp + 0x68], eax
call fcn.0040790e
mov esi, dword [esp + 0x90]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
add esp, 0x10
push 0x64
push 0x41d7a8
push 0x67
push esi
mov dword [esp + 0x64], eax
call edi
push 0x64
push 0x41d740
push 0x6d
push esi
call edi
push esi
call fcn.00401630
mov eax, dword [esp + 0x90]
push eax
push esi
call fcn.00401240
add esp, 0xc
test eax, eax
jne 0x4026bf
mov dword [esp + 0x18], eax
jmp 0x4027f0
mov ecx, dword [0x41d7a4]
push 0x6d
push esi
mov dword [0x41d810], ecx
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push 0
mov dword [esp + 0x84], eax
call dword [sym.imp.ole32.dll_OleInitialize]
push 0xa4
call fcn.00407893
add esp, 4
test eax, eax
je 0x4026fd
mov ecx, eax
call fcn.00404940
jmp 0x4026ff
xor eax, eax
test eax, eax
mov dword [0x41d814], eax
je 0x4027ea
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x48]
push ecx
mov ecx, dword [0x41d810]
mov esi, dword [eax]
push ebp
push edx
mov edx, dword [0x41d80c]
push ecx
mov ecx, dword [0x4172d0]
push edx
push 0x90000000
push 0x80088
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [0x4172d4]
mov dword [edx + 4], ecx
mov ecx, dword [0x4172d8]
mov dword [edx + 8], ecx
mov ecx, dword [0x4172dc]
mov dword [edx + 0xc], ecx
mov edx, dword [esi + 0x28]
mov ecx, eax
call edx
test eax, eax
je 0x4027d7
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x6c]
push eax
call esi
test eax, eax
je 0x4027d7
mov edi, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4027a0
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x60]
push ecx
push edx
push eax
call edi
test eax, eax
jne 0x4027c6
lea ecx, [esp + 0x60]
push ecx
call ebp
lea edx, [esp + 0x60]
push edx
call ebx
push 0
push 0
push 0
lea eax, [esp + 0x6c]
push eax
call esi
test eax, eax
jne 0x4027a0
mov ecx, dword [0x41d814]
test ecx, ecx
je 0x4027ea
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
push 1
call eax
call dword [sym.imp.ole32.dll_OleUninitialize]
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x50]
test eax, eax
je 0x402812
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x60]
push edx
push ecx
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [esp + 0x4c], 0
je 0x40282b
mov eax, dword [0x41d81c]
cmp dword [eax - 0xc], 0
je 0x40282b
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x18], 0
lea eax, [edi - 0x10]
je 0x4029c5
mov esi, dword [esp + 0x68]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402856
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402876
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x402896
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4028b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4028d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4028f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402916
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402936
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402956
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402976
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402996
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x88]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4029b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4029de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4029fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x402a1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402a3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402a5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402a7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402a9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402abe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402ade
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402afe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x88]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6c
ret 0x10