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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67f4dd
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x6eb874]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1d0], ecx
mov esi, dword [ebp + 0xc]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
mov dword [ebp - 0x1c8], esi
mov dword [ebp - 0x1c0], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x611718
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jle 0x611272
lea esi, [edi + 8]
push esi
call fcn.00613615
push esi
push 0
push eax
mov dword [ebp - 0x1c0], eax
call fcn.0063a460
add esp, 0x10
lea eax, [ebp - 0x1e0]
push 0
push eax
push edi
push dword [ebp - 0x1c0]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [ebp - 0x1c8]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c0], 0
je 0x611718
test edi, edi
je 0x611718
push esi
lea ecx, [ebp - 0x1d4]
call fcn.004131e0
lea ecx, [ebp - 0x1c9]
mov dword [ebp - 4], 0
call fcn.0060f9c0
mov ecx, eax
test ecx, ecx
jne 0x6112be
mov dword [ebp - 0x1c4], 0xffffffff
jmp 0x611300
mov eax, dword [ebp - 0x1d4]
cmp dword [eax - 0xc], 0
jge 0x6112d6
mov dword [ebp - 0x1c4], 0xffffffff
jmp 0x611300
push ecx
push eax
call fcn.0063afaa
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x6112f2
mov dword [ebp - 0x1c4], 0xffffffff
jmp 0x611300
sub ebx, dword [ebp - 0x1d4]
sar ebx, 1
mov dword [ebp - 0x1c4], ebx
mov edi, dword [ebp - 0x1c0]
push edi
call fcn.005e24c0
mov esi, eax
add esp, 4
mov dword [ebp - 0x1d8], esi
test esi, esi
je 0x6116ea
mov dword [ebp - 0x1e4], esi
push esi
call fcn.005e23e0
mov ecx, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x1dc], ecx
mov dword [ebp - 0x1c8], eax
test ecx, ecx
jle 0x6116e1
mov ebx, dword [ebp - 0x1d0]
nop dword [eax]
push eax
push esi
call fcn.005e23c0
mov edi, eax
add esp, 8
test edi, edi
je 0x6116c2
lea ecx, [ebp - 0xb8]
call fcn.00421b40
push 0x68bdd8
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00421970
push 0x6b81f8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00421970
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.005e3690
add esp, 0x10
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 5
jb 0x6113b6
mov eax, dword [eax]
push 0
push eax
lea ecx, [ebp - 0x1bc]
call fcn.004214f0
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 6
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6113d0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xb8]
call fcn.00424e80
mov eax, dword [ebp - 0x1bc]
lea ecx, [ebp - 0x1b8]
cmp eax, ecx
je 0x611405
push eax
call fcn.0063e41a
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.00421c30
lea ecx, [ebp - 0x28]
call fcn.00421c30
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00421c30
push 0x68bdd8
lea ecx, [ebp - 0x28]
call fcn.00421970
push 0x6b81fc
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.00421970
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.005e3690
add esp, 0x10
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 9
jb 0x611464
mov eax, dword [eax]
push 0
push eax
lea ecx, [ebp - 0x1bc]
call fcn.004214f0
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 0xa
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x611480
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xa0]
call fcn.00424e80
mov eax, dword [ebp - 0x1bc]
lea ecx, [ebp - 0x1b8]
cmp eax, ecx
je 0x6114b5
push eax
call fcn.0063e41a
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.00421c30
lea ecx, [ebp - 0x40]
call fcn.00421c30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00421c30
push 0x68bdd8
lea ecx, [ebp - 0x28]
call fcn.00421970
push str.BUrl
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xb
call fcn.00421970
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.005e3690
add esp, 0x10
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xd
jb 0x611514
mov eax, dword [eax]
push 0
push eax
lea ecx, [ebp - 0x1bc]
call fcn.004214f0
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 0xe
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x611530
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x88]
call fcn.00424e80
mov eax, dword [ebp - 0x1bc]
lea ecx, [ebp - 0x1b8]
cmp eax, ecx
je 0x611565
push eax
call fcn.0063e41a
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.00421c30
lea ecx, [ebp - 0x40]
call fcn.00421c30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00421c30
push 0x68bdd8
lea ecx, [ebp - 0x28]
call fcn.00421970
push str.SUrl
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xf
call fcn.00421970
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.005e3690
add esp, 0x10
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x11
jb 0x6115c4
mov eax, dword [eax]
push 0
push eax
lea ecx, [ebp - 0x1bc]
call fcn.004214f0
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 0x12
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6115e0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x70]
call fcn.00424e80
mov eax, dword [ebp - 0x1bc]
lea ecx, [ebp - 0x1b8]
cmp eax, ecx
je 0x611612
push eax
call fcn.0063e41a
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.00421c30
lea ecx, [ebp - 0x40]
call fcn.00421c30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00421c30
mov esi, dword [ebp + 8]
cmp esi, 1
jne 0x611663
cmp dword [ebp - 0x1c4], 0xffffffff
je 0x61165e
mov ecx, dword [ebp - 0x1d0]
push esi
lea eax, [ecx + 0x28]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.0060fcb0
mov ebx, dword [ebp - 0x1d0]
jmp 0x6116b1
lea ecx, [ebx + 0x28]
jmp 0x6116a5
cmp esi, 3
jne 0x61169d
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x88]
push eax
call esi
test eax, eax
je 0x6116b1
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
call esi
test eax, eax
je 0x6116b1
lea ecx, [ebx + 0x40]
jmp 0x6116a5
cmp esi, 2
jne 0x6116b1
lea ecx, [ebx + 8]
lea eax, [ebp - 0xb8]
push eax
call fcn.0045ec70
lea ecx, [ebp - 0xb8]
call fcn.00421cc0
mov esi, dword [ebp - 0x1d8]
mov eax, dword [ebp - 0x1c8]
inc eax
mov dword [ebp - 0x1c8], eax
cmp eax, dword [ebp - 0x1dc]
jl 0x611350
mov edi, dword [ebp - 0x1c0]
push esi
call fcn.005e2350
add esp, 4
push edi
call fcn.0061361e
mov edx, dword [ebp - 0x1d4]
add esp, 4
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x611718
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006135ac
mov esp, ebp
pop ebp
ret 8