Function at 0x324e850
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x102c
call fcn.0338cac0
mov eax, dword [0x3415a34]
xor eax, esp
mov dword [esp + 0x1028], eax
push ebx
mov ebx, dword [esp + 0x1038]
lea eax, [esp + 0x2c]
push ebp
mov ebp, dword [esp + 0x1040]
push esi
push edi
mov edi, dword [esp + 0x1040]
push 0x1000
push 0
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x24], 0
call fcn.0338e220
add esp, 0xc
mov esi, 0x1000
test edi, edi
je 0x324ec14
test ebx, ebx
je 0x324ec14
test ebp, ebp
je 0x324ec14
mov dword [edi], 0
lea eax, [esp + 0x18]
mov dword [ebx], 0
push eax
mov dword [ebp], 0
call fcn.0324ec40
mov edi, eax
add esp, 4
test edi, edi
jne 0x324ebaa
push eax
push 0x80
push 3
push eax
push eax
push 0x80000000
push dword [esp + 0x30]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x324e930
push 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.03257780
add esp, 8
mov edi, eax
jmp 0x324e9c0
lea eax, [esp + 0x28]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x324e9a9
cmp dword [esp + 0x28], edi
jne 0x324e9a9
cmp ebx, esi
ja 0x324e9a9
test ebx, ebx
je 0x324e9a2
test bl, 7
jne 0x324e9a2
push ebx
push dword [esp + 0x1c]
push str.read_proxy_settings_file
push 0xc5
push str..._srcwinwslib_proxy.c
push str.__s:_d___s:__S_size__u__n
push 2
call fcn.0325f280
add esp, 0x1c
lea eax, [esp + 0x2c]
push 0
push eax
push ebx
lea eax, [esp + 0x44]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x324e99b
cmp ebx, dword [esp + 0x2c]
jne 0x324e99b
mov esi, ebx
jmp 0x324e9bc
push 0x271b
jmp 0x324e9ab
mov edi, 0x16
jmp 0x324e9bc
push 0x4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.03257780
mov edi, eax
add esp, 8
test ebp, ebp
je 0x324e9c7
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x324ebb0
push 0x38
push 0x3411020
call fcn.03242fa0
lea eax, [esp + 0x40]
push esi
push eax
push eax
call fcn.03242f10
push esi
lea eax, [esp + 0x50]
mov dword [esp + 0x34], edi
push edi
push eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
call fcn.0338dbf0
add esp, 0x20
test eax, eax
je 0x324ea0e
mov esi, eax
lea eax, [esp + 0x38]
sub esi, eax
test esi, esi
je 0x324ebff
push esi
lea eax, [esp + 0x3c]
mov ebx, esi
push 0xa
push eax
call fcn.0338dbf0
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x324ea3a
mov ebx, ebp
mov byte [ebp], 0
lea eax, [esp + 0x38]
sub ebx, eax
push ebx
lea eax, [esp + 0x3c]
push 0x3a
push eax
call fcn.0338dbf0
add esp, 0xc
test eax, eax
je 0x324ea56
mov byte [eax], 0
inc eax
mov dword [esp + 0x1c], eax
test ebp, ebp
je 0x324eabb
sub esi, ebx
add esi, 0xffffffff
je 0x324eabb
push esi
lea ebp, [esp + 0x3d]
add ebp, ebx
push 0xa
push ebp
mov dword [esp + 0x2c], ebp
call fcn.0338dbf0
add esp, 0xc
test eax, eax
je 0x324ea82
mov esi, eax
mov byte [eax], 0
sub esi, ebp
push esi
push 0x3a
push ebp
call fcn.0338dbf0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x324eabb
mov edx, ebx
mov byte [ebx], 0
sub edx, ebp
lea ecx, [esi - 1]
cmp edx, ecx
lea eax, [ebx + 1]
sbb ecx, ecx
and ecx, eax
mov dword [esp + 0x24], ecx
cmp ebp, ebx
jne 0x324eabb
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x324eb2a
lea ebx, [esp + 0x38]
lea ecx, [ebx + 1]
nop word [eax + eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x324ead0
mov ebp, edx
sub ebx, ecx
lea ecx, [ebp + 1]
nop
mov al, byte [ebp]
inc ebp
test al, al
jne 0x324eae0
sub ebp, ecx
lea esi, [ebx + ebp]
lea eax, [esi + 2]
push eax
call fcn.0339076d
push ebx
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], eax
push ecx
push eax
call fcn.0338dca0
mov eax, dword [esp + 0x40]
push ebp
push dword [esp + 0x30]
mov ebp, eax
mov byte [ebx + eax], 0x3a
lea eax, [ebp + 1]
add eax, ebx
push eax
call fcn.0338dca0
add esp, 0x1c
mov byte [esi + ebp + 1], 0
jmp 0x324eb39
lea eax, [esp + 0x38]
push eax
call fcn.03395863
add esp, 4
mov ebp, eax
mov esi, dword [esp + 0x10]
test ebp, ebp
jne 0x324eb46
lea edi, [ebp + 0xc]
jmp 0x324ebb4
mov eax, dword [esp + 0x20]
mov dword [esi], ebp
test eax, eax
je 0x324eb88
push eax
call fcn.03395863
mov ebx, dword [esp + 0x18]
add esp, 4
test eax, eax
jne 0x324eb66
lea edi, [eax + 0xc]
jmp 0x324ebb8
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x324eb88
push eax
call fcn.03395863
add esp, 4
test eax, eax
jne 0x324eb82
lea edi, [eax + 0xc]
jmp 0x324ebb8
mov ecx, dword [esp + 0x34]
mov dword [ecx], eax
lea eax, [esp + 0x38]
push eax
push str.get_wslib_proxy_settings
push 0x62
push str..._srcwinwslib_proxy.c
push 0x33b5ca4
push 2
call fcn.0325f280
add esp, 0x18
jmp 0x324ebff
mov esi, dword [esp + 0x10]
jmp 0x324ebb8
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
push edi
call fcn.03248910
push eax
push edi
push str.get_wslib_proxy_settings
push 0x66
push str..._srcwinwslib_proxy.c
push str.__s:_d___s:_failed__d__s_n
push 2
call fcn.0325f280
mov eax, dword [esi]
add esp, 0x20
test eax, eax
je 0x324ebf0
push eax
call fcn.03390752
add esp, 4
mov dword [esi], 0
mov eax, dword [ebx]
test eax, eax
je 0x324ebff
push eax
call fcn.03390752
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x324ec10
push eax
call fcn.03390752
add esp, 4
mov eax, edi
jmp 0x324ec19
mov eax, 0x16
mov ecx, dword [esp + 0x1038]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0338ca36
add esp, 0x102c
ret