Function at 0x45b180
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x5e
push 0
push 0
dec ecx
jne 0x45b188
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00404f40
lea esi, [ebp - 0x34]
lea edi, [ebp - 0x284]
xor eax, eax
push ebp
push 0x45b6d4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004043ec
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.00404d48
je 0x45b58c
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.00404aec
mov eax, dword [ebp - 0x20]
call fcn.00404c2c
mov edx, eax
lea eax, [ebp - 0x20]
mov ecx, 1
call fcn.00404e18
mov dl, 1
mov eax, dword [0x4149d4]
call fcn.00403680
mov dword [ebp - 0x10], eax
push edi
mov eax, dword [ebp - 4]
call fcn.00404c1c
push eax
call sub.kernel32.dll_FindFirstFileW
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x45b572
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
lea edx, [edi + 0x2c]
mov ecx, 0x104
call fcn.00404bf0
mov eax, dword [ebp - 0x24]
mov edx, 0x45b6ec
call fcn.00404d48
je 0x45b543
mov eax, dword [ebp - 0x24]
mov edx, 0x45b6f4
call fcn.00404d48
je 0x45b543
lea eax, [ebp - 0x28c]
lea edx, [edi + 0x2c]
mov ecx, 0x104
call fcn.00404bf0
mov ecx, dword [ebp - 0x28c]
lea eax, [ebp - 0x288]
mov edx, dword [ebp - 0x20]
call fcn.00404c98
mov eax, dword [ebp - 0x288]
call fcn.00434238
test al, al
je 0x45b29c
lea eax, [ebp - 0xc]
mov edx, 0x45b700
call fcn.00404aec
jmp 0x45b2a9
lea eax, [ebp - 0xc]
mov edx, 0x45b70c
call fcn.00404aec
mov ebx, dword [edi + 0x20]
mov eax, dword [edi + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x14], eax
mov edx, esi
lea eax, [ebp - 0x18]
call fcn.00433c0c
push dword [ebp - 0xc]
lea edx, [ebp - 0x294]
mov ax, word [esi + 6]
call fcn.0045b10c
mov edx, dword [ebp - 0x294]
lea eax, [ebp - 0x290]
call fcn.00404c0c
push dword [ebp - 0x290]
push 0x45b718
lea edx, [ebp - 0x29c]
mov ax, word [esi + 2]
call fcn.0045b10c
mov edx, dword [ebp - 0x29c]
lea eax, [ebp - 0x298]
call fcn.00404c0c
push dword [ebp - 0x298]
push 0x45b718
lea edx, [ebp - 0x2a4]
movzx eax, word [esi]
call fcn.00408524
mov edx, dword [ebp - 0x2a4]
lea eax, [ebp - 0x2a0]
call fcn.00404c0c
push dword [ebp - 0x2a0]
push 0x45b720
lea edx, [ebp - 0x2ac]
mov ax, word [esi + 8]
call fcn.0045b10c
mov edx, dword [ebp - 0x2ac]
lea eax, [ebp - 0x2a8]
call fcn.00404c0c
push dword [ebp - 0x2a8]
push 0x45b728
lea edx, [ebp - 0x2b4]
mov ax, word [esi + 0xa]
call fcn.0045b10c
mov edx, dword [ebp - 0x2b4]
lea eax, [ebp - 0x2b0]
call fcn.00404c0c
push dword [ebp - 0x2b0]
push 0x45b730
lea eax, [ebp - 0xc]
mov edx, 0xb
call fcn.00404d00
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x14], eax
mov edx, esi
lea eax, [ebp - 0x18]
call fcn.00433c0c
push dword [ebp - 0xc]
lea edx, [ebp - 0x2bc]
mov ax, word [esi + 6]
call fcn.0045b10c
mov edx, dword [ebp - 0x2bc]
lea eax, [ebp - 0x2b8]
call fcn.00404c0c
push dword [ebp - 0x2b8]
push 0x45b718
lea edx, [ebp - 0x2c4]
mov ax, word [esi + 2]
call fcn.0045b10c
mov edx, dword [ebp - 0x2c4]
lea eax, [ebp - 0x2c0]
call fcn.00404c0c
push dword [ebp - 0x2c0]
push 0x45b718
lea edx, [ebp - 0x2cc]
movzx eax, word [esi]
call fcn.00408524
mov edx, dword [ebp - 0x2cc]
lea eax, [ebp - 0x2c8]
call fcn.00404c0c
push dword [ebp - 0x2c8]
push 0x45b720
lea edx, [ebp - 0x2d4]
mov ax, word [esi + 8]
call fcn.0045b10c
mov edx, dword [ebp - 0x2d4]
lea eax, [ebp - 0x2d0]
call fcn.00404c0c
push dword [ebp - 0x2d0]
push 0x45b728
lea edx, [ebp - 0x2dc]
mov ax, word [esi + 0xa]
call fcn.0045b10c
mov edx, dword [ebp - 0x2dc]
lea eax, [ebp - 0x2d8]
call fcn.00404c0c
push dword [ebp - 0x2d8]
push 0x45b730
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x2e4]
call fcn.00408610
mov edx, dword [ebp - 0x2e4]
lea eax, [ebp - 0x2e0]
call fcn.00404c0c
push dword [ebp - 0x2e0]
push 0x45b730
lea eax, [ebp - 0xc]
mov edx, 0xd
call fcn.00404d00
lea eax, [ebp - 0x2f4]
lea edx, [edi + 0x2c]
mov ecx, 0x104
call fcn.00404bf0
mov eax, dword [ebp - 0x2f4]
lea edx, [ebp - 0x2f0]
call fcn.004332c0
lea eax, [ebp - 0x2f0]
mov edx, 0x45b73c
call fcn.004046d0
mov edx, dword [ebp - 0x2f0]
lea eax, [ebp - 0x2ec]
call fcn.00404c0c
lea eax, [ebp - 0x2ec]
mov edx, dword [ebp - 0xc]
call fcn.00404c38
mov edx, dword [ebp - 0x2ec]
lea eax, [ebp - 0x2e8]
call fcn.00404690
mov edx, dword [ebp - 0x2e8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push edi
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_FindNextFileW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x45b221
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b579
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b6de
lea eax, [ebp - 0x2f4]
call fcn.00404a8c
lea eax, [ebp - 0x2f0]
call fcn.004043ec
lea eax, [ebp - 0x2ec]
call fcn.00404a8c
lea eax, [ebp - 0x2e8]
mov edx, 2
call fcn.00404410
lea eax, [ebp - 0x2e0]
call fcn.00404a8c
lea eax, [ebp - 0x2dc]
call fcn.004043ec
lea eax, [ebp - 0x2d8]
call fcn.00404a8c
lea eax, [ebp - 0x2d4]
call fcn.004043ec
lea eax, [ebp - 0x2d0]
call fcn.00404a8c
lea eax, [ebp - 0x2cc]
call fcn.004043ec
lea eax, [ebp - 0x2c8]
call fcn.00404a8c
lea eax, [ebp - 0x2c4]
call fcn.004043ec
lea eax, [ebp - 0x2c0]
call fcn.00404a8c
lea eax, [ebp - 0x2bc]
call fcn.004043ec
lea eax, [ebp - 0x2b8]
call fcn.00404a8c
lea eax, [ebp - 0x2b4]
call fcn.004043ec
lea eax, [ebp - 0x2b0]
call fcn.00404a8c
lea eax, [ebp - 0x2ac]
call fcn.004043ec
lea eax, [ebp - 0x2a8]
call fcn.00404a8c
lea eax, [ebp - 0x2a4]
call fcn.004043ec
lea eax, [ebp - 0x2a0]
call fcn.00404a8c
lea eax, [ebp - 0x29c]
call fcn.004043ec
lea eax, [ebp - 0x298]
call fcn.00404a8c
lea eax, [ebp - 0x294]
call fcn.004043ec
lea eax, [ebp - 0x290]
mov edx, 3
call fcn.00404aa4
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00404aa4
lea eax, [ebp - 0xc]
call fcn.00404a8c
lea eax, [ebp - 4]
call fcn.00404a8c
ret