Function at 0x401d40
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42971a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x848
mov eax, dword [0x438280]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov eax, dword [ebx + 0x424]
mov esi, dword [ebp + 8]
mov ecx, dword [ebx + 0x420]
push eax
push 0
push 0
push 1
push 0
push esi
push 1
mov dword [ebp - 4], 0
call fcn.00425413
push 0
push 0
mov edi, eax
push 0
push 0
mov ecx, edi
mov dword [ebp - 0x824], edi
mov byte [ebp - 4], 1
call fcn.00424ef1
mov dword [ebp - 4], 0
call fcn.0041b348
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x818], eax
test edi, edi
mov byte [ebp - 4], 3
je 0x402152
push 0
lea eax, [ebp - 0x818]
push eax
push 0x13
mov ecx, edi
call fcn.00424fa3
mov ecx, dword [ebp - 0x818]
push 0x42b630
push ecx
call fcn.0040dc58
add esp, 8
test eax, eax
jne 0x401e5a
push 0x42b624
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x820]
push eax
call fcn.00401bb0
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
add esp, 0xc
push 0x40
push 0x42b614
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp - 0x820]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401e4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x4c]
jmp 0x402035
push 0
lea eax, [ebp - 0x818]
push eax
push 5
mov ecx, edi
call fcn.00424fa3
mov ecx, dword [ebp - 0x818]
push ecx
call fcn.0040e4b8
push 0x2f
push esi
mov dword [ebp - 0x824], eax
call fcn.0040dbed
add esp, 0xc
test eax, eax
jne 0x401e92
or ecx, 0xffffffff
jmp 0x401e96
sub eax, esi
mov ecx, eax
mov eax, dword [esi - 0xc]
sub eax, ecx
dec eax
push eax
lea edx, [ebp - 0x81c]
push edx
lea ecx, [ebp + 8]
call fcn.00401890
push eax
add ebx, 0x434
lea eax, [ebp - 0x820]
push ebx
push eax
mov byte [ebp - 4], 4
call fcn.00401b00
add esp, 0xc
push eax
lea ecx, [ebp - 0x818]
mov byte [ebp - 4], 5
call fcn.00401a50
mov eax, dword [ebp - 0x820]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401efb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x81c]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401f1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [ebp - 0x838]
call fcn.0041b406
push str..upg
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0x81c]
push ecx
mov byte [ebp - 4], 6
call fcn.00401bb0
add esp, 0xc
mov eax, dword [eax]
push 0
push 0x9021
push eax
lea ecx, [ebp - 0x838]
mov byte [ebp - 4], 7
call fcn.0041b41c
mov ebx, eax
mov eax, dword [ebp - 0x81c]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
mov byte [ebp - 4], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401f8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x402083
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0x820]
push 0x42b604
push ecx
call fcn.00401c70
push 0x42b5dc
push eax
lea edx, [ebp - 0x81c]
push edx
mov byte [ebp - 4], 8
call fcn.00401bb0
mov eax, dword [eax]
add esp, 0x18
push 0x40
push 0x42b614
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp - 0x81c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401ffb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x820]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40201f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x4c]
lea ecx, [ebp - 0x838]
mov byte [ebp - 4], 3
call fcn.0041b7db
mov eax, dword [ebp - 0x818]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402059
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402239
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x402239
mov eax, dword [edi]
push 0x800
lea ecx, [ebp - 0x814]
push ecx
mov ecx, edi
xor ebx, ebx
call dword [eax + 0x34]
mov esi, eax
test esi, esi
jle 0x402139
jmp 0x4020a7
mov ebx, dword [ebp + 0xc]
add ebx, esi
mov eax, ebx
imul eax, eax, 0x64
xor edx, edx
div dword [ebp - 0x824]
mov edx, dword [0x4396ac]
push 0
mov dword [ebp + 0xc], ebx
push eax
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x854]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x402103
lea ecx, [ebp - 0x854]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x854]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
inc ebx
cmp ebx, 0xa
jl 0x4020d0
push esi
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x838]
call fcn.0041b593
mov edx, dword [edi]
push 0x800
lea eax, [ebp - 0x814]
push eax
mov ecx, edi
call dword [edx + 0x34]
mov esi, eax
test esi, esi
jg 0x4020a4
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x4c]
lea ecx, [ebp - 0x838]
mov byte [ebp - 4], 3
call fcn.0041b7db
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str..upg
lea ecx, [ebp - 0x818]
push ecx
lea edx, [ebp + 0xc]
push edx
call fcn.00401bb0
mov ecx, dword [ebp - 0x818]
mov eax, dword [eax]
push ecx
push eax
call fcn.0040e48a
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4021a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x818]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4021c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4021e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
jmp 0x40223b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040d78e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8