Function at 0x10051370
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1007ea67
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
mov eax, dword [0x10098a04]
push ebx
push ebp
mov ebx, ecx
push edi
mov ecx, 0x10098a04
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov edx, dword [0x10098a04]
mov ecx, 0x10098a04
mov dword [esp + 0x168], 0
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
mov byte [esp + 0x168], 1
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov ebp, dword [edi - 4]
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, ebp
sub eax, 0x104
or eax, ecx
mov byte [esp + 0x168], 2
jge 0x10051410
push 0x104
lea ecx, [esp + 0x18]
call fcn.100029f0
mov edi, dword [esp + 0x14]
mov ecx, dword [0x10098990]
push 0x104
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test edi, edi
jne 0x1005142b
xor eax, eax
jmp 0x1005143f
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10051430
sub eax, edx
js 0x1005164d
cmp eax, dword [edi - 8]
jg 0x1005164d
push 0x5c
mov dword [edi - 0xc], eax
push edi
mov byte [eax + edi], 0
call fcn.10069f52
add esp, 8
test eax, eax
jne 0x10051463
or eax, 0xffffffff
jmp 0x10051465
sub eax, edi
push eax
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
call fcn.10008ae0
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x1c]
push 0x1008200c
push ecx
mov byte [esp + 0x174], 3
call fcn.10004e20
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x168], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100514b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x10098a04]
push esi
mov ecx, 0x10098a04
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [ebx + 0x48]
mov ebp, dword [esp + 0x1c]
push str..ini
push ecx
push ebp
lea edx, [esp + 0x20]
push 0x100851a8
push edx
mov byte [esp + 0x180], 4
call fcn.10004e20
mov ecx, dword [esp + 0x28]
add esp, 0x14
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10051599
mov eax, dword [ebx + 0x48]
lea edx, [esp + 0x50]
push edx
push eax
push ebp
lea ecx, [esp + 0x1c]
push 0x100851a8
push ecx
call fcn.10004e20
mov edx, dword [esp + 0x18c]
mov eax, dword [esp + 0x24]
add esp, 0x14
push edx
push 1
push eax
mov ecx, 0x10098870
call fcn.10045380
lea ecx, [esp + 0x24]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x10051599
mov eax, dword [ebx + 0x48]
lea edx, [esp + 0x50]
push edx
push eax
push ebp
lea ecx, [esp + 0x1c]
push 0x100851a8
push ecx
call fcn.10004e20
mov edx, dword [esp + 0x18c]
mov eax, dword [esp + 0x24]
add esp, 0x14
push edx
push 1
push eax
mov ecx, 0x10098870
call fcn.10045380
lea ecx, [esp + 0x24]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10051554
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x16c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop esi
jg 0x100515c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x168], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100515e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebp, 0xfffffff0
mov byte [esp + 0x168], 0
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10051609
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
add edi, 0xfffffff0
mov dword [esp + 0x168], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1005162e
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov ecx, dword [esp + 0x160]
pop edi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x160
ret 8
push 0x80070057
call fcn.10001330
int3