Function at 0x4a7040
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d0dd
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x595be0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x264]
call fcn.00428920
mov dword [ebp - 4], 0
push 0x5c
lea ecx, [ebp - 0x264]
call fcn.0043b7a0
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0xffffffff
jne 0x4a70b4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x264]
call fcn.00428a40
jmp 0x4a7414
mov ecx, dword [ebp - 0x26c]
push ecx
lea edx, [ebp - 0x28c]
push edx
lea ecx, [ebp - 0x264]
call fcn.0043b7f0
mov dword [ebp - 0x298], eax
mov eax, dword [ebp - 0x298]
mov dword [ebp - 0x294], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x294]
push ecx
lea ecx, [ebp - 0x264]
call fcn.0042d650
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28c]
call fcn.00428a40
push 0x5c
lea ecx, [ebp - 0x264]
call fcn.0043b7a0
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0xffffffff
jne 0x4a7137
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x264]
call fcn.00428a40
jmp 0x4a7414
lea ecx, [ebp - 0x264]
call fcn.00429940
sub eax, dword [ebp - 0x26c]
sub eax, 1
push eax
lea edx, [ebp - 0x278]
push edx
lea ecx, [ebp - 0x264]
call fcn.00439500
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x290]
push ecx
lea ecx, [ebp - 0x264]
call fcn.0043b7f0
mov dword [ebp - 0x284], eax
mov edx, dword [ebp - 0x284]
mov dword [ebp - 0x288], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x288]
push eax
lea ecx, [ebp - 0x264]
call fcn.0042d650
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x290]
call fcn.00428a40
push 0x5c
lea ecx, [ebp - 0x264]
call fcn.0043b7a0
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0xffffffff
jne 0x4a71f4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x278]
call fcn.00428a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x264]
call fcn.00428a40
jmp 0x4a7414
lea ecx, [ebp - 0x264]
call fcn.00429940
sub eax, dword [ebp - 0x26c]
sub eax, 1
push eax
lea ecx, [ebp - 0x274]
push ecx
lea ecx, [ebp - 0x264]
call fcn.00439500
mov byte [ebp - 4], 4
push 0x575784
lea ecx, [ebp - 0x264]
call fcn.00432aa0
lea ecx, [ebp - 0x274]
call fcn.004394b0
push str.casino
lea edx, [ebp - 0x274]
push edx
call fcn.00439590
add esp, 8
movzx eax, al
test eax, eax
jne 0x4a7274
push str.poker
lea ecx, [ebp - 0x274]
push ecx
call fcn.00439590
add esp, 8
movzx edx, al
test edx, edx
je 0x4a73e4
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x27c]
call fcn.00428920
mov byte [ebp - 4], 5
push 0x575730
lea ecx, [ebp - 0x27c]
call fcn.00432aa0
lea ecx, [ebp - 0x260]
push ecx
lea ecx, [ebp - 0x27c]
call fcn.00402a70
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x280], eax
cmp dword [ebp - 0x280], 0xffffffff
jne 0x4a730b
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x27c]
call fcn.00428a40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x274]
call fcn.00428a40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x278]
call fcn.00428a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x264]
call fcn.00428a40
jmp 0x4a7414
mov byte [ebp - 0x265], 0
lea edx, [ebp - 0x234]
push edx
lea ecx, [ebp - 0x270]
call fcn.00428940
mov byte [ebp - 4], 6
push 0x575728
lea ecx, [ebp - 0x270]
call fcn.00439990
test eax, eax
je 0x4a7383
push 0x575824
lea ecx, [ebp - 0x270]
call fcn.00439990
test eax, eax
je 0x4a7383
lea ecx, [ebp - 0x278]
call fcn.00402a70
push eax
lea ecx, [ebp - 0x270]
call fcn.00439990
test eax, eax
je 0x4a7383
mov byte [ebp - 0x265], 1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x270]
call fcn.00428a40
jmp 0x4a73ae
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x270]
call fcn.00428a40
lea eax, [ebp - 0x260]
push eax
mov ecx, dword [ebp - 0x280]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4a7312
mov edx, dword [ebp - 0x280]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
movzx eax, byte [ebp - 0x265]
test eax, eax
jne 0x4a73d5
lea ecx, [ebp - 0x264]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0042d650
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x27c]
call fcn.00428a40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x274]
call fcn.00428a40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x278]
call fcn.00428a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x264]
call fcn.00428a40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fdc6a
mov esp, ebp
pop ebp
ret