Function at 0x417ed0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d9a4c
mov eax, dword fs:[0]
push eax
mov eax, 0x227c
call fcn.0068e250
mov eax, dword [0x79a200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x2274], ebx
push str.GetPackingFile
call fcn.0041d700
add esp, 4
mov dword [ebp - 0x2278], 1
call fcn.0054592c
mov ecx, eax
test ecx, ecx
je 0x418455
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x2268], esi
mov dword [ebp - 4], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x7ae4ec]
mov dword [ebp - 0x227c], ecx
cmp eax, dword [ecx + 8]
jle 0x417f95
push 0x7ae4ec
call fcn.0068d914
add esp, 4
cmp dword [0x7ae4ec], 0xffffffff
jne 0x417f95
call fcn.0040f780
push 0x6ea4a0
call fcn.0068dbb4
add esp, 4
push 0x7ae4ec
call fcn.0068d8c3
add esp, 4
mov eax, dword [0x7ae544]
add eax, 0xfffffff0
push eax
call fcn.004066d0
mov edi, eax
add esp, 4
lea edx, [edi + 0x10]
mov dword [ebp - 0x226c], edx
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov dword [ebp - 0x2270], ecx
cmp edi, ecx
je 0x418026
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x41800e
mov eax, dword [edi]
cmp eax, dword [ecx]
jne 0x41800e
push edi
call fcn.004066d0
add esp, 4
mov dword [ebp - 0x2264], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x418003
mov esi, dword [ebp - 0x2270]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2264]
lea esi, [eax + 0x10]
mov dword [ebp - 0x2268], esi
jmp 0x418023
push dword [edx - 0xc]
lea ecx, [ebp - 0x2268]
push edx
call fcn.00406bf0
mov esi, dword [ebp - 0x2268]
or eax, 0xffffffff
mov byte [ebp - 4], 0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41803c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x41804e
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x418064
call fcn.0054592c
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x41845f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2264], eax
mov eax, str.Resource.pak
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2264]
test eax, 0xffff0000
jne 0x418093
movzx eax, ax
push eax
call fcn.00406a60
jmp 0x41809d
push str.Resource.pak
call fcn.0040bd50
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2268]
mov esi, dword [ebp - 0x2264]
push dword [esi - 0xc]
push esi
call fcn.0040bc00
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4180d2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x2268]
cmp dword [edi - 4], 1
jle 0x4180f2
push dword [edi - 0xc]
lea ecx, [ebp - 0x2268]
call fcn.00406e20
mov edi, dword [ebp - 0x2268]
lea eax, [ebp - 0x2260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2264], eax
cmp eax, 0xffffffff
je 0x418406
nop
test byte [ebp - 0x2260], 0x10
jne 0x41837f
call fcn.0054592c
mov ecx, eax
test ecx, ecx
je 0x418455
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x226c], ebx
mov ecx, dword [ebp - 0x227c]
mov byte [ebp - 4], 4
mov eax, dword [0x7ae4ec]
cmp eax, dword [ecx + 8]
jle 0x418186
push 0x7ae4ec
call fcn.0068d914
add esp, 4
cmp dword [0x7ae4ec], 0xffffffff
jne 0x418186
call fcn.0040f780
push 0x6ea4a0
call fcn.0068dbb4
add esp, 4
push 0x7ae4ec
call fcn.0068d8c3
add esp, 4
mov eax, dword [0x7ae544]
add eax, 0xfffffff0
push eax
call fcn.004066d0
mov esi, eax
add esp, 4
lea ecx, [esi + 0x10]
mov dword [ebp - 0x2280], ecx
add ebx, 0xfffffff0
mov byte [ebp - 4], 5
cmp esi, ebx
je 0x4181ff
cmp dword [ebx + 0xc], 0
jl 0x4181f0
mov eax, dword [esi]
cmp eax, dword [ebx]
jne 0x4181f0
push esi
call fcn.004066d0
add esp, 4
mov dword [ebp - 0x2270], eax
or ecx, 0xffffffff
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4181e5
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2270]
add eax, 0x10
mov dword [ebp - 0x226c], eax
jmp 0x4181ff
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x226c]
call fcn.00406bf0
mov byte [ebp - 4], 4
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x418218
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x2234]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418221
sub ecx, edx
lea eax, [ebp - 0x2234]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x226c]
call fcn.0040bc00
push 0x2c0
call fcn.00553993
add esp, 4
mov dword [ebp - 0x2284], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x418269
mov ecx, eax
call fcn.00430b80
mov ebx, eax
jmp 0x41826b
xor ebx, ebx
push 0x2000
lea eax, [ebp - 0x2010]
mov byte [ebp - 4], 4
push 0
push eax
mov dword [ebp - 0x2270], ebx
call fcn.00690e10
mov esi, dword [ebp - 0x226c]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x4182ab
push dword [esi - 0xc]
lea ecx, [ebp - 0x226c]
call fcn.00406e20
mov esi, dword [ebp - 0x226c]
push 0
push 0
push 0x2000
lea eax, [ebp - 0x2010]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
lea eax, [ebp - 0x2010]
mov ecx, ebx
push eax
call fcn.004311f0
test al, al
je 0x4182f5
mov ecx, dword [ebp - 0x2274]
add ecx, 0x4c
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x418322
mov dword [eax], ebx
add dword [ecx + 4], 4
jmp 0x418357
push 0
lea eax, [ebp - 0x2010]
mov ecx, ebx
push eax
call fcn.004311f0
test al, al
je 0x418331
mov ecx, dword [ebp - 0x2274]
add ecx, 0x4c
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x418322
mov dword [eax], ebx
add dword [ecx + 4], 4
jmp 0x418357
lea edx, [ebp - 0x2270]
push edx
push eax
call fcn.004081a0
jmp 0x418357
push esi
push str._s_Packing_File_System_Open_Failed_
push 0
call fcn.0041d690
add esp, 0xc
test ebx, ebx
je 0x41834d
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov dword [ebp - 0x2278], 0
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x418373
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2264]
mov ebx, dword [ebp - 0x2274]
lea ecx, [ebp - 0x2260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x418406
cmp dword [ebx + 0x48], 0
jne 0x4183a2
mov eax, dword [ebp - 0x2264]
jmp 0x418110
mov eax, dword [ebx + 0x50]
xor esi, esi
mov ecx, dword [ebx + 0x4c]
sub eax, ecx
sar eax, 2
test eax, eax
jle 0x4183ff
mov edi, dword [ebp - 0x2274]
nop dword [eax]
mov ecx, dword [ecx + esi*4]
lea ebx, [esi*4]
call fcn.00430f20
mov eax, dword [edi + 0x4c]
mov ecx, dword [eax + ebx]
test ecx, ecx
je 0x4183e9
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [edi + 0x4c]
mov dword [eax + ebx], 0
mov eax, dword [edi + 0x50]
inc esi
mov ecx, dword [edi + 0x4c]
sub eax, ecx
sar eax, 2
cmp esi, eax
jl 0x4183c0
mov edi, dword [ebp - 0x2268]
mov ebx, 4
jmp 0x418418
push dword [ebp - 0x2264]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x2278]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x418437
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0068d76f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407310
push 0x80004005
call fcn.00407310
int3