Function at 0x419d30
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x54ab4c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x258
mov eax, dword [0x5b5ecc]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [ebx + 8]
lea edx, [esp + 0xc]
push ecx
push str._stemplate.dat
push edx
mov dword [esp + 0x274], 0
call fcn.0053091a
mov ecx, dword [esp + 0x18]
add esp, 0xc
lea eax, [esp + 0x120]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
jne 0x419dbe
lea ecx, [esp + 0xc]
mov dword [esp + 0x268], eax
call fcn.00537b04
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
add esp, 0x264
ret
push ebp
push edi
mov edx, dword [0x5b5ecc]
mov dword [esp + 0x10], edx
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x154]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x598a7c
push edx
mov byte [esp + 0x280], 1
call fcn.0053091a
mov eax, dword [esp + 0x20]
push 0x59a220
push eax
call fcn.0051dc3f
mov ebp, eax
add esp, 0x18
test ebp, ebp
je 0x419f91
push ebp
lea ecx, [esp + 0x2c]
push 0x100
push ecx
call fcn.0051de71
add esp, 0xc
test eax, eax
je 0x419f84
mov ecx, 2
mov edi, str.version
lea esi, [esp + 0x28]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x419f84
lea eax, [esp + 0x24]
lea ecx, [esp + 0x30]
push eax
push 0x597df0
push ecx
call fcn.0051de3d
add esp, 0xc
cmp eax, 1
jne 0x419f84
cmp dword [esp + 0x24], 1
jne 0x419f84
push ebp
lea edx, [esp + 0x2c]
push 0x100
push edx
call fcn.0051de71
add esp, 0xc
test eax, eax
je 0x419f84
push ebp
lea eax, [esp + 0x2c]
push 0x100
push eax
call fcn.0051de71
add esp, 0xc
test eax, eax
je 0x419f84
mov ecx, 5
mov edi, str.name
lea esi, [esp + 0x28]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x419f84
lea eax, [esp + 0x2d]
test eax, eax
je 0x419f84
lea ecx, [esp + 0x2d]
push 0xd
push ecx
call fcn.0051c7f0
add esp, 8
test eax, eax
je 0x419ed7
mov byte [eax], 0
lea edx, [esp + 0x2d]
push 0xa
push edx
call fcn.0051c7f0
add esp, 8
test eax, eax
je 0x419eed
mov byte [eax], 0
mov eax, dword [0x5b5ecc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x2d]
lea ecx, [esp + 0x1c]
push eax
push 0x597ddc
push ecx
mov byte [esp + 0x27c], 2
call fcn.0053091a
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x18]
push edx
push 0x597ddc
push eax
call fcn.0053091a
mov edi, dword [ebx + 0x14]
lea esi, [ebx + 0xc]
add esp, 0xc
lea ecx, [edi + 1]
push 0xffffffffffffffff
push ecx
mov ecx, esi
call fcn.0041a280
mov edx, dword [esi + 4]
lea eax, [esp + 0x18]
push eax
lea esi, [edx + edi*8]
mov ecx, esi
call fcn.00537c3d
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esi + 4]
call fcn.00537c3d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x270], 3
call fcn.00537b04
lea ecx, [esp + 0x18]
mov byte [esp + 0x270], 1
call fcn.00537b04
push ebp
call fcn.0051da58
mov esi, dword [esp + 0x24]
add esp, 4
lea edx, [esp + 0x128]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
mov byte [esp + 0x270], 0
lea ecx, [esp + 0x10]
je 0x419fba
call fcn.00537b04
jmp 0x419dc0
call fcn.00537b04
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov dword [esp + 0x270], 0xffffffff
call fcn.00537b04
mov ecx, dword [esp + 0x268]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x264
ret