Function at 0x401d56
Capabilities:
Delete file

Disassembly:
push 0x50
mov eax, 0x4f893d
call fcn.004d1298
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
call fcn.0048b5a6
test eax, eax
pop ecx
je 0x401fa3
lea eax, [ebp - 0x5c]
push eax
call fcn.0048c756
and dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
push 0
push 1
lea ebx, [ebp - 0x5c]
call fcn.0048c862
test eax, eax
je 0x401f96
call fcn.0048214a
mov dword [ebp - 0x34], eax
mov byte [eax + 0x15], 1
mov eax, dword [ebp - 0x34]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [eax], eax
mov eax, dword [ebp - 0x34]
mov dword [eax + 8], eax
and dword [ebp - 0x30], 0
push 0x502f8c
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.00402d09
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, ebx
mov byte [ebp - 4], 2
call fcn.0048d563
mov ebx, eax
neg ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.004012f9
test bl, bl
jne 0x401f8a
mov eax, dword [0x550310]
mov ecx, 0x550310
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov ebx, dword [sym.imp.MSVCR80.dll_free]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov eax, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x34]
lea edi, [ebp - 0x2c]
lea esi, [ebp - 0x24]
mov dword [ebp - 0x28], eax
call fcn.004532cc
test al, al
jne 0x401f71
mov esi, dword [ebp - 0x24]
test esi, esi
jne 0x401e55
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [ebp - 0x20]
cmp edi, dword [esi + 4]
jne 0x401e63
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push dword [edi + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 4]
lea eax, [ebp - 0x14]
push 0x502f98
call fcn.00401a57
add esp, 0xc
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], 1
call fcn.0048b5a6
test eax, eax
pop ecx
je 0x401f4a
mov ecx, 0x550310
lea esi, [ebp - 0x3c]
call fcn.00405085
xor eax, eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
push 0x5031a8
mov eax, esi
push eax
call fcn.00402d46
mov byte [ebp - 4], 5
push dword [ebp - 0x14]
lea esi, [ebp - 0x48]
call fcn.00449adb
test eax, eax
jne 0x401ee7
mov byte [ebp - 4], 3
push dword [ebp - 0x48]
call ebx
mov eax, dword [ebp - 0x3c]
pop ecx
add eax, 0xfffffff0
call fcn.004012f9
jmp 0x401f4a
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x48]
call fcn.00449be0
push 0x502f68
push dword [ebp - 0x18]
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x401f14
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004012f9
jmp 0x401ed0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401f24
and dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004012f9
mov byte [ebp - 4], 3
push dword [ebp - 0x48]
call ebx
mov eax, dword [ebp - 0x3c]
pop ecx
add eax, 0xfffffff0
call fcn.004012f9
cmp dword [ebp - 0x1c], 0
je 0x401f64
mov eax, dword [ebp - 0x24]
cmp edi, dword [eax + 4]
jne 0x401f58
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push dword [edi + 0xc]
lea eax, [ebp - 0x5c]
push eax
call fcn.0048d5d2
lea esi, [ebp - 0x24]
call fcn.0043f90c
jmp 0x401e2f
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
lea ecx, [ebp - 0x5c]
call fcn.0048d216
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004012f9
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.004029c5
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x5c]
push eax
call fcn.0048c78e
call fcn.004d1370
ret 4