Function at 0x403bd0
Capabilities:
Delete directory
Delete file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x403efa
push esi
push edi
push eax
call fcn.00402600
mov dword [esp + 0x14], eax
mov eax, dword [0x451574]
add eax, 0x88
push eax
call fcn.0041cd50
mov ecx, dword [0x451574]
add ecx, 0x94
push ecx
call fcn.0041cd50
mov edx, dword [0x451574]
add edx, 0xa8
push edx
call fcn.0041cd50
mov eax, dword [0x451574]
add eax, 0xa4
push eax
call fcn.0041cd50
mov ecx, dword [0x451574]
add ecx, 0x80
push ecx
call fcn.0041cd50
mov edx, dword [0x451574]
add edx, 0x8c
push edx
call fcn.0041cd50
mov eax, dword [0x451574]
add eax, 0x90
push eax
call fcn.0041cd50
mov ecx, dword [0x451574]
add ecx, 0xcc
push ecx
call fcn.0041cd50
mov edx, dword [0x451574]
add edx, 0xd0
push edx
call fcn.0041cd50
mov eax, dword [0x451574]
add eax, 0xd4
push eax
call fcn.0041cd50
mov ecx, dword [0x451574]
add ecx, 0x26c
push ecx
call fcn.0041cd50
mov edx, dword [0x451574]
add edx, 0x1f4
push edx
call fcn.0041cd50
call fcn.0043a990
mov eax, dword [0x451574]
add eax, 0xc0
push eax
call fcn.0041cd50
call fcn.00421fd0
call fcn.00423020
call fcn.00423aa0
call fcn.00431f30
call fcn.004151b0
call fcn.00421e90
call fcn.00432ed0
call fcn.0042f090
mov ecx, dword [0x451574]
push 1
mov dword [ecx + 0x1d0], ebx
mov edx, dword [0x451574]
mov dword [edx + 0x1d4], ebx
call fcn.00403fa0
mov eax, dword [esp + 0x54]
mov esi, dword [sym.imp.USER32.dll_DestroyIcon]
add esp, 0x3c
mov eax, dword [eax + 0xac]
cmp eax, ebx
je 0x403d3e
push eax
call esi
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0xac], ebx
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x1b8]
cmp eax, ebx
je 0x403d59
push eax
call esi
mov eax, dword [esp + 0x18]
mov dword [eax + 0x1b8], ebx
mov ecx, dword [0x451574]
add ecx, 0xbc
push ecx
call fcn.0041cd50
mov eax, dword [0x451574]
add esp, 4
xor ecx, ecx
mov esi, dword [eax + 0x1a8]
cmp esi, ebx
mov esi, dword [sym.imp.MMFS2.dll_Ordinal_419]
sete cl
or edi, 0xffffffff
cmp ecx, ebx
mov dword [esp + 0xc], ecx
jne 0x403da3
mov ecx, dword [eax + 0x9c]
cmp ecx, edi
je 0x403da3
push ecx
call esi
mov eax, dword [0x451574]
mov dword [eax + 0x9c], edi
mov edx, dword [0x451574]
mov eax, dword [edx + 0x9c]
cmp eax, edi
je 0x403dc7
push eax
call esi
mov eax, dword [0x451574]
mov dword [eax + 0x9c], edi
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_remove]
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x174]
cmp edi, ebx
je 0x403e3e
jle 0x403e2f
cmp edi, dword [eax + 0x178]
jge 0x403e2f
mov edx, dword [eax + 0x184]
mov ecx, edi
shl ecx, 4
mov esi, dword [edx + ecx + 8]
cmp esi, ebx
je 0x403e2f
mov eax, dword [esi + 0x104]
cmp eax, ebx
je 0x403e22
push eax
call ebp
mov eax, dword [esi + 0x104]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 8
mov dword [esi + 0x104], ebx
mov dword [esi + 0x110], ebx
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x20]
add esp, 4
push edi
lea ecx, [eax + 0x168]
call dword [sym.imp.MMFS2.dll_Ordinal_688]
jmp 0x403dce
push eax
call fcn.00403f10
mov ecx, dword [0x451574]
add esp, 4
mov eax, dword [ecx + 0x98]
pop ebp
cmp eax, ebx
je 0x403e74
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edx, dword [0x451574]
add edx, 0x98
push edx
call fcn.0041cd50
add esp, 4
cmp dword [esp + 0xc], ebx
je 0x403e87
cmp dword [0x451588], ebx
je 0x403e87
call fcn.0043a650
call fcn.00403f00
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x403ea1
push eax
call fcn.00402600
add esp, 4
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0x168]
call sub.MMFS2.dll_Ordinal_281
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [ecx + 0x2d4]
cmp eax, ebx
je 0x403eca
push eax
call edi
add esp, 4
mov esi, 0x2d8
mov edx, dword [esp + 0x18]
mov eax, dword [esi + edx]
cmp eax, ebx
je 0x403ee0
push eax
call edi
add esp, 4
add esi, 4
cmp esi, 0x358
jl 0x403ecf
lea eax, [esp + 0x18]
push eax
call fcn.0041cd50
add esp, 4
pop edi
pop esi
pop ebx
add esp, 8
ret