Function at 0x431150
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x5521f4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x54], eax
mov al, byte [esi]
mov ebx, 0x568728
test al, al
jne 0x43131c
cmp dword [esi + 0x2a0], 0
je 0x431546
test al, al
jne 0x43131c
mov ecx, dword [esi + 0x2a0]
xor eax, eax
add ecx, dword [esi + 0x29c]
mov edx, dword [esi + 0x290]
test edx, edx
je 0x4311af
mov edx, dword [edx]
test edx, edx
je 0x4311af
mov eax, dword [edx]
lea edx, [ecx - 1]
test eax, eax
je 0x4311c6
mov eax, dword [eax]
test eax, eax
je 0x4311c6
mov eax, dword [eax]
test eax, eax
je 0x4311c6
mov eax, dword [eax]
jmp 0x4311c8
xor eax, eax
mov ecx, dword [eax + 8]
lea edi, [esi + 0x258]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
cmp edi, eax
je 0x4311ea
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00408f60
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.00405820
add dword [esi + 0x2a0], 0xffffffff
jne 0x431223
mov dword [esi + 0x29c], 0
push edi
lea ecx, [ebp - 0x38]
call fcn.00408ea0
sub esp, 8
cmp dword [esi + 0x288], 0
jne 0x431249
mov eax, esp
mov dword [eax], 0x545af0
mov dword [eax + 4], 1
jmp 0x43126d
cmp dword [esi + 0x28c], 8
mov edx, esp
jb 0x43125c
mov ecx, dword [esi + 0x278]
jmp 0x431262
lea ecx, [esi + 0x278]
mov dword [edx], ecx
mov eax, dword [esi + 0x288]
mov dword [edx + 4], eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x38]
call fcn.00425640
lea ecx, [ebp - 0x38]
cmp ecx, eax
je 0x43128a
push 0xffffffffffffffff
push 0
push eax
call fcn.00408f60
lea ecx, [ebp - 0x50]
call fcn.00405820
cmp dword [0x568728], 0
jne 0x4312cf
push 0x4c
call fcn.00497eca
add esp, 4
mov ecx, eax
call fcn.00435040
mov edi, eax
xor eax, eax
mov ecx, edi
lock cmpxchg dword [ebx], ecx
test eax, eax
je 0x4312cf
test edi, edi
je 0x4312cf
lea ecx, [edi + 0x34]
call fcn.00402210
push edi
call fcn.00497f0b
add esp, 4
mov eax, dword [0x568728]
lea ebx, [esi + 4]
cmp dword [eax], 4
lea eax, [ebp - 0x38]
jl 0x4312f9
cmp dword [ebp - 0x24], 8
push 2
cmovae eax, dword [ebp - 0x38]
push 0
push 0
push ebx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
jmp 0x431309
cmp dword [ebp - 0x24], 8
push ebx
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x38]
mov dword [esi + 0x254], eax
mov byte [esi], 1
call fcn.00405820
jmp 0x431346
lea eax, [esi + 4]
push eax
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x431346
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi + 0x254], 0xffffffff
cmp dword [esi + 0x254], 0xffffffff
jne 0x4313ad
lea ecx, [ebp - 0x50]
mov byte [esi], 0
call fcn.004058b0
mov ebx, eax
lea edi, [esi + 0x278]
cmp edi, ebx
je 0x4313a0
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x431379
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.00406490
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x431391
mov eax, dword [edi]
jmp 0x431393
mov eax, edi
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
push ebx
call fcn.00405ac0
lea ecx, [ebp - 0x50]
call fcn.00405820
jmp 0x43116b
lea edi, [esi + 0x30]
test edi, edi
jne 0x4313b8
xor ebx, ebx
jmp 0x4313d6
cmp word [edi], 0
jne 0x4313c2
xor ebx, ebx
jmp 0x4313d6
mov ebx, edi
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4313c7
sub ebx, ecx
sar ebx, 1
lea ecx, [ebp - 0x20]
call fcn.004058b0
test ebx, ebx
jne 0x4313f7
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
cmovae eax, dword [ebp - 0x20]
xor ecx, ecx
mov word [eax], cx
jmp 0x431401
push ebx
push edi
lea ecx, [ebp - 0x20]
call fcn.0040e4f0
push 1
push ecx
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0
push eax
lea ecx, [ebp - 0x20]
call fcn.00425d40
cmp eax, 0xffffffff
je 0x431427
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x20]
call fcn.004060f0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x20]
call fcn.00425590
push eax
lea ecx, [ebp - 0x38]
call fcn.00408ea0
lea ecx, [ebp - 0x50]
call fcn.00405820
cmp dword [ebp - 0x24], 8
lea ecx, [ebp - 0x38]
mov edx, dword [ebp - 0x28]
cmovae ecx, dword [ebp - 0x38]
push 1
push 0x545dac
call fcn.00415200
add esp, 8
test eax, eax
je 0x431483
mov edx, 0x545db0
lea ecx, [ebp - 0x38]
call fcn.00425e20
test al, al
je 0x43147f
test byte [esi + 0x274], 4
je 0x431483
xor bl, bl
jmp 0x431485
mov bl, 1
lea ecx, [ebp - 0x38]
call fcn.00405820
test bl, bl
je 0x43149e
lea ecx, [ebp - 0x20]
call fcn.00405820
jmp 0x43116b
sub esp, 8
mov ecx, esp
mov dword [ecx], edi
test edi, edi
je 0x4314c5
cmp word [edi], 0
jne 0x4314b3
xor edi, edi
jmp 0x4314c5
lea edx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4314b6
sub edi, edx
sar edi, 1
lea eax, [ebp - 0x50]
mov dword [ecx + 4], edi
push eax
lea ecx, [esi + 0x258]
call fcn.00425640
lea ecx, [ebp - 0x20]
cmp ecx, eax
je 0x4314e8
push 0xffffffffffffffff
push 0
push eax
call fcn.00408f60
lea ecx, [ebp - 0x50]
call fcn.00405820
test byte [esi + 4], 0x10
je 0x431530
cmp byte [esi + 0x270], 0
je 0x431527
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x431527
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x290]
call fcn.00431600
test byte [esi + 0x274], 2
jmp 0x431537
test byte [esi + 0x274], 1
jne 0x431550
lea ecx, [ebp - 0x20]
call fcn.00405820
jmp 0x43116b
mov ecx, dword [ebp - 0x54]
call fcn.004058b0
jmp 0x431564
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x20]
push eax
call fcn.00408ea0
lea ecx, [ebp - 0x20]
call fcn.00405820
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x54]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00497eb9
mov esp, ebp
pop ebp
ret 4