Function at 0x47cd60
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x658d8f
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x6af168]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1b4], eax
mov eax, dword [eax + 4]
push str.levelpacks.pak
add eax, 0x7d8
push eax
lea ecx, [ebp - 0x200]
push ecx
call fcn.0044cf70
mov edi, 0x10
add esp, 0xc
cmp dword [eax + 0x18], edi
jb 0x47cdc3
mov eax, dword [eax + 4]
jmp 0x47cdc6
add eax, 4
lea edx, [ebp - 0x1ac]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp dword [ebp - 0x1e8], edi
mov esi, eax
mov dword [ebp - 0x1c0], esi
jb 0x47cdf3
mov eax, dword [ebp - 0x1fc]
push eax
call fcn.0062493b
add esp, 4
xor edi, edi
cmp esi, 0xffffffff
mov dword [ebp - 0x1e8], 0xf
mov dword [ebp - 0x1ec], edi
mov byte [ebp - 0x1fc], 0
je 0x47d291
jmp 0x47ce22
xor edi, edi
mov ecx, dword [ebp - 0x1b4]
mov edx, dword [ecx + 4]
push 0x6759d0
add edx, 0x7d8
push edx
lea eax, [ebp - 0x1dc]
push eax
call fcn.0044cf70
add esp, 0xc
lea ecx, [ebp - 0x180]
push ecx
push eax
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 4], edi
call fcn.0044cf70
add esp, 0xc
mov esi, 0x10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c4], esi
jb 0x47ce7d
mov eax, dword [ebp - 0x1d8]
push eax
call fcn.0062493b
add esp, 4
cmp dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c4], 0xf
mov dword [ebp - 0x1c8], edi
mov byte [ebp - 0x1d8], 0
jae 0x47ce9f
lea eax, [ebp - 0x2c]
mov ebx, dword [ebp - 0x1c]
lea edi, [ebx + eax]
test edi, edi
je 0x47ceca
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
mov eax, dword [ebp - 0x2c]
jae 0x47ceb6
lea eax, [ebp - 0x2c]
cmp eax, edi
ja 0x47ceca
cmp ecx, esi
mov eax, dword [ebp - 0x2c]
jae 0x47cec4
lea eax, [ebp - 0x2c]
add eax, ebx
cmp edi, eax
jbe 0x47ced5
call fcn.0062492b
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
cmp ecx, esi
jb 0x47cfbe
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x47cf07
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
mov eax, dword [ebp - 0x2c]
jae 0x47cef2
lea eax, [ebp - 0x2c]
cmp eax, esi
ja 0x47cf07
cmp ecx, 0x10
mov eax, dword [ebp - 0x2c]
jae 0x47cf01
lea eax, [ebp - 0x2c]
add eax, ebx
cmp esi, eax
jbe 0x47cf0f
call fcn.0062492b
mov ebx, dword [ebp - 0x1c]
cmp esi, edi
mov eax, esi
je 0x47cf27
cmp byte [eax], 0x2f
jne 0x47cf1d
mov byte [eax], 0x5c
add eax, 1
cmp eax, edi
jne 0x47cf15
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x47d24f
mov eax, dword [ebp - 0x1b4]
mov ecx, dword [eax + 0x30]
add eax, 0x28
cmp dword [eax + 4], ecx
mov dword [ebp - 0x1b8], eax
mov dword [ebp - 0x1bc], ecx
jbe 0x47cf5a
call fcn.0062492b
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1b8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
mov dword [ebp - 0x1b0], ecx
jbe 0x47cf76
call fcn.0062492b
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1b8]
mov edi, dword [eax + 4]
cmp edi, dword [eax + 8]
jbe 0x47cf86
call fcn.0062492b
mov ebx, dword [ebp - 0x1c]
cmp edi, dword [ebp - 0x1b0]
mov dword [ebp - 0x1e0], edi
mov esi, edi
je 0x47cff0
cmp dword [ebp - 0x18], 0x10
mov edx, dword [ebp - 0x2c]
jae 0x47cfa2
lea edx, [ebp - 0x2c]
mov edi, dword [esi + 0x14]
mov eax, edi
cmp eax, edi
jae 0x47cfab
cmp edi, ebx
mov ecx, edi
jb 0x47cfb3
mov ecx, ebx
cmp dword [esi + 0x18], 0x10
jb 0x47cfc6
mov eax, dword [esi + 4]
jmp 0x47cfc9
lea esi, [ebp - 0x2c]
jmp 0x47cee4
lea eax, [esi + 4]
push ecx
push edx
push eax
call fcn.00402c10
add esp, 0xc
test eax, eax
jne 0x47cfe5
cmp edi, ebx
jb 0x47cfe5
cmp edi, ebx
setne al
test eax, eax
je 0x47cff0
add esi, 0x1c
cmp esi, dword [ebp - 0x1b0]
jne 0x47cf96
mov eax, dword [ebp - 0x1b8]
test eax, eax
je 0x47cffe
cmp eax, eax
je 0x47d003
call fcn.0062492b
cmp esi, dword [ebp - 0x1bc]
jne 0x47d24f
mov edi, dword [ebp - 0x1b4]
mov eax, dword [edi + 0x40]
add edi, 0x38
cmp dword [edi + 4], eax
mov dword [ebp - 0x1b0], edi
mov dword [ebp - 0x1bc], eax
jbe 0x47d031
call fcn.0062492b
mov ebx, dword [edi + 8]
cmp dword [edi + 4], ebx
jbe 0x47d03e
call fcn.0062492b
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
jbe 0x47d04b
call fcn.0062492b
lea edi, [ebp - 0x30]
mov eax, esi
mov dword [ebp - 0x1e0], esi
call fcn.0044e4c0
mov edi, eax
mov eax, dword [ebp - 0x1b0]
xor ebx, ebx
cmp eax, ebx
mov esi, eax
je 0x47d06f
cmp eax, esi
je 0x47d074
call fcn.0062492b
cmp edi, dword [ebp - 0x1bc]
jne 0x47d24f
lea ecx, [ebp - 0x30]
call fcn.005d8410
test al, al
je 0x47d24f
lea eax, [ebp - 0x180]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x47d0a6
sub eax, edx
push eax
lea ecx, [ebp - 0x180]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00402300
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x38]
add edx, 0xfffffffc
push edx
push ebx
lea eax, [ebp - 0x1dc]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00440e80
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.00401d10
mov edi, 0x10
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1c4], edi
jb 0x47d10c
mov ecx, dword [ebp - 0x1d8]
push ecx
call fcn.0062493b
add esp, 4
cmp dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x48]
jae 0x47d117
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0x68]
push str._s.cfg
push edx
call fcn.004e7a20
add esp, 0xc
mov byte [ebp - 4], 5
cmp dword [ebp - 0x50], edi
mov edx, dword [ebp - 0x64]
jae 0x47d138
lea edx, [ebp - 0x64]
mov edi, dword [ebp - 0x1b4]
call fcn.0047d2b0
test al, al
je 0x47d15b
mov esi, dword [ebp - 0x1b8]
lea eax, [ebp - 0x30]
push eax
call fcn.00441bd0
jmp 0x47d211
lea ecx, [ebp - 0x30]
push ecx
call fcn.00441bd0
mov esi, edi
mov edx, dword [esi + 4]
cmp dword [edx + 0x878], ebx
je 0x47d211
push 0x66f6e0
lea ecx, [ebp - 0x21c]
call fcn.00402130
push str.There_was_a_problem_loading_expansion_content__please_exit_game_and_redownload.
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 6
call fcn.00402130
push str.Error
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 7
call fcn.00402130
push 3
lea edx, [ebp - 0x21c]
push edx
lea edx, [ebp - 0x238]
push edx
mov byte [ebp - 4], 8
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x128]
lea edx, [ebp - 0x254]
push edx
push 1
push 0x2a
call eax
lea ecx, [ebp - 0x254]
mov esi, eax
call fcn.00401c70
lea ecx, [ebp - 0x238]
call fcn.00401c70
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 5
call fcn.00401c70
mov edi, 1
mov byte [esi + 0x163], 1
call fcn.004cdab0
mov edi, 0x10
cmp dword [ebp - 0x50], edi
jb 0x47d227
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0062493b
add esp, 4
cmp dword [ebp - 0x34], edi
mov esi, 0xf
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
jb 0x47d246
mov edx, dword [ebp - 0x48]
push edx
call fcn.0062493b
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x47d268
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0062493b
add esp, 4
mov edx, dword [ebp - 0x1c0]
lea ecx, [ebp - 0x1ac]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x47ce20
mov eax, dword [ebp - 0x1c0]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00624940
mov esp, ebp
pop ebp
ret 4