Function at 0x43572f
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1020]
mov eax, 0x1020
call fcn.00461c80
push 0xffffffffffffffff
push 0x4bf7b5
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4f2720]
xor eax, ebp
mov dword [ebp + 0x101c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp + 0x1028]
mov edi, dword [ebp + 0x1030]
cmp dword [edi + 0x18], 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x102c]
mov dword [ebp - 0x10], eax
lea ebx, [edi + 4]
jb 0x435794
mov eax, dword [ebx]
jmp 0x435796
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4357cb
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x101c]
xor ecx, ebp
call fcn.0045fa14
add ebp, 0x1020
leave
ret 0x10
mov eax, esi
and eax, 0x10
mov dword [ebp - 0x3c], eax
shl eax, 0x15
cmp dword [edi + 0x18], 8
jb 0x4357e0
mov ecx, dword [ebx]
jmp 0x4357e2
mov ecx, ebx
xor ebx, ebx
push ebx
push eax
push 3
push ebx
push 1
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x2c], edi
je 0x4357a4
push edi
push dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x50]
push eax
call fcn.0043562e
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
push 0x24
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.0045fa70
movzx eax, word [ebp - 0x20]
movzx ecx, word [ebp - 0x24]
or dword [ebp - 0x5c], esi
shl eax, 0x10
or eax, ecx
mov ecx, dword [ebp - 0x28]
add esp, 0xc
cmp byte [ebp + 0x1034], bl
mov dword [ebp - 0x64], eax
lea eax, [ebp]
je 0x4358d3
push 0xfde9
push dword [ebp - 0x10]
push eax
call fcn.0043566d
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
jae 0x43588e
lea eax, [ebp + 4]
push 0x800
push ebx
push ebx
push ebx
push ebx
push 8
push 0xfffffffffffffff1
push ebx
push 9
push 8
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x7c]
push ecx
push eax
push dword [ebp - 0x1c]
call fcn.004adad0
add esp, 0x48
test eax, eax
push ebx
lea ecx, [ebp]
push 1
je 0x435922
call fcn.004012b0
lea eax, [ebp - 0x50]
push eax
call fcn.00435554
pop ecx
jmp 0x4357a4
push ebx
push dword [ebp - 0x10]
push eax
call fcn.0043566d
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
jae 0x4358e9
lea eax, [ebp + 4]
push 9
push 8
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x7c]
push ecx
push eax
push dword [ebp - 0x1c]
call fcn.004adb40
add esp, 0x28
test eax, eax
push ebx
lea ecx, [ebp]
push 1
je 0x435922
call fcn.004012b0
lea eax, [ebp - 0x50]
push eax
call fcn.00435554
pop ecx
mov eax, ebx
jmp 0x4357a6
call fcn.004012b0
push dword [ebp - 0x1c]
lea eax, [ebp - 0x38]
push 0x4ad2a0
push eax
call fcn.0043562e
add esp, 0xc
cmp dword [ebp - 0x3c], ebx
je 0x43594f
lea eax, [ebp - 0x38]
push eax
call fcn.0043557e
xor ebx, ebx
pop ecx
inc ebx
jmp 0x435911
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x435973
lea eax, [ebp - 0x38]
push eax
call fcn.0043557e
pop ecx
jmp 0x435911
cmp dword [ebp - 0x14], ebx
jl 0x435940
mov eax, dword [ebp - 0x18]
jg 0x435981
cmp eax, ebx
jbe 0x435940
mov esi, 0x1000
cmp dword [ebp - 0x14], ebx
jl 0x435993
jg 0x435991
cmp eax, esi
jbe 0x435993
mov eax, esi
push ebx
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x2c]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x435967
push dword [ebp - 0x10]
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.004ac2c0
add esp, 0xc
test eax, eax
jl 0x435967
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x10]
sbb dword [ebp - 0x14], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
jg 0x435991
jl 0x435940
cmp eax, ebx
ja 0x435986
jmp 0x435940