Function at 0x5075e0
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b5b6
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x224], ecx
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0049e130
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x507657
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x50766c
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x507670
mov ecx, edx
call esi
add eax, 0x10
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x234]
push str._sdriversetchosts
push eax
call fcn.004023f0
xor edi, edi
add esp, 0xc
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
push edi
push 0x80
push 3
push edi
push 1
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x234]
push connect
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x5076f9
call fcn.004054a0
test eax, eax
je 0x507707
mov byte [ebp - 4], 0
jmp 0x5077cc
mov edi, eax
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x250], edi
lea eax, [ebp - 0x244]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x248], edi
cmp edi, 0xffffffff
jne 0x507735
call fcn.004054a0
test eax, eax
js 0x5077b7
mov edi, dword [ebp - 0x248]
mov ecx, dword [ebp - 0x244]
test ecx, ecx
jne 0x5077b7
cmp edi, 0x100000
ja 0x5077b7
mov eax, edi
or eax, ecx
je 0x5077b7
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x230]
call fcn.00405210
push 0
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], 0
push eax
mov eax, dword [ebp - 0x220]
push edi
push dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x50784b
call fcn.004054a0
test eax, eax
je 0x507857
mov ecx, dword [ebp - 0x230]
test ecx, ecx
je 0x5077b7
mov eax, dword [ebp - 0x228]
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x230]
call fcn.00405350
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x5077cc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x59fb48]
test eax, eax
je 0x5077ea
mov eax, dword [ebp - 0x224]
mov dword [eax + 0x404], 1
mov eax, dword [0x59fb48]
push eax
mov eax, dword [ebp - 0x224]
push dword [eax + 0x404]
push 0x5652d8
call fcn.004e78a0
push eax
call fcn.004e76a0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x507b08
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x507b06
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x507b08
cmp dword [ebp - 0x238], edi
jne 0x507798
mov ecx, dword [ebp - 0x230]
mov eax, ecx
mov dword [ebp - 0x240], eax
lea edx, [ecx + edi]
mov dword [ebp - 0x244], edx
cmp ecx, edx
jae 0x507a7d
nop word [eax + eax]
push str.itiltest.tr.com
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov dword [ebp - 0x23c], eax
mov edi, eax
test eax, eax
je 0x507a7d
mov eax, dword [ebp - 0x224]
mov dword [eax + 0x404], 1
mov eax, dword fs:[0x2c]
mov ecx, dword [0x59fee8]
mov eax, dword [eax]
cmp ecx, dword [eax + 4]
jle 0x507956
push 0x59fee8
call fcn.0049af28
add esp, 4
cmp dword [0x59fee8], 0xffffffff
jne 0x507956
mov byte [ebp - 4], 3
xorps xmm0, xmm0
push 0
push 0x59fef0
mov dword [0x59feec], 0x57d120
movups xmmword [0x59fef0], xmm0
movq qword [0x59ff00], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x507927
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x507921
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x507ab0
push 0x53eaa0
mov dword [0x59ff08], 0
mov dword [0x59ff0c], 0
call fcn.0049b282
push 0x59fee8
mov byte [ebp - 4], 2
call fcn.0049aee9
add esp, 8
push 0x565390
push 0x59feec
call fcn.004e76a0
mov ecx, dword [ebp - 0x240]
add esp, 8
cmp dword [ebp - 0x23c], ecx
jbe 0x507a64
nop word [eax + eax]
mov al, byte [edi]
cmp al, 0xa
je 0x507a64
cmp al, 0x23
je 0x507998
dec edi
cmp edi, ecx
ja 0x507980
jmp 0x507a64
mov edx, dword fs:[0x2c]
mov eax, dword [ebp - 0x224]
mov ecx, dword [edx]
mov dword [eax + 0x404], 0
mov eax, dword [0x59fee8]
cmp eax, dword [ecx + 4]
jle 0x507a52
push 0x59fee8
call fcn.0049af28
add esp, 4
cmp dword [0x59fee8], 0xffffffff
jne 0x507a52
mov byte [ebp - 4], 4
xorps xmm0, xmm0
push 0
push 0x59fef0
mov dword [0x59feec], 0x57d120
movups xmmword [0x59fef0], xmm0
movq qword [0x59ff00], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x507a23
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x507a1d
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x507ab0
push 0x53eaa0
mov dword [0x59ff08], 0
mov dword [0x59ff0c], 0
call fcn.0049b282
push 0x59fee8
mov byte [ebp - 4], 2
call fcn.0049aee9
add esp, 8
push 0x5653e0
push 0x59feec
call fcn.004e76a0
add esp, 8
mov eax, dword [ebp - 0x23c]
inc eax
mov dword [ebp - 0x240], eax
cmp eax, dword [ebp - 0x244]
jb 0x507880
mov edi, dword [ebp - 0x220]
test edi, edi
je 0x507a90
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x230]
test ecx, ecx
je 0x507af4
mov eax, dword [ebp - 0x228]
sub eax, ecx
cmp eax, 0xffffffff
jbe 0x507ab6
call fcn.004a4e3e
push eax
call fcn.00401b40
cmp eax, 0x1000
jb 0x507aeb
test cl, 0x1f
je 0x507ac7
call fcn.004a4e3e
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x507ad3
call fcn.004a4e3e
sub ecx, eax
cmp ecx, 4
jae 0x507adf
call fcn.004a4e3e
cmp ecx, 0x23
jbe 0x507ae9
call fcn.004a4e3e
mov ecx, eax
push ecx
call fcn.0049aa1d
add esp, 4
mov byte [ebp - 4], 0
test edi, edi
je 0x5077cc
push edi
jmp 0x5077c6
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret