Function at 0x435690
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6467f1
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 0x4356f4
lea eax, [edi + 0xc]
push ebx
push eax
push str._stemplate.dat
lea ecx, [esp + 0x3c]
call fcn.004021a0
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x435710
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 0x435932
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 0x435751
lea eax, [edi + 0xc]
push ebx
lea ecx, [esp + 0x6c]
push ecx
push eax
push 0x678de0
lea ecx, [esp + 0x34]
call fcn.00402310
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x435772
lea eax, [esp + 0x28]
push 0x67de24
push eax
call fcn.0062385d
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4358f2
push esi
lea edx, [esp + 0x290]
push 0x100
push edx
call fcn.006243c5
add esp, 0xc
test eax, eax
je 0x4358e9
mov eax, 8
xor ecx, ecx
nop
mov edx, dword [esp + ecx + 0x28c]
cmp edx, dword [ecx + str.version]
jne 0x4358e9
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x4357b0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x298]
push 0x67942c
push ecx
call fcn.0062257e
add esp, 0xc
cmp eax, 1
jne 0x4358e9
cmp dword [esp + 0x20], eax
jne 0x4358e9
push esi
lea edx, [esp + 0x290]
push 0x100
push edx
call fcn.006243c5
add esp, 0xc
test eax, eax
je 0x4358e9
push esi
lea eax, [esp + 0x290]
push 0x100
push eax
call fcn.006243c5
add esp, 0xc
test eax, eax
je 0x4358e9
cmp dword [esp + 0x28c], 0x656d616e
jne 0x4358e9
cmp byte [esp + 0x290], 0x3d
jne 0x4358e9
lea ecx, [esp + 0x291]
push 0xd
push ecx
call fcn.00622170
add esp, 8
cmp eax, ebx
je 0x43586e
mov byte [eax], bl
lea edx, [esp + 0x291]
push 0xa
push edx
call fcn.00622170
add esp, 8
cmp eax, ebx
je 0x435886
mov byte [eax], bl
lea ecx, [esp + 0x14]
call fcn.00415510
mov byte [esp + 0x3a0], 2
lea eax, [esp + 0x291]
push eax
lea ecx, [esp + 0x1c]
push 0x678ea8
push ecx
call fcn.00402f60
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp eax, ebx
jne 0x4358bd
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
call fcn.00411780
mov eax, dword [edi + 0x1c]
lea ecx, [edi + 0x14]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00435400
mov byte [esp + 0x3a0], 1
lea ecx, [esp + 0x14]
call fcn.00415570
push esi
call fcn.00623537
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 0x43591b
mov byte [esp + 0x3a0], bl
lea ecx, [esp + 0x24]
call fcn.00401210
jmp 0x435730
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.00620b8d
mov esp, ebp
pop ebp
ret