Function at 0x4a4ca0
Capabilities:
Get file size

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x30]
push ebx
push ebp
push esi
push edi
lea ecx, [eax + 0xcb4]
mov eax, dword [eax]
push edx
push eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4a4ce9
push str.GetFileSizeEx__
push eax
push 0x112
push str..QHImageHlp.c
call fcn.0049d640
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
mov esi, dword [esp + 0x28]
xor eax, eax
add esi, 8
xor ebx, ebx
xor ebp, ebp
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], esi
jne 0x4a4d11
mov eax, dword [esp + 0x40]
mov edi, dword [eax]
mov ecx, eax
mov eax, dword [ecx + 4]
jmp 0x4a4d17
mov edi, dword [esi - 8]
mov eax, dword [esi - 4]
sub edi, ebx
sbb eax, ebp
mov ecx, edi
shrd ecx, eax, 0xf
shr eax, 0xf
and edi, 0x7fff
mov dword [esp + 0x18], ecx
jne 0x4a4d37
mov edi, 0x8000
jmp 0x4a4d3c
inc ecx
mov dword [esp + 0x18], ecx
test ecx, ecx
jbe 0x4a4daa
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
push edx
push ebp
push ebx
call fcn.004a47a0
add esp, 0xc
test eax, eax
je 0x4a4f20
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4a4d78
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
push edi
push ecx
push edx
call eax
test eax, eax
je 0x4a4e7b
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4a4d95
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
push edi
push ecx
push edx
call eax
test eax, eax
je 0x4a4e9e
add ebx, edi
adc ebp, 0
sub dword [esp + 0x18], 1
mov edi, 0x8000
jne 0x4a4d40
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x2c]
jae 0x4a4e58
mov edi, dword [esi]
test edi, edi
je 0x4a4e6e
cmp dword [esi + 8], 0
jne 0x4a4e0a
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
push eax
push ebp
push ebx
call fcn.004a47a0
add esp, 0xc
test eax, eax
je 0x4a4f20
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4a4e06
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x40]
push ecx
push edx
call eax
test eax, eax
je 0x4a4ec1
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x4a4e48
cmp dword [esi + 4], 0
je 0x4a4e48
mov eax, dword [esi]
cmp eax, 0x8000
ja 0x4a4ee4
mov edi, dword [esp + 0x10]
push eax
push 0
push edi
call fcn.00436ad0
mov eax, dword [esi]
mov ecx, dword [esp + 0x40]
add esp, 0xc
push eax
push edi
push ecx
call ebx
test eax, eax
je 0x4a4f07
mov ebx, dword [esi]
mov ebp, dword [esi - 4]
mov eax, dword [esp + 0x1c]
xor edx, edx
add ebx, dword [esi - 8]
adc ebp, edx
inc eax
add esi, 0x18
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], esi
cmp eax, dword [esp + 0x2c]
jbe 0x4a4d02
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret
push str._rT
push 0x11
push 0x336
push str..QHImageHlp.c
call fcn.0049d6b0
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
push str._rT
push 0x11
push 0x33b
push str..QHImageHlp.c
call fcn.0049d6b0
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
push str._rT
push 0x11
push 0x34d
push str..QHImageHlp.c
call fcn.0049d6b0
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
push 0x4cd4ec
push 8
push 0x354
push str..QHImageHlp.c
call fcn.0049d6b0
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
push str._rT
push 0x11
push 0x357
push str..QHImageHlp.c
call fcn.0049d6b0
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret