Function at 0x435050
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x643091
mov eax, dword fs:[0]
push eax
sub esp, 0x388
mov eax, dword [0x755898]
xor eax, esp
mov dword [esp + 0x380], eax
push ebx
push esi
push edi
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 0x398]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov edi, ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
mov word [esp + 0x34], ax
mov dword [esp + 0x3a0], ebx
mov eax, dword [edi + 8]
cmp eax, ebx
jne 0x4350b4
lea eax, [edi + 0xc]
push ebx
push eax
push str._stemplate.dat
lea ecx, [esp + 0x3c]
call fcn.004021b0
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x4350d0
lea eax, [esp + 0x34]
lea ecx, [esp + 0x3c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x4352f2
lea esp, [esp]
xor edx, edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov word [esp + 0x28], dx
mov byte [esp + 0x3a0], 1
mov eax, dword [edi + 8]
cmp eax, ebx
jne 0x435111
lea eax, [edi + 0xc]
push ebx
lea ecx, [esp + 0x6c]
push ecx
push eax
push 0x675de0
lea ecx, [esp + 0x34]
call fcn.00402320
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x435132
lea eax, [esp + 0x28]
push 0x67ac18
push eax
call fcn.0061ffcd
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4352b2
push esi
lea edx, [esp + 0x290]
push 0x100
push edx
call fcn.00620b35
add esp, 0xc
test eax, eax
je 0x4352a9
mov eax, 8
xor ecx, ecx
nop
mov edx, dword [esp + ecx + 0x28c]
cmp edx, dword [ecx + str.version]
jne 0x4352a9
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x435170
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x298]
push 0x676424
push ecx
call fcn.0061ecee
add esp, 0xc
cmp eax, 1
jne 0x4352a9
cmp dword [esp + 0x20], eax
jne 0x4352a9
push esi
lea edx, [esp + 0x290]
push 0x100
push edx
call fcn.00620b35
add esp, 0xc
test eax, eax
je 0x4352a9
push esi
lea eax, [esp + 0x290]
push 0x100
push eax
call fcn.00620b35
add esp, 0xc
test eax, eax
je 0x4352a9
cmp dword [esp + 0x28c], 0x656d616e
jne 0x4352a9
cmp byte [esp + 0x290], 0x3d
jne 0x4352a9
lea ecx, [esp + 0x291]
push 0xd
push ecx
call fcn.0061e8e0
add esp, 8
cmp eax, ebx
je 0x43522e
mov byte [eax], bl
lea edx, [esp + 0x291]
push 0xa
push edx
call fcn.0061e8e0
add esp, 8
cmp eax, ebx
je 0x435246
mov byte [eax], bl
lea ecx, [esp + 0x14]
call fcn.004152f0
mov byte [esp + 0x3a0], 2
lea eax, [esp + 0x291]
push eax
lea ecx, [esp + 0x1c]
push 0x675ea0
push ecx
call fcn.00402f70
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp eax, ebx
jne 0x43527d
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
call fcn.00411620
mov eax, dword [edi + 0x1c]
lea ecx, [edi + 0x14]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00434dc0
mov byte [esp + 0x3a0], 1
lea ecx, [esp + 0x14]
call fcn.00434910
push esi
call fcn.0061fca7
add esp, 4
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4352db
mov byte [esp + 0x3a0], bl
lea ecx, [esp + 0x24]
call fcn.00401210
jmp 0x4350f0
mov byte [esp + 0x3a0], bl
lea ecx, [esp + 0x24]
call fcn.00401210
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x3a0], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.00401210
mov ecx, dword [esp + 0x398]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x380]
xor ecx, esp
call fcn.0061d2ff
mov esp, ebp
pop ebp
ret