Function at 0x40e370
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x46524d
mov eax, dword fs:[0]
push eax
sub esp, 0x328
mov eax, dword [0x485f50]
xor eax, esp
mov dword [esp + 0x324], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485f50]
xor eax, esp
push eax
lea eax, [esp + 0x33c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x34c]
xor edi, edi
cmp ecx, edi
je 0x40e50f
cmp byte [ecx], 0
je 0x40e50f
mov ebx, 0xf
mov eax, ecx
mov dword [esp + 0x1f4], ebx
mov dword [esp + 0x1f0], edi
mov byte [esp + 0x1e0], 0
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40e3e5
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x1e4]
call fcn.00408130
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1e0]
mov dword [esp + 0x348], edi
call fcn.0040c060
mov ecx, eax
call fcn.0040bf80
cmp byte [eax], 0x5c
je 0x40e430
push 0x5c
push 1
lea ecx, [esp + 0x1e4]
call fcn.00401d60
push 1
push 2
lea ecx, [esp + 0xe4]
call fcn.00407d10
push 0x46ab24
lea ecx, [esp + 0x1e0]
push ecx
lea edx, [esp + 0xe4]
push edx
mov byte [esp + 0x350], 1
call fcn.00404390
add esp, 8
push eax
call fcn.004052a0
add esp, 8
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xe0]
call fcn.004048a0
mov ebp, 0x10
cmp dword [eax + 0x18], ebp
jb 0x40e48e
mov eax, dword [eax + 4]
jmp 0x40e491
add eax, 4
lea ecx, [esp + 0x1f8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp dword [esp + 0x50], ebp
jb 0x40e4b5
mov edx, dword [esp + 0x3c]
push edx
call fcn.0041f6a2
add esp, 4
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], edi
mov byte [esp + 0x3c], 0
cmp esi, 0xffffffff
jne 0x40e53c
lea ecx, [esp + 0x128]
mov byte [esp + 0x344], 0
call fcn.00405530
lea eax, [esp + 0x128]
push eax
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004563aa
add esp, 4
cmp dword [esp + 0x1f4], ebp
jb 0x40e50f
mov ecx, dword [esp + 0x1e0]
push ecx
call fcn.0041f6a2
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x33c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x324]
xor ecx, esp
call fcn.0043c3a4
add esp, 0x334
ret
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
push 2
lea ecx, [esp + 0x64]
call fcn.00407d10
lea edx, [esp + 0x224]
push edx
lea eax, [esp + 0x1e0]
push eax
lea ecx, [esp + 0x64]
push ecx
mov byte [esp + 0x350], 2
call fcn.00404390
add esp, 8
push eax
call fcn.004052a0
mov edx, dword [esp + 0x200]
and edx, ebp
add esp, 8
cmp dl, 0x10
jne 0x40e70b
cmp byte [esp + 0x224], 0x2e
jne 0x40e5ba
lea ecx, [esp + 0xa8]
mov byte [esp + 0x344], 1
call fcn.00405530
lea eax, [esp + 0xa8]
push eax
jmp 0x40e758
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x60]
call fcn.004048a0
mov byte [esp + 0x344], 3
cmp dword [eax + 0x18], ebp
jb 0x40e5da
mov eax, dword [eax + 4]
jmp 0x40e5dd
add eax, 4
push eax
call fcn.0040e370
add esp, 4
test eax, eax
sete bl
mov byte [esp + 0x344], 2
cmp dword [esp + 0x34], ebp
jb 0x40e606
mov edx, dword [esp + 0x20]
push edx
call fcn.0041f6a2
add esp, 4
test bl, bl
je 0x40e73c
push 1
push 2
lea ecx, [esp + 0x164]
call fcn.00407d10
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x348], 4
call fcn.004048a0
mov byte [esp + 0x344], 5
cmp dword [eax + 0x18], ebp
jb 0x40e646
mov eax, dword [eax + 4]
jmp 0x40e649
add eax, 4
push eax
lea ecx, [esp + 0x160]
push str.DeleteDirectory:
push ecx
call fcn.004052a0
add esp, 8
push eax
call fcn.004052a0
add esp, 8
mov byte [esp + 0x344], 4
cmp dword [esp + 0x34], ebp
jb 0x40e683
mov edx, dword [esp + 0x20]
push edx
call fcn.0041f6a2
add esp, 4
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x160]
call fcn.004048a0
mov byte [esp + 0x344], 6
cmp dword [eax + 0x18], ebp
jb 0x40e6a6
mov eax, dword [eax + 4]
jmp 0x40e6a9
add eax, 4
push eax
push str.BaseLib::CxxDeleteDirectory
push 0x2c2
push str..common_function.cpp
push 0xf0000000
call fcn.00404cf0
mov ecx, eax
call fcn.004155d0
cmp dword [esp + 0x34], ebp
jb 0x40e6dd
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0041f6a2
add esp, 4
lea ecx, [esp + 0x1a8]
mov byte [esp + 0x344], 2
call fcn.00405530
lea edx, [esp + 0x1a8]
push edx
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004563aa
jmp 0x40e739
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x60]
call fcn.004048a0
cmp dword [eax + 0x18], ebp
jb 0x40e723
mov eax, dword [eax + 4]
jmp 0x40e726
add eax, 4
push eax
call edi
cmp dword [esp + 0x34], ebp
jb 0x40e73c
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0041f6a2
add esp, 4
lea ecx, [esp + 0xa8]
mov byte [esp + 0x344], 1
call fcn.00405530
lea edx, [esp + 0xa8]
push edx
mov dword [esp + 0xac], vtable.std::ios_base.0
call fcn.004563aa
add esp, 4
lea eax, [esp + 0x1f8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40e542
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x1f4]
mov eax, dword [esp + 0x1e0]
mov esi, eax
cmp edx, ebp
jae 0x40e7a4
lea esi, [esp + 0x1e0]
mov edi, dword [esp + 0x1f0]
add esi, edi
je 0x40e7d1
mov ecx, eax
cmp edx, ebp
jae 0x40e7bc
lea ecx, [esp + 0x1e0]
cmp ecx, esi
ja 0x40e7d1
cmp edx, ebp
jae 0x40e7cb
lea eax, [esp + 0x1e0]
add eax, edi
cmp esi, eax
jbe 0x40e7d6
call fcn.0043c958
lea ecx, [esp + 0x1dc]
push 1
lea edx, [esp + 0x58]
mov dword [esp + 0x18], ecx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], esi
call fcn.0040c0b0
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1e8]
call fcn.0040c120
mov eax, dword [esp + 0x1e0]
cmp dword [esp + 0x1f4], ebp
jae 0x40e824
lea eax, [esp + 0x1e0]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x128]
mov esi, eax
mov byte [esp + 0x344], 0
call fcn.00405530
lea ecx, [esp + 0x128]
push ecx
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004563aa
add esp, 4
cmp dword [esp + 0x1f4], ebp
jb 0x40e875
mov edx, dword [esp + 0x1e0]
push edx
call fcn.0041f6a2
add esp, 4
mov eax, esi
jmp 0x40e514