Function at 0x455da0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x558
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x178]
push ebp
mov byte [eax + 8], 0
mov ecx, dword [ebx + 0x174]
push esi
push edi
mov byte [ecx + 8], 0
mov eax, dword [ebx + 0x118]
xor edi, edi
cmp eax, edi
je 0x455e39
mov eax, dword [ebx + 0x11c]
xor esi, esi
cmp eax, edi
je 0x455e18
mov edi, edi
mov edx, dword [ebx + 0x118]
mov eax, dword [edx + esi*8 + 4]
cmp eax, edi
je 0x455df7
push eax
call fcn.00459680
add esp, 4
mov eax, dword [ebx + 0x118]
mov eax, dword [eax + esi*8]
cmp eax, edi
je 0x455e0d
push eax
call fcn.00459680
add esp, 4
mov eax, dword [ebx + 0x11c]
inc esi
cmp esi, eax
jne 0x455de0
mov ecx, dword [ebx + 0x118]
push ecx
call fcn.00459680
add esp, 4
mov dword [ebx + 0x118], edi
mov dword [ebx + 0x120], edi
mov dword [ebx + 0x11c], edi
mov esi, dword [0x4b3998]
lea edx, [esp + 0x168]
mov eax, esi
sub edx, esi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x455e50
push 2
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationA]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextChangeNotification]
mov esi, eax
push 1
push esi
call edi
test eax, eax
jne 0x455e83
push esi
call ebp
test eax, eax
jne 0x455e73
push esi
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
lea eax, [esp + 0x168]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x455e94
sub eax, edx
lea edx, [esp + eax + 0x168]
lea edi, [esp + 0x168]
mov dword [esp + 0x14], edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x455eb0
mov eax, dword [str.LevelPack]
mov ecx, dword [0x4a623c]
mov dx, word [0x4a6240]
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [edi], eax
mov al, byte [0x4a6242]
mov dword [edi + 4], ecx
mov word [edi + 8], dx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x16c]
push edx
mov byte [edi + 0xa], al
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x456260
xor esi, esi
lea ecx, [ecx]
test byte [esp + 0x28], 0x10
je 0x455f20
push 8
lea eax, [esp + 0x58]
push 0x4a622c
push eax
call fcn.0049b0e8
add esp, 0xc
test eax, eax
jne 0x455f20
inc esi
lea ecx, [esp + 0x28]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x455f00
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
je 0x456260
lea edx, [esi*8]
push edx
mov dword [ebx + 0x11c], esi
call fcn.00459630
add esp, 4
mov dword [ebx + 0x118], eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x16c]
push ecx
call ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], eax
call fcn.0045bfc0
xor ebp, ebp
lea esp, [esp]
test byte [esp + 0x28], 0x10
je 0x456207
push 8
lea edx, [esp + 0x58]
push 0x4a622c
push edx
call fcn.0049b0e8
add esp, 0xc
test eax, eax
jne 0x456207
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x54]
mov ecx, eax
sub esi, ecx
mov dword [esp + 0x24], esi
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x455fb7
mov edi, dword [esp + 0x14]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x455fc6
mov edx, dword [str.Packinfo.xml]
mov eax, dword [0x4a6220]
mov ecx, dword [0x4a6224]
mov dword [edi], edx
mov dx, word [0x4a6228]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x1c]
mov word [edi + 0xc], dx
call fcn.0045c5c0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x456175
mov ecx, dword [esp + 0x18]
push str.NAME
call fcn.0045c570
mov edi, eax
test edi, edi
je 0x456072
mov eax, dword [edi + 4]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x456030
sub eax, edx
lea esi, [eax + 1]
push esi
call fcn.00459630
mov ecx, dword [ebx + 0x118]
mov dword [ecx + ebp + 4], eax
mov edx, dword [ebx + 0x118]
mov ecx, esi
mov esi, dword [edi + 4]
mov edi, dword [edx + ebp + 4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x24]
jmp 0x4560b3
push 0xd
call fcn.00459630
mov ecx, dword [ebx + 0x118]
mov dword [ecx + ebp + 4], eax
mov edx, dword [ebx + 0x118]
mov eax, dword [edx + ebp + 4]
mov ecx, dword [str.Unnamed_Pack]
mov dword [eax], ecx
mov edx, dword [0x4a6208]
mov dword [eax + 4], edx
mov ecx, dword [0x4a620c]
mov dword [eax + 8], ecx
mov dl, byte [0x4a6210]
add esp, 4
mov byte [eax + 0xc], dl
mov ecx, dword [esp + 0x18]
push str.SEQUENCE
call fcn.0045c570
test eax, eax
je 0x456169
lea ecx, [esp + 0x54]
lea ecx, [ecx]
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x4560d0
mov edx, dword [esp + 0x14]
mov edi, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4560e1
mov cx, word [0x4a447c]
mov word [edi], cx
mov eax, dword [eax + 4]
mov edi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4560f8
sub eax, edi
mov esi, edi
mov edi, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x456106
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x168]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x456126
sub eax, edx
lea esi, [eax + 1]
push esi
call fcn.00459630
mov edx, dword [ebx + 0x118]
mov dword [edx + ebp], eax
mov eax, dword [ebx + 0x118]
mov edi, dword [eax + ebp]
mov ecx, esi
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x16c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4561fb
push 0x12
call fcn.00459630
add esp, 4
jmp 0x4561bb
push 0x10
call fcn.00459630
mov edx, dword [ebx + 0x118]
mov dword [edx + ebp + 4], eax
mov eax, dword [ebx + 0x118]
mov ecx, dword [eax + ebp + 4]
mov edx, dword [str.Unnamed_Pack]
mov dword [ecx], edx
mov eax, dword [0x4a6208]
mov dword [ecx + 4], eax
mov edx, dword [0x4a620c]
mov dword [ecx + 8], edx
mov eax, dword [0x4a6210]
push 0x12
mov dword [ecx + 0xc], eax
call fcn.00459630
add esp, 8
mov ecx, dword [ebx + 0x118]
mov dword [ecx + ebp], eax
mov edx, dword [ebx + 0x118]
mov eax, dword [edx + ebp]
mov ecx, dword [str.LevelSequence.cfg]
mov dword [eax], ecx
mov edx, dword [0x4a2274]
mov dword [eax + 4], edx
mov ecx, dword [0x4a2278]
mov dword [eax + 8], ecx
mov edx, dword [0x4a227c]
mov dword [eax + 0xc], edx
mov cx, word [0x4a2280]
mov word [eax + 0x10], cx
lea ecx, [esp + 0x18]
add ebp, 8
call fcn.0045c0a0
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x455f80
mov ecx, dword [ebx + 0x11c]
mov eax, dword [ebx + 0x120]
sub ecx, 5
cmp eax, ecx
jae 0x45624d
mov edx, dword [ebx + 0x174]
lea ecx, [esp + 0x18]
mov byte [edx + 8], 1
call fcn.00460d50
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x174]
lea ecx, [esp + 0x18]
mov byte [eax + 8], 0
call fcn.00460d50
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret