Function at 0x427f30
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x498068]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov al, byte [esi]
test al, al
jne 0x4280fd
cmp dword [esi + 0x2a0], 0
je 0x42831a
test al, al
jne 0x4280fd
mov ecx, dword [esi + 0x2a0]
xor eax, eax
add ecx, dword [esi + 0x29c]
mov edx, dword [esi + 0x290]
test edx, edx
je 0x427f95
mov edx, dword [edx]
test edx, edx
je 0x427f95
mov eax, dword [edx]
lea edx, [ecx - 1]
test eax, eax
je 0x427fac
mov eax, dword [eax]
test eax, eax
je 0x427fac
mov eax, dword [eax]
test eax, eax
je 0x427fac
mov eax, dword [eax]
jmp 0x427fae
xor eax, eax
mov ecx, dword [eax + 8]
lea edi, [esi + 0x258]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
mov ecx, dword [eax + ecx*4]
call fcn.00401a00
cmp edi, eax
je 0x427fe3
call fcn.00401a00
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x427fd8
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edi
call fcn.00401a50
mov eax, dword [esi + 0x2a0]
mov ecx, dword [esi + 0x29c]
dec eax
add ecx, eax
mov eax, dword [esi + 0x298]
dec eax
and ecx, eax
mov eax, dword [esi + 0x294]
mov ecx, dword [eax + ecx*4]
call fcn.00401850
add dword [esi + 0x2a0], 0xffffffff
jne 0x42801c
mov dword [esi + 0x29c], 0
push edi
lea ecx, [esp + 0x30]
call fcn.00401920
lea edi, [esi + 0x278]
mov ecx, edi
call fcn.00404c40
test al, al
je 0x428092
push 0x489450
lea ecx, [esp + 0x48]
call fcn.004018b0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x34]
call fcn.00426760
mov ecx, eax
call fcn.00401a00
lea edx, [esp + 0x2c]
cmp edx, eax
je 0x428083
call fcn.00401a00
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x428076
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [esp + 0x34]
call fcn.00401a50
lea ecx, [esp + 0x5c]
call fcn.00401850
lea ecx, [esp + 0x44]
jmp 0x4280d0
push edi
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x34]
call fcn.00426760
mov ecx, eax
call fcn.00401a00
lea edx, [esp + 0x2c]
cmp edx, eax
je 0x4280cc
call fcn.00401a00
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4280bf
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [esp + 0x34]
call fcn.00401a50
lea ecx, [esp + 0x5c]
call fcn.00401850
lea edi, [esi + 4]
push edi
lea ecx, [esp + 0x30]
call fcn.00401810
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [esp + 0x2c]
mov dword [esi + 0x254], eax
mov byte [esi], 1
call fcn.00401850
jmp 0x428127
lea edi, [esi + 4]
push edi
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x428127
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi + 0x254], 0xffffffff
cmp dword [esi + 0x254], 0xffffffff
jne 0x428156
lea ecx, [esp + 0x5c]
mov byte [esi], 0
call fcn.00401900
push eax
lea ecx, [esi + 0x278]
call fcn.0040f760
lea ecx, [esp + 0x5c]
call fcn.00401850
jmp 0x427f56
lea eax, [esi + 0x30]
push eax
lea ecx, [esp + 0x48]
call fcn.004018b0
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x18]
call fcn.00401920
lea ecx, [esp + 0x44]
call fcn.00401850
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x18]
call fcn.004263d0
push eax
lea ecx, [esp + 0x78]
call fcn.00401920
lea ecx, [esp + 0x5c]
call fcn.00401850
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x18]
call fcn.004263d0
push 0x48945c
mov ecx, eax
call fcn.00407e70
lea ecx, [esp + 0x44]
mov bl, al
call fcn.00401850
test bl, bl
jne 0x4281fa
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.004263d0
push 0x489454
mov ecx, eax
call fcn.00407e70
lea ecx, [esp + 0x2c]
mov bl, al
call fcn.00401850
test bl, bl
je 0x4281f6
test byte [esi + 0x274], 4
je 0x4281fa
xor bl, bl
jmp 0x4281fc
mov bl, 1
lea ecx, [esp + 0x74]
call fcn.00401850
test bl, bl
je 0x428217
lea ecx, [esp + 0x14]
call fcn.00401850
jmp 0x427f56
lea eax, [esi + 0x30]
push eax
lea ecx, [esp + 0x48]
call fcn.004018b0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x78]
push eax
lea ecx, [esi + 0x258]
call fcn.00426760
mov ecx, eax
call fcn.00401a00
lea edx, [esp + 0x14]
cmp edx, eax
je 0x428264
call fcn.00401a00
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x428257
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401a50
lea ecx, [esp + 0x74]
call fcn.00401850
lea ecx, [esp + 0x44]
call fcn.00401850
test byte [edi], 0x10
je 0x428303
cmp byte [esi + 0x270], 0
je 0x4282fa
mov eax, dword [esi + 0x2a0]
lea edi, [esi + 0x290]
mov ecx, dword [edi + 8]
inc eax
cmp ecx, eax
ja 0x4282a7
push ecx
mov ecx, edi
call fcn.004285e0
mov ecx, dword [edi + 8]
lea eax, [ecx - 1]
and dword [edi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 8]
add ecx, dword [edi + 0xc]
dec eax
and ecx, eax
mov eax, dword [edi + 4]
cmp dword [eax + ecx*4], 0
lea ebx, [ecx*4]
jne 0x4282de
push 0x18
call fcn.0044f797
mov ecx, eax
add esp, 4
mov eax, dword [edi + 4]
mov dword [ebx + eax], ecx
mov eax, dword [edi + 4]
lea ecx, [esp + 0x14]
push ecx
push dword [eax + ebx]
push 0x18
call fcn.004013c0
add esp, 8
mov ecx, eax
call fcn.00401920
inc dword [edi + 0x10]
test byte [esi + 0x274], 2
jmp 0x42830a
test byte [esi + 0x274], 1
jne 0x428325
lea ecx, [esp + 0x14]
call fcn.00401850
jmp 0x427f56
mov ecx, dword [esp + 0x10]
call fcn.00401900
jmp 0x42833c
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
call fcn.00401920
lea ecx, [esp + 0x14]
call fcn.00401850
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044f786
mov esp, ebp
pop ebp
ret 4