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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x4b1810]
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 - 0x84], eax
mov al, byte [esi]
test al, al
jne 0x4308c6
cmp dword [esi + 0x2a0], 0
je 0x430b35
test al, al
jne 0x4308c6
mov ecx, dword [esi + 0x2a0]
xor eax, eax
add ecx, dword [esi + 0x29c]
mov edx, dword [esi + 0x290]
test edx, edx
je 0x4306b0
mov edx, dword [edx]
test edx, edx
je 0x4306b0
mov eax, dword [edx]
lea edx, [ecx - 1]
test eax, eax
je 0x4306c7
mov eax, dword [eax]
test eax, eax
je 0x4306c7
mov eax, dword [eax]
test eax, eax
je 0x4306c7
mov eax, dword [eax]
jmp 0x4306c9
xor eax, eax
mov ecx, dword [eax + 8]
lea ebx, [esi + 0x258]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
cmp ebx, eax
je 0x4306eb
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00419cb0
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 edi, dword [eax + ecx*4]
cmp dword [edi + 0x14], 8
jb 0x43071c
push dword [edi]
call fcn.0048d7cb
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
dec dword [esi + 0x2a0]
jne 0x43073d
mov dword [esi + 0x29c], eax
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x50]
xor eax, eax
mov dword [ebp - 0x3c], 7
push 0xffffffffffffffff
push eax
push ebx
mov word [ebp - 0x50], ax
call fcn.00419cb0
cmp dword [esi + 0x288], 0
jne 0x4307d6
push 1
xor eax, eax
mov dword [ebp - 0x24], 7
push 0x4131e0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], ax
call fcn.0041a8b0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x50]
call fcn.0041d6a0
lea ecx, [ebp - 0x50]
cmp ecx, eax
je 0x4307a6
push 0xffffffffffffffff
push 0
push eax
call fcn.00419cb0
cmp dword [ebp - 0x54], 8
jb 0x4307b7
push dword [ebp - 0x68]
call fcn.0048d7cb
add esp, 4
xor eax, eax
mov dword [ebp - 0x54], 7
cmp dword [ebp - 0x24], 8
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], ax
jb 0x43080b
push dword [ebp - 0x38]
jmp 0x430803
lea eax, [esi + 0x278]
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x50]
call fcn.0041d6a0
lea ecx, [ebp - 0x50]
cmp ecx, eax
je 0x4307fa
push 0xffffffffffffffff
push 0
push eax
call fcn.00419cb0
cmp dword [ebp - 0x54], 8
jb 0x43080b
push dword [ebp - 0x68]
call fcn.0048d7cb
add esp, 4
cmp dword [0x4b83e0], 0
jne 0x430870
push 0x44
call fcn.0048d755
add esp, 4
test eax, eax
je 0x43082d
mov ecx, eax
call fcn.004265e0
mov edi, eax
jmp 0x43082f
xor edi, edi
mov ecx, edi
xor eax, eax
mov edx, 0x4b83e0
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x430870
test edi, edi
je 0x430870
cmp dword [edi + 0x40], 0x10
jb 0x430855
push dword [edi + 0x2c]
call fcn.0048d7cb
add esp, 4
mov dword [edi + 0x40], 0xf
mov dword [edi + 0x3c], 0
push edi
mov byte [edi + 0x2c], 0
call fcn.0048d7cb
add esp, 4
mov eax, dword [0x4b83e0]
lea ebx, [esi + 4]
cmp dword [eax], 4
lea eax, [ebp - 0x50]
jl 0x43089a
cmp dword [ebp - 0x3c], 8
push 2
cmovae eax, dword [ebp - 0x50]
push 0
push 0
push ebx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
jmp 0x4308aa
cmp dword [ebp - 0x3c], 8
push ebx
cmovae eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp dword [ebp - 0x3c], 8
mov dword [esi + 0x254], eax
mov byte [esi], 1
jb 0x4308f0
push dword [ebp - 0x50]
call fcn.0048d7cb
add esp, 4
jmp 0x4308f0
lea ebx, [esi + 4]
push ebx
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4308f0
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi + 0x254], 0xffffffff
xor eax, eax
cmp dword [esi + 0x254], 0xffffffff
jne 0x430985
mov byte [esi], al
lea edi, [esi + 0x278]
mov dword [ebp - 0x70], eax
mov word [ebp - 0x80], ax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x6c], 7
cmp edi, eax
je 0x430671
cmp dword [edi + 0x14], 8
jb 0x430930
push dword [edi]
call fcn.0048d7cb
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
mov ecx, dword [ebp - 0x6c]
cmp ecx, 8
jae 0x430972
mov eax, dword [ebp - 0x70]
inc eax
je 0x430977
add eax, eax
push eax
lea eax, [ebp - 0x80]
push eax
push edi
call fcn.0048d910
mov ecx, dword [ebp - 0x6c]
add esp, 0xc
mov eax, dword [ebp - 0x70]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
jmp 0x430671
mov eax, dword [ebp - 0x80]
mov dword [edi], eax
mov eax, dword [ebp - 0x70]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
jmp 0x430671
lea edi, [esi + 0x30]
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], ax
cmp word [edi], ax
jne 0x4309a3
xor ecx, ecx
jmp 0x4309bf
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x4309b0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4309b0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x38]
call fcn.0041a8b0
xor eax, eax
mov dword [ebp - 0xc], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x20], ax
lea ecx, [ebp - 0x20]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x10], 0
push eax
call fcn.00419cb0
push 1
push 0
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 0
push eax
lea ecx, [ebp - 0x20]
call fcn.00419dd0
cmp eax, 0xffffffff
je 0x430a19
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x20]
call fcn.0041aa80
cmp dword [ebp - 0x24], 8
jb 0x430a2a
push dword [ebp - 0x38]
call fcn.0048d7cb
add esp, 4
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.00430e60
test al, al
jne 0x430b1b
xor eax, eax
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], ax
cmp word [edi], ax
jne 0x430a5a
xor ecx, ecx
jmp 0x430a6f
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430a60
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x38]
call fcn.0041a8b0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [esi + 0x258]
call fcn.0041d6a0
lea ecx, [ebp - 0x20]
cmp ecx, eax
je 0x430a9d
push 0xffffffffffffffff
push 0
push eax
call fcn.00419cb0
cmp dword [ebp - 0x54], 8
jb 0x430aae
push dword [ebp - 0x68]
call fcn.0048d7cb
add esp, 4
xor eax, eax
mov dword [ebp - 0x54], 7
cmp dword [ebp - 0x24], 8
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], ax
jb 0x430ad3
push dword [ebp - 0x38]
call fcn.0048d7cb
add esp, 4
test byte [ebx], 0x10
je 0x430b12
cmp byte [esi + 0x270], 0
je 0x430b09
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 0x430b09
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x290]
call fcn.00430bb0
test byte [esi + 0x274], 2
jmp 0x430b19
test byte [esi + 0x274], 1
jne 0x430b63
cmp dword [ebp - 0xc], 8
jb 0x430671
push dword [ebp - 0x20]
call fcn.0048d7cb
add esp, 4
jmp 0x430671
mov ecx, dword [ebp - 0x84]
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
mov eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00491511
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 0x84]
xor eax, eax
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
lea eax, [ebp - 0x20]
push eax
call fcn.00419cb0
cmp dword [ebp - 0xc], 8
jb 0x430b9b
push dword [ebp - 0x20]
call fcn.0048d7cb
add esp, 4
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00491511
mov esp, ebp
pop ebp
ret 4