Function at 0x428910
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 0x428add
cmp dword [esi + 0x2a0], 0
je 0x428cfa
test al, al
jne 0x428add
mov ecx, dword [esi + 0x2a0]
xor eax, eax
add ecx, dword [esi + 0x29c]
mov edx, dword [esi + 0x290]
test edx, edx
je 0x428975
mov edx, dword [edx]
test edx, edx
je 0x428975
mov eax, dword [edx]
lea edx, [ecx - 1]
test eax, eax
je 0x42898c
mov eax, dword [eax]
test eax, eax
je 0x42898c
mov eax, dword [eax]
test eax, eax
je 0x42898c
mov eax, dword [eax]
jmp 0x42898e
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 0x4289c3
call fcn.00401a00
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4289b8
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 0x4289fc
mov dword [esi + 0x29c], 0
push edi
lea ecx, [esp + 0x30]
call fcn.00401920
lea edi, [esi + 0x278]
mov ecx, edi
call fcn.00405620
test al, al
je 0x428a72
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.00427150
mov ecx, eax
call fcn.00401a00
lea edx, [esp + 0x2c]
cmp edx, eax
je 0x428a63
call fcn.00401a00
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x428a56
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 0x428ab0
push edi
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x34]
call fcn.00427150
mov ecx, eax
call fcn.00401a00
lea edx, [esp + 0x2c]
cmp edx, eax
je 0x428aac
call fcn.00401a00
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x428a9f
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 0x428b07
lea edi, [esi + 4]
push edi
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x428b07
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi + 0x254], 0xffffffff
cmp dword [esi + 0x254], 0xffffffff
jne 0x428b36
lea ecx, [esp + 0x5c]
mov byte [esi], 0
call fcn.00401900
push eax
lea ecx, [esi + 0x278]
call fcn.00410170
lea ecx, [esp + 0x5c]
call fcn.00401850
jmp 0x428936
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.00426dc0
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.00426dc0
push 0x48945c
mov ecx, eax
call fcn.00408880
lea ecx, [esp + 0x44]
mov bl, al
call fcn.00401850
test bl, bl
jne 0x428bda
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.00426dc0
push 0x489454
mov ecx, eax
call fcn.00408880
lea ecx, [esp + 0x2c]
mov bl, al
call fcn.00401850
test bl, bl
je 0x428bd6
test byte [esi + 0x274], 4
je 0x428bda
xor bl, bl
jmp 0x428bdc
mov bl, 1
lea ecx, [esp + 0x74]
call fcn.00401850
test bl, bl
je 0x428bf7
lea ecx, [esp + 0x14]
call fcn.00401850
jmp 0x428936
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.00427150
mov ecx, eax
call fcn.00401a00
lea edx, [esp + 0x14]
cmp edx, eax
je 0x428c44
call fcn.00401a00
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x428c37
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 0x428ce3
cmp byte [esi + 0x270], 0
je 0x428cda
mov eax, dword [esi + 0x2a0]
lea edi, [esi + 0x290]
mov ecx, dword [edi + 8]
inc eax
cmp ecx, eax
ja 0x428c87
push ecx
mov ecx, edi
call fcn.00428fc0
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 0x428cbe
push 0x18
call fcn.00450175
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 0x428cea
test byte [esi + 0x274], 1
jne 0x428d05
lea ecx, [esp + 0x14]
call fcn.00401850
jmp 0x428936
mov ecx, dword [esp + 0x10]
call fcn.00401900
jmp 0x428d1c
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.00450164
mov esp, ebp
pop ebp
ret 4