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

Disassembly:
push 0xffffffffffffffff
push 0x5d85e9
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x680f10]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x680f10]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov eax, dword [esp + 0xc0]
mov esi, dword [esp + 0xc4]
mov ebp, ecx
xor ebx, ebx
push 0x5fb2ff
lea ecx, [esp + 0x20]
mov dword [esp + 0x60], ebp
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], esi
mov dword [esp + 0x20], ebx
call fcn.00489f70
mov ecx, ebp
mov dword [esp + 0xb8], ebx
xor edi, edi
mov dword [esp + 0x18], ebx
call fcn.004e08d0
test al, al
je 0x4e1ca5
push 0x5fb311
lea ecx, [esp + 0x90]
call fcn.0048cd50
push 0x5fbc0c
lea ecx, [esp + 0x64]
mov byte [esp + 0xbc], 1
call fcn.0048cd50
lea ecx, [esp + 0x60]
push ecx
mov ecx, ebp
mov byte [esp + 0xbc], 2
call fcn.004b7a60
mov ebp, 0x10
cmp dword [esp + 0x7c], ebp
mov edi, 0x5f1558
mov esi, eax
mov byte [esp + 0xb8], 1
mov dword [esp + 0x60], edi
jb 0x4e1693
mov edx, dword [esp + 0x68]
push edx
call fcn.004274fc
add esp, 4
cmp esi, ebx
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
mov dword [esp + 0x60], 0x5f13d0
je 0x4e1703
mov ecx, esi
call fcn.004b5800
push eax
lea ecx, [esp + 0x24]
call fcn.0048c600
mov dword [esp + 0x20], 0x5f1570
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x9c]
mov byte [esp + 0xc4], 3
call fcn.00402bb0
cmp dword [esp + 0x3c], ebp
mov byte [esp + 0xb8], 1
mov dword [esp + 0x20], edi
jb 0x4e1703
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004274fc
add esp, 4
push 0x5fbc18
lea ecx, [esp + 0x64]
call fcn.0048cd50
cmp dword [esp + 0x7c], ebp
mov eax, dword [esp + 0x68]
mov byte [esp + 0xb8], 4
jae 0x4e1727
lea eax, [esp + 0x68]
mov edx, dword [esp + 0x78]
push edx
push eax
mov eax, dword [esp + 0xac]
push eax
push ebx
lea ecx, [esp + 0xa0]
call fcn.0048a450
test eax, eax
sete byte [esp + 0x17]
cmp dword [esp + 0x7c], ebp
mov byte [esp + 0xb8], 1
mov dword [esp + 0x60], edi
jb 0x4e1768
mov ecx, dword [esp + 0x68]
push ecx
call fcn.004274fc
add esp, 4
cmp byte [esp + 0x17], bl
je 0x4e17c0
push 0x5fbc24
lea ecx, [esp + 0x24]
call fcn.0048cd50
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x9c]
mov byte [esp + 0xc4], 5
call fcn.00402bb0
cmp dword [esp + 0x3c], ebp
mov byte [esp + 0xb8], 1
mov dword [esp + 0x20], edi
jb 0x4e1c27
mov eax, dword [esp + 0x28]
push eax
call fcn.004274fc
add esp, 4
jmp 0x4e1c27
push 0x5fbc2c
lea ecx, [esp + 0x64]
call fcn.0048cd50
cmp dword [esp + 0x7c], ebp
mov eax, dword [esp + 0x68]
mov byte [esp + 0xb8], 6
jae 0x4e17e4
lea eax, [esp + 0x68]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0xa4]
push ecx
push eax
push edx
push ebx
lea ecx, [esp + 0xa0]
call fcn.0048a450
test eax, eax
sete byte [esp + 0x17]
cmp dword [esp + 0x7c], ebp
mov byte [esp + 0xb8], 1
mov dword [esp + 0x60], edi
jb 0x4e1825
mov eax, dword [esp + 0x68]
push eax
call fcn.004274fc
add esp, 4
cmp byte [esp + 0x17], bl
lea ecx, [esp + 0x20]
je 0x4e185a
push 0x5fbc40
call fcn.0048cd50
mov byte [esp + 0xb8], 7
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x9c]
call fcn.00402bb0
jmp 0x4e1c16
push 0x5fbc50
call fcn.0048cd50
cmp dword [esp + 0x3c], ebp
mov eax, dword [esp + 0x28]
mov byte [esp + 0xb8], 8
jae 0x4e187a
lea eax, [esp + 0x28]
mov edx, dword [esp + 0x38]
push edx
push eax
mov eax, dword [esp + 0xac]
push eax
push ebx
lea ecx, [esp + 0xa0]
call fcn.0048a450
test eax, eax
lea ecx, [esp + 0x20]
sete byte [esp + 0x17]
mov byte [esp + 0xb8], 1
call fcn.004b36e0
cmp byte [esp + 0x17], bl
lea ecx, [esp + 0x20]
je 0x4e18ce
push 0x5fbc60
call fcn.0048cd50
mov byte [esp + 0xb8], 9
jmp 0x4e1841
push 0x5fbc70
call fcn.0048cd50
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x90]
mov byte [esp + 0xbc], 0xa
call fcn.0048b3f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x17], al
mov byte [esp + 0xb8], 1
call fcn.004b36e0
cmp byte [esp + 0x17], bl
lea ecx, [esp + 0x20]
je 0x4e192c
push 0x5fbc88
call fcn.0048cd50
lea eax, [esp + 0x20]
mov byte [esp + 0xb8], 0xb
push eax
jmp 0x4e1c0a
push 0x5fbc9c
call fcn.0048cd50
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x90]
mov byte [esp + 0xbc], 0xc
call fcn.0048b3f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x17], al
mov byte [esp + 0xb8], 1
call fcn.004b36e0
cmp byte [esp + 0x17], bl
lea ecx, [esp + 0x20]
je 0x4e198a
push 0x5fbca4
call fcn.0048cd50
lea edx, [esp + 0x20]
mov byte [esp + 0xb8], 0xd
push edx
jmp 0x4e1c0a
push 0x5fbcb0
call fcn.0048cd50
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0xbc], 0xe
call fcn.0048b3f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x17], al
mov byte [esp + 0xb8], 1
call fcn.004b36e0
cmp byte [esp + 0x17], bl
lea ecx, [esp + 0x20]
je 0x4e19e3
push 0x5fbcc0
call fcn.0048cd50
mov byte [esp + 0xb8], 0xf
jmp 0x4e1c05
push 0x5fbcd4
call fcn.0048cd50
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x90]
mov byte [esp + 0xbc], 0x10
call fcn.0048b3f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x17], al
mov byte [esp + 0xb8], 1
call fcn.004b36e0
cmp byte [esp + 0x17], bl
lea ecx, [esp + 0x20]
je 0x4e1a41
push 0x5fbce0
call fcn.0048cd50
lea eax, [esp + 0x20]
mov byte [esp + 0xb8], 0x11
push eax
jmp 0x4e1c0a
push 0x5fbcf0
call fcn.0048cd50
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x90]
mov byte [esp + 0xbc], 0x12
call fcn.0048b3f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x17], al
mov byte [esp + 0xb8], 1
call fcn.004b36e0
cmp byte [esp + 0x17], bl
lea ecx, [esp + 0x20]
je 0x4e1a9f
push 0x5fbd04
call fcn.0048cd50
lea edx, [esp + 0x20]
mov byte [esp + 0xb8], 0x13
push edx
jmp 0x4e1c0a
push 0x5fbd1c
call fcn.0048cd50
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0xbc], 0x14
call fcn.0048b3f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x17], al
mov byte [esp + 0xb8], 1
call fcn.004b36e0
cmp byte [esp + 0x17], bl
lea ecx, [esp + 0x20]
je 0x4e1af8
push 0x5fbd2c
call fcn.0048cd50
mov byte [esp + 0xb8], 0x15
jmp 0x4e1c05
push 0x5fbd38
call fcn.0048cd50
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x90]
mov byte [esp + 0xbc], 0x16
call fcn.0048b3f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x17], al
mov byte [esp + 0xb8], 1
call fcn.004b36e0
cmp byte [esp + 0x17], bl
lea ecx, [esp + 0x20]
je 0x4e1b56
push 0x5fbd50
call fcn.0048cd50
lea eax, [esp + 0x20]
mov byte [esp + 0xb8], 0x17
push eax
jmp 0x4e1c0a
push 0x5fbd60
call fcn.0048cd50
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x90]
mov byte [esp + 0xbc], 0x18
call fcn.0048b3f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x17], al
mov byte [esp + 0xb8], 1
call fcn.004b36e0
cmp byte [esp + 0x17], bl
lea ecx, [esp + 0x20]
je 0x4e1bb1
push 0x5fbd74
call fcn.0048cd50
lea edx, [esp + 0x20]
mov byte [esp + 0xb8], 0x19
push edx
jmp 0x4e1c0a
push 0x5fbd80
call fcn.0048cd50
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0xbc], 0x1a
call fcn.0048b3f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x17], al
mov byte [esp + 0xb8], 1
call fcn.004b36e0
cmp byte [esp + 0x17], bl
je 0x4e1c27
push 0x5fbd9c
lea ecx, [esp + 0x24]
call fcn.0048cd50
mov byte [esp + 0xb8], 0x1b
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x90]
call fcn.0048cea0
lea ecx, [esp + 0x20]
mov byte [esp + 0xb8], 1
call fcn.004b36e0
mov edx, dword [esp + 0x5c]
mov ecx, dword [edx + 4]
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x90]
push edx
call eax
cmp dword [esp + 0xa8], ebp
mov edi, eax
mov byte [esp + 0xb8], bl
mov dword [esp + 0x8c], 0x5f1558
jb 0x4e1c6e
mov ecx, dword [esp + 0x94]
push ecx
call fcn.004274fc
add esp, 4
cmp edi, ebx
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0xa8], 0xf
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
mov dword [esp + 0x8c], 0x5f13d0
jne 0x4e1e3e
mov esi, dword [esp + 0x84]
mov eax, dword [ebp + 4]
cmp dword [eax + 0x44], ebx
je 0x4e1e59
fldz
mov dword [esp + 0x30], ebx
fst qword [esp + 0x20]
mov dword [esp + 0x38], ebx
fst qword [esp + 0x28]
mov dword [esp + 0x34], 0x190
fst qword [esp + 0x40]
fst qword [esp + 0x48]
fstp qword [esp + 0x50]
lea edx, [esp + 0x30]
cmp edx, esi
mov byte [esp + 0xb8], 0x1c
je 0x4e1d02
mov ecx, edx
call fcn.00401650
mov eax, dword [esi]
cmp eax, ebx
mov dword [esp + 0x30], eax
je 0x4e1d02
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov al, byte [esp + 0xc8]
neg al
sbb eax, eax
and eax, 0x12c
add eax, 0x190
cmp byte [esp + 0xcc], bl
mov dword [esp + 0x34], eax
je 0x4e1d29
or dword [esp + 0x38], 0x40
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0x44]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x60]
push eax
call edx
mov eax, dword [esp + 0x58]
cmp eax, ebx
mov byte [esp + 0xb8], 0x1d
je 0x4e1d66
mov eax, dword [eax]
cmp eax, ebx
je 0x4e1d66
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, ebx
jne 0x4e1da3
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov esi, dword [esp + 0x80]
mov dword [esi], eax
je 0x4e1d81
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [esp + 0x58]
call fcn.00401650
lea ecx, [esp + 0x20]
call fcn.004a5c70
lea ecx, [esp + 0x1c]
call fcn.00401650
mov eax, esi
jmp 0x4e1eb6
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x4e1daf
mov eax, dword [eax]
jmp 0x4e1db1
xor eax, eax
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4e1e21
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x4e1e1a
push eax
call fcn.00427501
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x4e1e1a
mov eax, dword [esp + 0x18]
push eax
push ebx
push edi
call fcn.0044dac0
mov edx, dword [esp + 0x24]
add esp, 0xc
push ebx
lea ecx, [esp + 0x8c]
push ecx
push edx
push edi
push esi
mov dword [esp + 0x9c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x58]
call fcn.00401650
lea ecx, [esp + 0x20]
mov byte [esp + 0xb8], bl
call fcn.004a5c70
cmp edi, ebx
je 0x4e1e59
mov eax, dword [esp + 0x18]
push eax
push edi
push ebx
mov ecx, ebp
call fcn.004de9e0
push eax
push ebx
mov ecx, ebp
call fcn.004de860
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov edi, dword [esp + 0x80]
mov dword [edi], eax
je 0x4e1eb4
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x4e1eb4
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4e1eb4
cmp esi, ebx
je 0x4e1eb4
mov eax, dword [esi]
cmp eax, ebx
je 0x4e1e9b
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4e1eab
push eax
call fcn.004274fc
add esp, 4
push esi
call fcn.004274fc
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.0044abb9
add esp, 0xa8
ret 0x10