Function at 0x41863b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x27c
mov eax, dword [0x479b74]
xor eax, esp
mov dword [esp + 0x278], eax
mov ecx, dword [ebp + 0x10]
and dword [esp + 0x10], 0
or dword [esp + 8], 0xffffffff
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [esp + 0x28], ecx
and dword [esp + 0x14], esi
mov ecx, dword [ebp + 0x14]
push edi
xor edi, edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
test ebx, ebx
jne 0x4186a5
mov ecx, 0x80070057
mov ebx, ecx
call fcn.00427566
jmp 0x418831
test eax, eax
je 0x418694
mov eax, dword [0x479b84]
test eax, eax
je 0x4186b7
cmp eax, 0xffffffff
jne 0x4186b9
xor eax, eax
push 0x4073e8
push dword [0x47c110]
push eax
call fcn.0041704b
add esp, 0xc
lea eax, [esp + 0x1c]
mov edx, 0x407420
mov ecx, ebx
push eax
push 0
call fcn.004268f1
mov ebx, eax
test ebx, ebx
jns 0x4186f2
mov ecx, ebx
call fcn.00427566
jmp 0x41882d
push 0x250
lea eax, [esp + 0x34]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push eax
lea ecx, [esp + 0x18]
call fcn.00416a04
mov eax, dword [esp + 0x14]
test eax, eax
je 0x418807
cmp eax, 0xffffffff
je 0x418807
test edi, edi
je 0x418744
mov ecx, edi
call fcn.00427347
and dword [esp + 0x10], 0
lea edx, [esp + 0x10]
lea ecx, [esp + 0x5c]
call fcn.0042743a
mov ebx, eax
test ebx, ebx
js 0x4188c4
test esi, esi
je 0x41876b
mov ecx, esi
call fcn.00427347
and dword [esp + 0xc], 0
mov edi, dword [esp + 0x10]
lea eax, [esp + 0xc]
mov ecx, dword [esp + 0x20]
mov edx, edi
push eax
push 0
call fcn.004268f1
mov ebx, eax
test ebx, ebx
js 0x4188b4
mov esi, dword [esp + 0xc]
lea edx, [esp + 0x18]
mov ecx, esi
call fcn.00426bc5
mov ebx, eax
test ebx, ebx
js 0x4186e6
cmp dword [esp + 0x18], 0
jne 0x4187e1
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x418734
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x418807
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0042754e
mov ebx, eax
jmp 0x4186e6
mov eax, dword [0x479b84]
test eax, eax
je 0x4187ef
cmp eax, 0xffffffff
jne 0x4187f1
xor eax, eax
push esi
push edi
push 0x40742c
push dword [0x47c110]
push eax
call fcn.0041704b
add esp, 0x14
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov dword [ecx], eax
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x41881f
mov eax, edi
xor edi, edi
mov dword [ecx], eax
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x41882d
mov eax, esi
xor esi, esi
mov dword [ecx], eax
test ebx, ebx
jns 0x41885b
mov eax, dword [0x479b84]
test eax, eax
je 0x41883f
cmp eax, 0xffffffff
jne 0x418841
xor eax, eax
push ebx
push 0x407460
push 0x406d68
push dword [0x47c110]
push eax
call fcn.0041704b
add esp, 0x14
mov ecx, ebx
call fcn.0042757e
mov eax, dword [esp + 0x14]
test eax, eax
je 0x418876
cmp eax, 0xffffffff
je 0x418876
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
je 0x418881
mov ecx, esi
call fcn.00427347
test edi, edi
je 0x41888c
mov ecx, edi
call fcn.00427347
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41889b
mov ecx, eax
call fcn.00427347
mov ecx, dword [esp + 0x284]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004729c0
mov esp, ebp
pop ebp
ret 0x10
mov ecx, ebx
call fcn.00427566
mov esi, dword [esp + 0xc]
jmp 0x41882d
mov ecx, ebx
call fcn.00427566
mov edi, dword [esp + 0x10]
jmp 0x41882d