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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
push ebx
push esi
push edi
xor edi, edi
cmp word [ecx], di
je 0x49a538
mov eax, dword [ebp + 8]
push eax
lea edx, [esp + 0x54]
push edx
call fcn.0049a340
push 3
push 1
push SysReAllocStringLen
lea eax, [esp + 0x5c]
push eax
mov eax, 0x2710
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
call fcn.004abf70
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x49a543
push edi
call fcn.0069c8fa
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x38]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x49a559
mov dword [esp + 0x34], edi
jmp 0x49a565
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x34], edx
lea eax, [edi + 1]
push eax
lea esi, [esp + 0x48]
call fcn.00552ef0
mov esi, dword [esp + 0x44]
push 0
lea ecx, [esp + 0x34]
push ecx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov byte [edi + esi], 0
push ebx
mov byte [edi + esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 0xc]
add edi, 0x414
call fcn.00555280
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x2c], edi
je 0x49a5b1
mov edi, esi
jmp 0x49a5bd
mov dword [esp + 0x28], 0x6bc0ce
mov edi, dword [esp + 0x28]
push 0x80
call fcn.0069c0de
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x49a5d8
mov dword [esp + 0x18], ebx
jmp 0x49a5e2
mov byte [eax], bl
mov dword [esp + 0x18], 0x80
push 0x2000
mov dword [esp + 0x18], ebx
call fcn.0069c0de
add esp, 4
cmp eax, ebx
mov dword [esp + 0x1c], eax
jne 0x49a601
mov dword [esp + 0x24], ebx
jmp 0x49a60b
mov byte [eax], bl
mov dword [esp + 0x24], 0x2000
mov dword [esp + 0x20], ebx
cmp byte [edi], bl
je 0x49a7fc
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
mov dword [esp + 0x40], edx
mov dword [esp + 0x38], eax
jmp 0x49a630
mov ebx, 0x104
cmp dword [esp + 0x18], ebx
jae 0x49a67e
push ebx
call fcn.0069c0de
mov esi, eax
add esp, 4
test esi, esi
je 0x49a67e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49a661
mov ecx, dword [esp + 0x14]
push ecx
push eax
push esi
call fcn.006a4bd0
add esp, 0xc
mov edx, dword [esp + 0x14]
mov byte [edx + esi], 0
mov eax, dword [esp + 0x10]
push eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ebx
call fcn.0069c8fa
add esp, 4
push edi
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x1c], 0
call fcn.00553f40
add edi, eax
cmp byte [edi], 0x3d
jne 0x49a69b
add edi, 1
cmp dword [esp + 0x24], ebx
jae 0x49a6e4
push ebx
call fcn.0069c0de
mov esi, eax
add esp, 4
test esi, esi
je 0x49a6e4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x49a6c7
mov ecx, dword [esp + 0x20]
push ecx
push eax
push esi
call fcn.006a4bd0
add esp, 0xc
mov edx, dword [esp + 0x20]
mov byte [edx + esi], 0
mov eax, dword [esp + 0x1c]
push eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], ebx
call fcn.0069c8fa
add esp, 4
push edi
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x28], 0
call fcn.00554070
add edi, eax
cmp byte [edi], 0
mov dword [esp + 0x28], edi
je 0x49a709
add edi, 1
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x49a719
mov ecx, dword [esp + 0x20]
mov byte [ecx + eax], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49a729
mov edx, dword [esp + 0x14]
mov byte [edx + eax], 0
cmp dword [esp + 0x14], 0
je 0x49a7ef
mov ebx, dword [esp + 0x20]
push 0x9b
add ebx, 1
call fcn.0069e704
add esp, 4
test eax, eax
jne 0x49a82a
call fcn.004b05b0
xor edi, edi
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x49a764
mov eax, 0x6bc0ce
push 0x40
lea esi, [edi + 4]
push esi
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov word [esi + 0x7e], 0
lea esi, [edi + 0x85]
push ebx
call fcn.00480af0
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x49a799
mov ecx, 0x6bc0ce
mov eax, dword [esi]
push ebx
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x30]
mov word [eax + ebx*2 - 2], 0
mov eax, dword [esi]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49a7c1
mov ecx, dword [esi]
sub eax, edx
mov edx, dword [esp + 0x2c]
sar eax, 1
mov dword [esi + 4], eax
mov word [ecx + eax*2], 0
mov dword [edx], edi
mov dword [edi], 0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x28]
cmp byte [edi], 0
jne 0x49a630
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x1c]
push eax
call fcn.0069c8fa
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call fcn.0069c8fa
add esp, 4
push esi
call fcn.0069c8fa
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, ebx
mov esi, eax
call fcn.004c9e70
mov edi, eax
jmp 0x49a757