Function at 0x435100
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x645ec1
mov eax, dword fs:[0]
push eax
sub esp, 0x388
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x380], eax
push ebx
push esi
push edi
mov eax, dword [0x758898]
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 0x435164
lea eax, [edi + 0xc]
push ebx
push eax
push str._stemplate.dat
lea ecx, [esp + 0x3c]
call fcn.004021c0
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x435180
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 0x4353a2
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 0x4351c1
lea eax, [edi + 0xc]
push ebx
lea ecx, [esp + 0x6c]
push ecx
push eax
push 0x678de0
lea ecx, [esp + 0x34]
call fcn.00402330
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x4351e2
lea eax, [esp + 0x28]
push 0x67de24
push eax
call fcn.00622f0d
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x435362
push esi
lea edx, [esp + 0x290]
push 0x100
push edx
call fcn.00623a75
add esp, 0xc
test eax, eax
je 0x435359
mov eax, 8
xor ecx, ecx
nop
mov edx, dword [esp + ecx + 0x28c]
cmp edx, dword [ecx + str.version]
jne 0x435359
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x435220
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x298]
push 0x67942c
push ecx
call fcn.00621c2e
add esp, 0xc
cmp eax, 1
jne 0x435359
cmp dword [esp + 0x20], eax
jne 0x435359
push esi
lea edx, [esp + 0x290]
push 0x100
push edx
call fcn.00623a75
add esp, 0xc
test eax, eax
je 0x435359
push esi
lea eax, [esp + 0x290]
push 0x100
push eax
call fcn.00623a75
add esp, 0xc
test eax, eax
je 0x435359
cmp dword [esp + 0x28c], 0x656d616e
jne 0x435359
cmp byte [esp + 0x290], 0x3d
jne 0x435359
lea ecx, [esp + 0x291]
push 0xd
push ecx
call fcn.00621820
add esp, 8
cmp eax, ebx
je 0x4352de
mov byte [eax], bl
lea edx, [esp + 0x291]
push 0xa
push edx
call fcn.00621820
add esp, 8
cmp eax, ebx
je 0x4352f6
mov byte [eax], bl
lea ecx, [esp + 0x14]
call fcn.00414f20
mov byte [esp + 0x3a0], 2
lea eax, [esp + 0x291]
push eax
lea ecx, [esp + 0x1c]
push 0x678ea8
push ecx
call fcn.00402f80
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp eax, ebx
jne 0x43532d
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
call fcn.00411170
mov eax, dword [edi + 0x1c]
lea ecx, [edi + 0x14]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00434e70
mov byte [esp + 0x3a0], 1
lea ecx, [esp + 0x14]
call fcn.004349c0
push esi
call fcn.00622be7
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 0x43538b
mov byte [esp + 0x3a0], bl
lea ecx, [esp + 0x24]
call fcn.00401210
jmp 0x4351a0
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.0062023e
mov esp, ebp
pop ebp
ret