Function at 0x405790
Capabilities:
Enumerate files on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443e63
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x4576e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x428], ecx
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp - 0x428]
add ecx, 0x30
call fcn.00401d60
lea ecx, [ebp - 0x170]
call fcn.00406d80
mov byte [ebp - 4], 1
mov dword [ebp - 0x154], 0
push 0x13c
push 0
lea ecx, [ebp - 0x150]
push ecx
call fcn.0042e940
add esp, 0xc
lea edx, [ebp - 0x154]
push edx
lea ecx, [ebp + 8]
call fcn.00401da0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x174], eax
cmp dword [ebp - 0x174], 0
jne 0x405861
mov dword [ebp - 0x40c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x170]
call fcn.00406e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401d40
mov eax, dword [ebp - 0x40c]
jmp 0x405c36
mov eax, dword [ebp - 0x154]
and eax, 0x10
jne 0x4058a0
push 0x447650
lea ecx, [ebp - 0x128]
push ecx
call fcn.0042f840
add esp, 8
test eax, eax
je 0x4058a0
push 0x447654
lea edx, [ebp - 0x128]
push edx
call fcn.0042f840
add esp, 8
test eax, eax
jne 0x405b49
push 0x447658
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x178]
push ecx
call fcn.00406cd0
add esp, 0xc
mov byte [ebp - 4], 2
mov dword [ebp - 0x2bc], 0
push 0x13c
push 0
lea edx, [ebp - 0x2b8]
push edx
call fcn.0042e940
add esp, 0xc
lea eax, [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x178]
call fcn.00401da0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
jne 0x405946
mov dword [ebp - 0x410], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x178]
call fcn.00401d40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x170]
call fcn.00406e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401d40
mov eax, dword [ebp - 0x410]
jmp 0x405c36
mov ecx, dword [ebp - 0x2bc]
and ecx, 0x10
jne 0x405a04
push 0x447660
lea edx, [ebp - 0x290]
push edx
call fcn.0042f840
add esp, 8
test eax, eax
je 0x405a04
push 0x447664
lea eax, [ebp - 0x290]
push eax
call fcn.0042f840
add esp, 8
test eax, eax
je 0x405a04
lea ecx, [ebp - 0x290]
push ecx
push 0x447668
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x414]
push eax
call fcn.00406cd0
add esp, 0xc
mov dword [ebp - 0x42c], eax
mov ecx, dword [ebp - 0x42c]
mov dword [ebp - 0x430], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x430]
push edx
lea eax, [ebp - 0x2c4]
push eax
call fcn.00406cd0
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x414]
call fcn.00401d40
lea ecx, [ebp - 0x2c4]
push ecx
lea ecx, [ebp - 0x170]
call fcn.00406ee0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c4]
call fcn.00401d40
mov byte [ebp - 0x2bd], 1
movzx edx, byte [ebp - 0x2bd]
test edx, edx
je 0x405b2b
mov dword [ebp - 0x404], 0
push 0x13c
push 0
lea eax, [ebp - 0x400]
push eax
call fcn.0042e940
add esp, 0xc
lea ecx, [ebp - 0x404]
push ecx
mov edx, dword [ebp - 0x17c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
setne al
mov byte [ebp - 0x2bd], al
movzx ecx, byte [ebp - 0x2bd]
test ecx, ecx
je 0x405b26
mov edx, dword [ebp - 0x404]
and edx, 0x10
jne 0x405b26
push 0x44766c
lea eax, [ebp - 0x3d8]
push eax
call fcn.0042f840
add esp, 8
test eax, eax
je 0x405b26
push 0x447670
lea ecx, [ebp - 0x3d8]
push ecx
call fcn.0042f840
add esp, 8
test eax, eax
je 0x405b26
lea edx, [ebp - 0x3d8]
push edx
push 0x447674
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x418]
push ecx
call fcn.00406cd0
add esp, 0xc
mov dword [ebp - 0x434], eax
mov edx, dword [ebp - 0x434]
mov dword [ebp - 0x438], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x438]
push eax
lea ecx, [ebp - 0x408]
push ecx
call fcn.00406cd0
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x418]
call fcn.00401d40
lea edx, [ebp - 0x408]
push edx
lea ecx, [ebp - 0x170]
call fcn.00406ee0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x408]
call fcn.00401d40
jmp 0x405a0b
mov eax, dword [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x178]
call fcn.00401d40
jmp 0x405b58
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x170]
call fcn.00406ee0
mov edx, dword [ebp - 0x174]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x41c]
push ecx
mov ecx, dword [ebp - 0x428]
call fcn.00405c60
mov dword [ebp - 0x43c], eax
mov edx, dword [ebp - 0x43c]
mov dword [ebp - 0x440], edx
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x440]
push eax
mov ecx, dword [ebp - 0x428]
add ecx, 0x28
call fcn.00401d60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x41c]
call fcn.00401d40
mov ecx, dword [ebp - 0x428]
add ecx, 0x28
call fcn.00401a90
movzx ecx, al
test ecx, ecx
je 0x405c08
push 0x447678
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x420], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x170]
call fcn.00406e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401d40
mov eax, dword [ebp - 0x420]
jmp 0x405c36
mov dword [ebp - 0x424], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x170]
call fcn.00406e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401d40
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042e930
mov esp, ebp
pop ebp
ret 4