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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x57a120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x68], eax
jmp 0x434840
mov al, byte [esi]
test al, al
jne 0x434a52
cmp dword [esi + 0x2a0], 0
je 0x434c65
test al, al
jne 0x434a52
mov ecx, dword [esi + 0x2a0]
xor eax, eax
add ecx, dword [esi + 0x29c]
mov edx, dword [esi + 0x290]
test edx, edx
je 0x43487f
mov edx, dword [edx]
test edx, edx
je 0x43487f
mov eax, dword [edx]
lea edx, [ecx - 1]
test eax, eax
je 0x434896
mov eax, dword [eax]
test eax, eax
je 0x434896
mov eax, dword [eax]
test eax, eax
je 0x434896
mov eax, dword [eax]
jmp 0x434898
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 0x4348ba
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00407970
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 0x4348eb
push dword [edi]
call fcn.004f2e36
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 0x43490c
mov dword [esi + 0x29c], eax
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x34]
xor eax, eax
mov dword [ebp - 0x20], 7
push 0xffffffffffffffff
push eax
push ebx
mov word [ebp - 0x34], ax
call fcn.00407970
sub esp, 8
cmp dword [esi + 0x288], 0
jne 0x434945
mov eax, esp
mov dword [eax], 0x563188
mov dword [eax + 4], 1
jmp 0x434969
cmp dword [esi + 0x28c], 8
mov edx, esp
jb 0x434958
mov ecx, dword [esi + 0x278]
jmp 0x43495e
lea ecx, [esi + 0x278]
mov dword [edx], ecx
mov eax, dword [esi + 0x288]
mov dword [edx + 4], eax
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040fc60
lea ecx, [ebp - 0x34]
cmp ecx, eax
je 0x434986
push 0xffffffffffffffff
push 0
push eax
call fcn.00407970
cmp dword [ebp - 0x50], 8
jb 0x434997
push dword [ebp - 0x64]
call fcn.004f2e36
add esp, 4
cmp dword [0x5807e4], 0
jne 0x4349fc
push 0x44
call fcn.004f3c8b
add esp, 4
test eax, eax
je 0x4349b9
mov ecx, eax
call fcn.004293e0
mov edi, eax
jmp 0x4349bb
xor edi, edi
mov ecx, edi
xor eax, eax
mov edx, 0x5807e4
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4349fc
test edi, edi
je 0x4349fc
cmp dword [edi + 0x40], 0x10
jb 0x4349e1
push dword [edi + 0x2c]
call fcn.004f2e36
add esp, 4
mov dword [edi + 0x40], 0xf
mov dword [edi + 0x3c], 0
push edi
mov byte [edi + 0x2c], 0
call fcn.004f2e36
add esp, 4
mov eax, dword [0x5807e4]
lea ebx, [esi + 4]
cmp dword [eax], 4
lea eax, [ebp - 0x34]
jl 0x434a26
cmp dword [ebp - 0x20], 8
push 2
cmovae eax, dword [ebp - 0x34]
push 0
push 0
push ebx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
jmp 0x434a36
cmp dword [ebp - 0x20], 8
push ebx
cmovae eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp dword [ebp - 0x20], 8
mov dword [esi + 0x254], eax
mov byte [esi], 1
jb 0x434a7c
push dword [ebp - 0x34]
call fcn.004f2e36
add esp, 4
jmp 0x434a7c
lea ebx, [esi + 4]
push ebx
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x434a7c
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi + 0x254], 0xffffffff
cmp dword [esi + 0x254], 0xffffffff
jne 0x434b16
xor eax, eax
mov byte [esi], 0
mov word [ebp - 0x4c], ax
lea edi, [esi + 0x278]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
cmp edi, eax
je 0x434840
cmp dword [edi + 0x14], 8
jb 0x434ac1
push dword [edi]
call fcn.004f2e36
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
mov ecx, dword [ebp - 0x38]
cmp ecx, 8
jae 0x434b03
mov eax, dword [ebp - 0x3c]
inc eax
je 0x434b08
add eax, eax
push eax
lea eax, [ebp - 0x4c]
push eax
push edi
call fcn.004f4a70
mov ecx, dword [ebp - 0x38]
add esp, 0xc
mov eax, dword [ebp - 0x3c]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
jmp 0x434840
mov eax, dword [ebp - 0x4c]
mov dword [edi], eax
mov eax, dword [ebp - 0x3c]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
jmp 0x434840
lea edi, [esi + 0x30]
test edi, edi
jne 0x434b21
xor ecx, ecx
jmp 0x434b3f
cmp word [edi], 0
jne 0x434b2b
xor ecx, ecx
jmp 0x434b3f
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x434b30
sub ecx, edx
sar ecx, 1
xor eax, eax
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
test ecx, ecx
jne 0x434b60
mov dword [ebp - 0xc], eax
mov word [ebp - 0x1c], ax
jmp 0x434b6a
push ecx
push edi
lea ecx, [ebp - 0x1c]
call fcn.00407440
push 1
push 0
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0
push eax
lea ecx, [ebp - 0x1c]
call fcn.00406820
cmp eax, 0xffffffff
je 0x434b91
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x1c]
call fcn.004052c0
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00435c10
test al, al
jne 0x434c4b
sub esp, 8
mov ecx, esp
mov dword [ecx], edi
test edi, edi
je 0x434bcf
cmp word [edi], 0
jne 0x434bb9
xor edi, edi
jmp 0x434bcf
lea edx, [edi + 2]
lea esp, [esp]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x434bc0
sub edi, edx
sar edi, 1
lea eax, [ebp - 0x64]
mov dword [ecx + 4], edi
push eax
lea ecx, [esi + 0x258]
call fcn.0040fc60
lea ecx, [ebp - 0x1c]
cmp ecx, eax
je 0x434bf2
push 0xffffffffffffffff
push 0
push eax
call fcn.00407970
cmp dword [ebp - 0x50], 8
jb 0x434c03
push dword [ebp - 0x64]
call fcn.004f2e36
add esp, 4
test byte [ebx], 0x10
je 0x434c42
cmp byte [esi + 0x270], 0
je 0x434c39
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x434c39
lea eax, [ebp - 0x1c]
push eax
lea ecx, [esi + 0x290]
call fcn.00434ec0
test byte [esi + 0x274], 2
jmp 0x434c49
test byte [esi + 0x274], 1
jne 0x434c90
cmp dword [ebp - 8], 8
jb 0x434840
push dword [ebp - 0x1c]
call fcn.004f2e36
add esp, 4
jmp 0x434840
mov ecx, dword [ebp - 0x68]
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 - 4]
xor ecx, ebp
call fcn.004f3b66
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 0x68]
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 - 0x1c]
push eax
call fcn.00407970
cmp dword [ebp - 8], 8
jb 0x434cc5
push dword [ebp - 0x1c]
call fcn.004f2e36
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f3b66
mov esp, ebp
pop ebp
ret 4