Function at 0x401d3a
Capabilities:
Delete file

Disassembly:
push 0x50
mov eax, 0x4ffebf
call fcn.004d766c
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
call fcn.0043d8eb
test eax, eax
pop ecx
je 0x401f87
lea eax, [ebp - 0x5c]
push eax
call fcn.00491fd5
and dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
push 0
push 1
lea ebx, [ebp - 0x5c]
call fcn.004920e1
test eax, eax
je 0x401f7a
call fcn.00484291
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 0x50b06c
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.00402cc5
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, ebx
mov byte [ebp - 4], 2
call fcn.00492e2b
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 0x401f6e
mov eax, dword [0x55a320]
mov ecx, 0x55a320
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.00440358
test al, al
jne 0x401f55
mov esi, dword [ebp - 0x24]
test esi, esi
jne 0x401e39
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [ebp - 0x20]
cmp edi, dword [esi + 4]
jne 0x401e47
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 0x50b078
call fcn.00401a17
add esp, 0xc
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], 1
call fcn.0043d8eb
test eax, eax
pop ecx
je 0x401f2e
mov ecx, 0x55a320
lea esi, [ebp - 0x3c]
call fcn.00401a7f
xor eax, eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
push 0x50b288
mov eax, esi
push eax
call fcn.00402d02
mov byte [ebp - 4], 5
push dword [ebp - 0x14]
lea esi, [ebp - 0x48]
call fcn.0044b603
test eax, eax
jne 0x401ecb
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 0x401f2e
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x48]
call fcn.0044b708
push 0x50b048
push dword [ebp - 0x18]
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x401ef8
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004012f9
jmp 0x401eb4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401f08
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 0x401f48
mov eax, dword [ebp - 0x24]
cmp edi, dword [eax + 4]
jne 0x401f3c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push dword [edi + 0xc]
lea eax, [ebp - 0x5c]
push eax
call fcn.00492e9a
lea esi, [ebp - 0x24]
call fcn.004c6ea3
jmp 0x401e13
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
lea ecx, [ebp - 0x5c]
call fcn.00492ade
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004012f9
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.00402981
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x5c]
push eax
call fcn.0049200d
call fcn.004d7744
ret 4