Function at 0x4037a0
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x45c950
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x478354]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x478354]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov eax, dword [esp + 0x270]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov edi, 0xf
mov dword [eax + 0x18], edi
mov dword [eax + 0x14], ebx
mov dword [esp + 0x14], eax
mov byte [eax + 4], bl
mov dword [esp + 0x268], ebx
push 0x17
mov esi, 1
push str.c:Program_Files__x86__
lea ecx, [esp + 0xd0]
mov dword [esp + 0x24], esi
mov dword [esp + 0xe8], edi
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
call fcn.00406100
mov dword [esp + 0x268], esi
push 3
push 0x463fc4
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call fcn.00406100
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0xcc]
push ecx
lea edi, [esp + 0xec]
mov byte [esp + 0x270], 2
call fcn.00408140
add esp, 8
mov ebp, 0x10
mov byte [esp + 0x268], 4
cmp dword [esp + 0x70], ebp
jb 0x403899
mov edx, dword [esp + 0x5c]
push edx
call fcn.0043c992
add esp, 4
push 0x13c
lea eax, [esp + 0x124]
push ebx
push eax
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
mov dword [esp + 0x128], ebx
call fcn.0043eb30
mov eax, dword [esp + 0xf4]
add esp, 0xc
cmp dword [esp + 0xfc], ebp
jae 0x4038dd
lea eax, [esp + 0xe8]
lea ecx, [esp + 0x11c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x403c2b
mov edi, 0x463fc8
lea esi, [esp + 0x148]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x403b6f
mov edi, 0x463fcc
lea esi, [esp + 0x148]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x403b6f
test byte [esp + 0x11c], 0x10
je 0x403b6f
lea eax, [esp + 0x148]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x403947
sub eax, edx
cmp eax, 0x20
je 0x403975
lea eax, [esp + 0x148]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x403961
sub eax, edx
cmp eax, 0xa
jne 0x403b6f
push 0xb
push str.loader.exe
lea ecx, [esp + 0x44]
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.00406100
lea ecx, [esp + 0xc8]
push ecx
lea edi, [esp + 0x14c]
lea esi, [esp + 0x78]
mov byte [esp + 0x26c], 5
call fcn.00408090
lea edx, [esp + 0x40]
push edx
push eax
lea edi, [esp + 0x10c]
mov byte [esp + 0x274], 6
call fcn.00408140
add esp, 0xc
cmp dword [esp + 0x8c], ebp
jb 0x4039e8
mov eax, dword [esp + 0x78]
push eax
call fcn.0043c992
add esp, 4
mov esi, 0xf
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
mov byte [esp + 0x268], 9
cmp dword [esp + 0x54], ebp
jb 0x403a1a
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0043c992
add esp, 4
push 0x15
push str._setdownloadfiles.ini
lea ecx, [esp + 0x28]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.00406100
lea edx, [esp + 0xc8]
push edx
lea edi, [esp + 0x14c]
lea esi, [esp + 0x94]
mov byte [esp + 0x26c], 0xa
call fcn.00408090
lea ecx, [esp + 0x24]
push ecx
push eax
lea edi, [esp + 0xb8]
mov byte [esp + 0x274], 0xb
call fcn.00408140
add esp, 0xc
cmp dword [esp + 0xa8], ebp
jb 0x403a9b
mov edx, dword [esp + 0x94]
push edx
call fcn.0043c992
add esp, 4
mov edi, 0xf
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
mov byte [esp + 0x268], 0xe
cmp dword [esp + 0x38], ebp
jb 0x403ad0
mov eax, dword [esp + 0x24]
push eax
call fcn.0043c992
add esp, 4
cmp dword [esp + 0x118], ebp
mov eax, dword [esp + 0x104]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
jae 0x403af3
lea eax, [esp + 0x104]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call esi
cmp eax, 0xffffffff
je 0x403b20
cmp dword [esp + 0xc4], ebp
mov eax, dword [esp + 0xb0]
jae 0x403b18
lea eax, [esp + 0xb0]
push eax
call esi
cmp eax, 0xffffffff
jne 0x403b8f
cmp dword [esp + 0xc4], ebp
jb 0x403b39
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.0043c992
add esp, 4
mov byte [esp + 0x268], 4
cmp dword [esp + 0x118], ebp
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
jb 0x403b6f
mov edx, dword [esp + 0x104]
push edx
call fcn.0043c992
add esp, 4
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x11c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, ebx
jne 0x4038f9
jmp 0x403c20
lea edx, [esp + 0xc8]
push edx
lea edi, [esp + 0x14c]
lea esi, [esp + 0x78]
call fcn.00408090
add esp, 4
push 0xffffffffffffffff
push ebx
mov byte [esp + 0x270], 0xf
mov ecx, dword [esp + 0x1c]
push eax
call fcn.00406a20
cmp dword [esp + 0x8c], ebp
jb 0x403bd5
mov eax, dword [esp + 0x78]
push eax
call fcn.0043c992
add esp, 4
cmp dword [esp + 0xc4], ebp
jb 0x403bee
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.0043c992
add esp, 4
cmp dword [esp + 0x118], ebp
mov dword [esp + 0xc4], 0xf
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
jb 0x403c20
mov edx, dword [esp + 0x104]
push edx
call fcn.0043c992
add esp, 4
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0xfc], ebp
jb 0x403c44
mov ecx, dword [esp + 0xe8]
push ecx
call fcn.0043c992
add esp, 4
cmp dword [esp + 0xe0], ebp
mov dword [esp + 0xfc], 0xf
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
jb 0x403c76
mov edx, dword [esp + 0xcc]
push edx
call fcn.0043c992
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.0043c23a
add esp, 0x258
ret