Function at 0x40ec00
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x495cf8
mov eax, dword fs:[0]
push eax
mov eax, 0x2280
call fcn.00479200
mov eax, dword [0x4bd750]
xor eax, esp
mov dword [esp + 0x227c], eax
push ebp
push esi
push edi
mov eax, dword [0x4bd750]
xor eax, esp
push eax
lea eax, [esp + 0x2290]
mov dword fs:[0], eax
push str.GetPackingFile
call fcn.004169a0
mov ebp, 1
add esp, 4
mov dword [esp + 0x20], ebp
call fcn.0045be93
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ec6e
push 0x80004005
call fcn.00401c80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x2298], 0
call fcn.00406040
lea esi, [esp + 0x1c]
call fcn.00413c50
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x229c], 1
call fcn.00401a10
mov byte [esp + 0x2298], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ecd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Resource.pak
lea esi, [esp + 0x18]
call fcn.00408e70
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], ebp
jle 0x40ecf3
mov ecx, dword [eax - 0xc]
push ecx
mov ecx, esi
call fcn.00401b60
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x28], esi
je 0x40f0f0
test byte [esp + 0x3c], 0x10
jne 0x40efdf
call fcn.0045be93
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40ec64
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov byte [esp + 0x2298], 2
test byte [0x4d5f3c], 1
jne 0x40ed7a
or dword [0x4d5f3c], ebp
mov byte [esp + 0x2298], 3
call fcn.00405b90
push 0x4966b0
call fcn.004724a2
add esp, 4
mov byte [esp + 0x2298], 2
lea esi, [esp + 0x24]
mov eax, 0x4d5ec8
call fcn.00413c50
mov byte [esp + 0x2298], 4
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x40ede3
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40edd5
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40edd5
push eax
call fcn.004017d0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40edcc
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x18], ebp
jmp 0x40ede3
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00401970
mov byte [esp + 0x2298], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ee0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x68]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ee12
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x20]
call fcn.0040bc50
push 0x2c0
call fcn.0044e4f8
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x2298], 5
je 0x40ee57
push eax
call fcn.00424c80
mov edi, eax
jmp 0x40ee59
xor edi, edi
push 0x1fff
lea edx, [esp + 0x291]
mov byte [esp + 0x229c], 2
push 0
push edx
mov dword [esp + 0x28], edi
mov byte [esp + 0x298], 0
call fcn.00475860
mov ebp, dword [esp + 0x24]
add esp, 0xc
cmp dword [ebp - 4], 1
jle 0x40ee9f
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401b60
mov ebp, dword [esp + 0x18]
push 0
push 0
push 0x2000
lea ecx, [esp + 0x298]
push ecx
push 0xffffffffffffffff
push ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
lea edx, [esp + 0x290]
push edx
mov eax, edi
call fcn.00425350
test al, al
je 0x40ef2c
mov ecx, dword [ebx + 0x50]
test ecx, ecx
lea esi, [ebx + 0x4c]
jne 0x40eee0
xor edx, edx
jmp 0x40eee8
mov edx, dword [esi + 8]
sub edx, ecx
sar edx, 2
test ecx, ecx
je 0x40ef08
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x40ef08
mov eax, dword [esi + 8]
mov dword [eax], edi
add eax, 4
mov dword [esi + 8], eax
jmp 0x40efbb
mov edi, dword [esi + 8]
cmp ecx, edi
jbe 0x40ef14
call fcn.0047263c
push edi
push esi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
push ecx
mov eax, esi
call fcn.00412660
jmp 0x40efbb
push 0
lea edx, [esp + 0x290]
push edx
mov eax, edi
call fcn.00425350
test al, al
je 0x40ef95
mov ecx, dword [ebx + 0x50]
test ecx, ecx
lea esi, [ebx + 0x4c]
jne 0x40ef4f
xor edx, edx
jmp 0x40ef57
mov edx, dword [esi + 8]
sub edx, ecx
sar edx, 2
test ecx, ecx
je 0x40ef74
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x40ef74
mov eax, dword [esi + 8]
mov dword [eax], edi
add eax, 4
mov dword [esi + 8], eax
jmp 0x40efbb
mov edi, dword [esi + 8]
cmp ecx, edi
jbe 0x40ef80
call fcn.0047263c
push edi
push esi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
push ecx
mov eax, esi
call fcn.00412660
jmp 0x40efbb
push ebp
push str._s_Packing_File_System_Open_Failed_
xor esi, esi
call fcn.00416940
add esp, 8
test edi, edi
je 0x40efb3
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
mov dword [esp + 0x20], 0
lea eax, [ebp - 0x10]
mov byte [esp + 0x2298], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40efdf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x3c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40f0f0
cmp dword [ebx + 0x48], 0
jne 0x40f007
mov ebp, 1
jmp 0x40ed12
xor esi, esi
lea esp, [esp]
mov ecx, dword [ebx + 0x50]
test ecx, ecx
jne 0x40f01b
xor eax, eax
jmp 0x40f023
mov eax, dword [ebx + 0x54]
sub eax, ecx
sar eax, 2
cmp esi, eax
jge 0x40f0be
test ecx, ecx
je 0x40f03b
mov eax, dword [ebx + 0x54]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x40f040
call fcn.0047263c
mov edx, dword [ebx + 0x50]
mov eax, dword [edx + esi*4]
push eax
call fcn.00425110
mov ecx, dword [ebx + 0x50]
test ecx, ecx
je 0x40f05f
mov eax, dword [ebx + 0x54]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x40f064
call fcn.0047263c
mov ecx, dword [ebx + 0x50]
cmp dword [ecx + esi*4], 0
je 0x40f0b6
test ecx, ecx
je 0x40f07d
mov eax, dword [ebx + 0x54]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x40f082
call fcn.0047263c
mov edx, dword [ebx + 0x50]
mov ecx, dword [edx + esi*4]
test ecx, ecx
je 0x40f094
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, dword [ebx + 0x50]
test ecx, ecx
je 0x40f0a7
mov eax, dword [ebx + 0x54]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x40f0ac
call fcn.0047263c
mov eax, dword [ebx + 0x50]
mov dword [eax + esi*4], 0
add esi, 1
jmp 0x40f010
mov dword [esp + 0x2298], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f0e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 4
jmp 0x40f126
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x2298], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f122
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x227c]
xor ecx, esp
call fcn.004716ba
add esp, 0x228c
ret