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

Disassembly:
push 0xffffffffffffffff
push 0x4629f0
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x47f344]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47f344]
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.00406e20
mov dword [esp + 0x268], esi
push 3
push 0x46a22c
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call fcn.00406e20
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0xcc]
push ecx
lea edi, [esp + 0xec]
mov byte [esp + 0x270], 2
call fcn.0040b140
add esp, 8
mov ebp, 0x10
mov byte [esp + 0x268], 4
cmp dword [esp + 0x70], ebp
jb 0x403f29
mov edx, dword [esp + 0x5c]
push edx
call fcn.0043e445
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.00442eb0
mov eax, dword [esp + 0xf4]
add esp, 0xc
cmp dword [esp + 0xfc], ebp
jae 0x403f6d
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 0x4042bb
mov edi, 0x46a230
lea esi, [esp + 0x148]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4041ff
mov edi, 0x46a234
lea esi, [esp + 0x148]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4041ff
test byte [esp + 0x11c], 0x10
je 0x4041ff
lea eax, [esp + 0x148]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x403fd7
sub eax, edx
cmp eax, 0x20
je 0x404005
lea eax, [esp + 0x148]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x403ff1
sub eax, edx
cmp eax, 0xa
jne 0x4041ff
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.00406e20
lea ecx, [esp + 0xc8]
push ecx
lea edi, [esp + 0x14c]
lea esi, [esp + 0x78]
mov byte [esp + 0x26c], 5
call fcn.0040ae50
lea edx, [esp + 0x40]
push edx
push eax
lea edi, [esp + 0x10c]
mov byte [esp + 0x274], 6
call fcn.0040b140
add esp, 0xc
cmp dword [esp + 0x8c], ebp
jb 0x404078
mov eax, dword [esp + 0x78]
push eax
call fcn.0043e445
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 0x4040aa
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0043e445
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.00406e20
lea edx, [esp + 0xc8]
push edx
lea edi, [esp + 0x14c]
lea esi, [esp + 0x94]
mov byte [esp + 0x26c], 0xa
call fcn.0040ae50
lea ecx, [esp + 0x24]
push ecx
push eax
lea edi, [esp + 0xb8]
mov byte [esp + 0x274], 0xb
call fcn.0040b140
add esp, 0xc
cmp dword [esp + 0xa8], ebp
jb 0x40412b
mov edx, dword [esp + 0x94]
push edx
call fcn.0043e445
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 0x404160
mov eax, dword [esp + 0x24]
push eax
call fcn.0043e445
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 0x404183
lea eax, [esp + 0x104]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call esi
cmp eax, 0xffffffff
je 0x4041b0
cmp dword [esp + 0xc4], ebp
mov eax, dword [esp + 0xb0]
jae 0x4041a8
lea eax, [esp + 0xb0]
push eax
call esi
cmp eax, 0xffffffff
jne 0x40421f
cmp dword [esp + 0xc4], ebp
jb 0x4041c9
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.0043e445
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 0x4041ff
mov edx, dword [esp + 0x104]
push edx
call fcn.0043e445
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 0x403f89
jmp 0x4042b0
lea edx, [esp + 0xc8]
push edx
lea edi, [esp + 0x14c]
lea esi, [esp + 0x78]
call fcn.0040ae50
add esp, 4
push 0xffffffffffffffff
push ebx
mov byte [esp + 0x270], 0xf
mov ecx, dword [esp + 0x1c]
push eax
call fcn.00407c00
cmp dword [esp + 0x8c], ebp
jb 0x404265
mov eax, dword [esp + 0x78]
push eax
call fcn.0043e445
add esp, 4
cmp dword [esp + 0xc4], ebp
jb 0x40427e
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.0043e445
add esp, 4
cmp dword [esp + 0x118], ebp
mov dword [esp + 0xc4], 0xf
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
jb 0x4042b0
mov edx, dword [esp + 0x104]
push edx
call fcn.0043e445
add esp, 4
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0xfc], ebp
jb 0x4042d4
mov ecx, dword [esp + 0xe8]
push ecx
call fcn.0043e445
add esp, 4
cmp dword [esp + 0xe0], ebp
mov dword [esp + 0xfc], 0xf
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
jb 0x404306
mov edx, dword [esp + 0xcc]
push edx
call fcn.0043e445
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.0043e436
add esp, 0x258
ret