Function at 0x403c20
Capabilities:
Delete directory
Delete file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x403f5b
push esi
push edi
push eax
call fcn.00402630
mov dword [esp + 0x14], eax
mov eax, dword [0x45258c]
add eax, 0x88
push eax
call fcn.0041d1c0
mov ecx, dword [0x45258c]
add ecx, 0x94
push ecx
call fcn.0041d1c0
mov edx, dword [0x45258c]
add edx, 0xa8
push edx
call fcn.0041d1c0
mov eax, dword [0x45258c]
add eax, 0xa4
push eax
call fcn.0041d1c0
mov ecx, dword [0x45258c]
add ecx, 0x80
push ecx
call fcn.0041d1c0
mov edx, dword [0x45258c]
add edx, 0x8c
push edx
call fcn.0041d1c0
mov eax, dword [0x45258c]
add eax, 0x90
push eax
call fcn.0041d1c0
mov ecx, dword [0x45258c]
add ecx, 0xcc
push ecx
call fcn.0041d1c0
mov edx, dword [0x45258c]
add edx, 0xd0
push edx
call fcn.0041d1c0
mov eax, dword [0x45258c]
add eax, 0xd4
push eax
call fcn.0041d1c0
mov ecx, dword [0x45258c]
add ecx, 0x26c
push ecx
call fcn.0041d1c0
mov edx, dword [0x45258c]
add edx, 0x1f4
push edx
call fcn.0041d1c0
call fcn.0043b480
mov eax, dword [0x45258c]
add eax, 0xc0
push eax
call fcn.0041d1c0
call fcn.00422670
call fcn.004236c0
call fcn.00424270
call fcn.00432630
call fcn.004155d0
call fcn.00422530
call fcn.00433650
call fcn.0042f740
mov ecx, dword [0x45258c]
push 1
mov dword [ecx + 0x1d0], ebx
mov edx, dword [0x45258c]
mov dword [edx + 0x1d4], ebx
call fcn.00403ff0
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 0x403d8e
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 0x403da9
push eax
call esi
mov eax, dword [esp + 0x18]
mov dword [eax + 0x1b8], ebx
mov ecx, dword [0x45258c]
add ecx, 0xbc
push ecx
call fcn.0041d1c0
mov edx, dword [0x45258c]
add edx, 0x37c
push edx
call fcn.0041d1c0
mov eax, dword [0x45258c]
add esp, 8
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 0x403e05
mov ecx, dword [eax + 0x9c]
cmp ecx, edi
je 0x403e05
push ecx
call esi
mov eax, dword [0x45258c]
mov dword [eax + 0x9c], edi
mov eax, dword [0x45258c]
mov eax, dword [eax + 0x9c]
cmp eax, edi
je 0x403e29
push eax
call esi
mov ecx, dword [0x45258c]
mov dword [ecx + 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 0x403ea0
jle 0x403e91
cmp edi, dword [eax + 0x178]
jge 0x403e91
mov ecx, dword [eax + 0x184]
mov edx, edi
shl edx, 4
mov esi, dword [ecx + edx + 8]
cmp esi, ebx
je 0x403e91
mov eax, dword [esi + 0x104]
cmp eax, ebx
je 0x403e84
push eax
call ebp
mov edx, dword [esi + 0x104]
push edx
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 0x403e30
push eax
call fcn.00403f70
mov eax, dword [0x45258c]
add esp, 4
mov eax, dword [eax + 0x98]
pop ebp
cmp eax, ebx
je 0x403ed5
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [0x45258c]
add ecx, 0x98
push ecx
call fcn.0041d1c0
add esp, 4
cmp dword [esp + 0xc], ebx
je 0x403ee8
cmp dword [0x4525a0], ebx
je 0x403ee8
call fcn.0043b140
call fcn.00403f60
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x403f02
push eax
call fcn.00402630
add esp, 4
mov edx, dword [esp + 0x18]
lea ecx, [edx + 0x168]
call sub.MMFS2.dll_Ordinal_281
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [eax + 0x2d4]
cmp eax, ebx
je 0x403f2b
push eax
call edi
add esp, 4
mov esi, 0x2d8
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + ecx]
cmp eax, ebx
je 0x403f41
push eax
call edi
add esp, 4
add esi, 4
cmp esi, 0x358
jl 0x403f30
lea edx, [esp + 0x18]
push edx
call fcn.0041d1c0
add esp, 4
pop edi
pop esi
pop ebx
add esp, 8
ret