Function at 0x49f12c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49f389
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0049f004
test al, al
jne 0x49f36e
mov eax, dword [ebp - 4]
cmp dword [eax + 0x68], 0
jne 0x49f17d
mov ecx, 0x49f3a0
mov dl, 1
mov eax, dword [0x49e730]
call fcn.0040d2f0
call fcn.0040437c
mov eax, dword [ebp - 4]
call fcn.0049eafc
test al, al
je 0x49f1c1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
call fcn.0049fb6c
test al, al
jne 0x49f1c1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, 0x49f3b8
mov dl, 1
mov eax, dword [0x49e730]
call fcn.0040d32c
call fcn.0040437c
mov eax, dword [ebp - 4]
mov si, 0xffef
call fcn.00403da4
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x40], edx
push 0
mov eax, dword [ebp - 4]
call fcn.0049ee34
and eax, 0x7f
mov ebx, dword [eax*4 + 0x4c83e4]
or ebx, 0x80
mov eax, dword [ebp - 4]
call fcn.0049eed0
and eax, 0x7f
or ebx, dword [eax*4 + 0x4c83ec]
mov eax, dword [ebp - 4]
call fcn.0049ecec
and eax, 0x7f
or ebx, dword [eax*4 + 0x4c83d4]
mov eax, dword [ebp - 4]
call fcn.0049ed90
and eax, 0x7f
or ebx, dword [eax*4 + 0x4c83dc]
push ebx
mov eax, dword [ebp - 4]
call fcn.0049eafc
xor ebx, ebx
mov bl, al
mov eax, dword [ebp - 4]
call fcn.0049ec48
and eax, 0x7f
lea eax, [eax*8 + 0x4c83c4]
mov eax, dword [eax + ebx*4]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.0049ebac
and eax, 0x7f
mov eax, dword [eax*4 + 0x4c83bc]
push eax
mov eax, dword [ebp - 4]
call fcn.0049eafc
and eax, 0x7f
mov eax, dword [eax*4 + 0x4c83b4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
call fcn.00404e48
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], ebx
cmp ebx, 0xffffffff
jne 0x49f2ae
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x30], 0
jne 0x49f2df
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x49f3d0
call fcn.0040a330
mov eax, dword [ebp - 0x10]
call fcn.0049fa90
xor eax, eax
push ebp
push 0x49f33f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0x38
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.kernel32.dll_GetFileSize
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x34], ebx
cmp ebx, 0xffffffff
jne 0x49f335
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x49f3ec
call fcn.0040a330
mov eax, dword [ebp - 0x14]
call fcn.0049fa90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49f362
mov eax, dword [ebp - 4]
mov si, 0xffee
call fcn.00403da4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f390
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004049ac
ret