Function at 0x4376c0
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
sub esp, 0xa54
mov eax, dword [0x4d8620]
xor eax, esp
mov dword [esp + 0xa50], eax
push ebx
mov ebx, dword [esp + 0xa64]
push ebp
mov ebp, dword [esp + 0xa60]
push esi
mov esi, dword [esp + 0xa70]
push edi
mov edi, dword [esp + 0xa6c]
call fcn.00442d90
test eax, eax
je 0x437864
test ebx, ebx
je 0x437727
cmp word [ebx], 0
je 0x437727
lea edx, [esp + 0x260]
mov eax, ebx
sub edx, ebx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x437716
jmp 0x43773a
push 0x1000000
lea eax, [esp + 0x264]
push eax
push edi
call fcn.00477960
cmp ebp, 0xffffffff
jne 0x43778a
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x264]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4377b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4378d6
cmp eax, 3
je 0x4378d6
cmp eax, 0x12
je 0x4378d6
mov eax, 1
mov byte [esi + 0x149c], al
jmp 0x437a14
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4377b4
or ebp, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne cl
mov byte [esi + 0x149c], cl
jmp 0x437a14
lea eax, [esp + 0x260]
lea ebx, [esi + 0x400]
mov edx, ebx
mov ecx, eax
sub edx, ecx
jmp 0x4377d0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4377d0
push ebx
lea edi, [esp + 0x40]
call fcn.00455b40
lea esp, [esp]
movzx ecx, word [edi]
mov word [eax], cx
add edi, 2
add eax, 2
test cx, cx
jne 0x4377f0
push 0x1000000
push esi
push ebx
call fcn.00477920
mov edx, dword [esp + 0x2c]
push 1
push 0
push 0
push edx
call fcn.004afc40
mov ecx, dword [esp + 0x30]
xor edi, edi
add eax, ecx
adc edx, edi
mov dword [esi + 0xc04], edx
mov edx, dword [esp + 0x10]
mov dword [esi + 0xc00], eax
mov dword [esi + 0xc08], edx
lea eax, [esp + 0x244]
lea edx, [esi + 0xc80]
mov ecx, eax
sub edx, ecx
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x437850
jmp 0x437999
test edi, edi
je 0x437884
cmp byte [edi], 0
je 0x437884
lea edx, [esp + 0x260]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x437878
jmp 0x437897
push 0x1000000
lea edx, [esp + 0x264]
push edx
push ebx
call fcn.00477920
cmp ebp, 0xffffffff
jne 0x4378e3
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x264]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x43790d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4378d6
cmp eax, 3
je 0x4378d6
mov eax, 1
mov byte [esi + 0x149c], al
jmp 0x437a14
xor eax, eax
mov byte [esi + 0x149c], al
jmp 0x437a14
lea edx, [esp + 0x10]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x43790d
or ebp, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [esi + 0x149c], al
jmp 0x437a14
lea eax, [esp + 0x260]
mov edx, esi
mov ecx, eax
sub edx, ecx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x437920
push esi
lea edi, [esp + 0x40]
call fcn.00455ac0
mov cl, byte [edi]
mov byte [eax], cl
inc edi
inc eax
test cl, cl
jne 0x437934
push 0x1000000
lea edx, [esi + 0x400]
push edx
push esi
call fcn.00477960
mov eax, dword [esp + 0x2c]
push 1
push 0
push 0
push eax
call fcn.004afc40
mov ecx, dword [esp + 0x30]
xor edi, edi
add eax, ecx
adc edx, edi
mov dword [esi + 0xc00], eax
push 0x1000000
lea eax, [esi + 0xc80]
mov dword [esi + 0xc04], edx
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x148]
push ecx
mov dword [esi + 0xc08], edx
call fcn.00477960
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esi + 0x1480], edx
mov edx, dword [esp + 0x20]
mov dword [esi + 0x1488], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x148c], edx
mov dword [esi + 0x1484], eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x24]
mov dword [esi + 0x1494], ecx
lea edi, [esi + 0xc14]
push edx
mov ecx, edi
mov dword [esi + 0x1490], eax
call fcn.00472380
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 0xc38]
call fcn.00472380
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esi + 0xc5c]
call fcn.00472380
mov ecx, edi
call fcn.004721c0
mov dword [esi + 0xc0c], eax
mov ecx, dword [esp + 0xa60]
pop edi
mov dword [esi + 0x1498], 0
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.004aedbb
add esp, 0xa54
ret 0x10