Function at 0x4a1cd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push ebx
push ebp
push esi
mov esi, dword [esp + 0x90]
xor ebp, ebp
mov ecx, 1
mov edx, dword [esi + 0xe4]
mov eax, 8
inc edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x88], ecx
mov ecx, dword [esi + 0xd0]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
push edi
mov eax, edx
mov ebx, 4
mov edi, 2
cmp eax, ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], ebp
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esi + 0xe4], edx
jb 0x4a2023
mov al, byte [esi + 0x123]
test al, al
je 0x4a1e95
mov eax, dword [esi + 0xd8]
mov ecx, dword [esi + 0xe8]
inc eax
mov dword [esi + 0xe4], ebp
push eax
push ebp
push ecx
push esi
call fcn.0049ea90
mov cl, byte [esi + 0x124]
add esp, 0x10
inc cl
cmp cl, 7
mov byte [esi + 0x124], cl
mov byte [esp + 0x14], cl
jae 0x4a1e88
mov ebp, dword [esi + 0x70]
mov bl, byte [esi + 0x129]
and ebp, edi
mov dword [esp + 0x1c], ebp
jmp 0x4a1df1
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
mov edx, dword [esi + 0xc8]
and ecx, 0xff
shl ecx, 2
mov eax, dword [esp + ecx + 0x3c]
mov edi, dword [esp + ecx + 0x20]
sub edx, eax
lea eax, [edx + edi - 1]
xor edx, edx
div edi
cmp bl, 8
mov edi, eax
mov eax, ebx
mov dword [esi + 0xe0], edi
jb 0x4a1e2e
and eax, 0xff
shr eax, 3
imul eax, edi
jmp 0x4a1e3c
and eax, 0xff
imul eax, edi
add eax, 7
shr eax, 3
inc eax
test ebp, ebp
mov dword [esi + 0xdc], eax
jne 0x4a1e81
mov eax, dword [esi + 0xcc]
mov edx, dword [esp + ecx + 0x74]
mov ebp, dword [esp + ecx + 0x58]
sub eax, edx
xor edx, edx
lea eax, [eax + ebp - 1]
div ebp
test edi, edi
mov dword [esi + 0xd0], eax
jne 0x4a1e81
mov al, byte [esp + 0x14]
inc al
cmp al, 7
mov byte [esp + 0x14], al
mov byte [esi + 0x124], al
jb 0x4a1de9
xor ebp, ebp
mov ebx, 4
cmp byte [esi + 0x124], 7
jb 0x4a2023
test byte [esi + 0x6c], 0x20
jne 0x4a1ff4
lea ecx, [esp + 0x13]
mov byte [esp + 0x14], 0x49
mov byte [esp + 0x15], 0x44
mov byte [esp + 0x16], 0x41
mov byte [esp + 0x17], 0x54
mov byte [esp + 0x18], 0
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], 1
cmp dword [esi + 0x78], ebp
jne 0x4a1f76
cmp dword [esi + 0x10c], ebp
jne 0x4a1f38
lea edi, [esi + 0x11c]
push ebp
push esi
call fcn.0049ebb0
lea edx, [esp + 0x24]
push ebx
push edx
push esi
call fcn.0049cb60
lea eax, [esp + 0x30]
push eax
push esi
call fcn.0049eb00
push esi
mov dword [esi + 0x10c], eax
call fcn.0049cd40
push ebx
push edi
push esi
call fcn.0049eb80
mov edx, dword [edi]
lea ecx, [esp + 0x40]
add esp, 0x2c
cmp edx, dword [ecx]
je 0x4a1f30
push str.Not_enough_image_data
push esi
call fcn.0049c7a0
add esp, 8
cmp dword [esi + 0x10c], ebp
je 0x4a1ee3
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0x10c]
mov edx, dword [esi + 0xac]
cmp eax, ecx
mov dword [esi + 0x78], eax
mov dword [esi + 0x74], edx
jbe 0x4a1f57
mov dword [esi + 0x78], ecx
mov eax, dword [esi + 0x78]
push eax
push edx
push esi
call fcn.0049eb80
mov ecx, dword [esi + 0x78]
mov eax, dword [esi + 0x10c]
add esp, 0xc
sub eax, ecx
mov dword [esi + 0x10c], eax
lea edx, [esi + 0x74]
push 1
push edx
call fcn.004c14d0
add esp, 8
cmp eax, 1
je 0x4a1fb3
cmp eax, ebp
je 0x4a1fa6
mov eax, dword [esi + 0x8c]
cmp eax, ebp
jne 0x4a1f9c
mov eax, str.Decompression_Error
push eax
push esi
call fcn.0049c7a0
add esp, 8
cmp dword [esi + 0x84], ebp
je 0x4a1fcf
jmp 0x4a1ecc
cmp dword [esi + 0x84], ebp
je 0x4a1fc8
cmp dword [esi + 0x78], ebp
jne 0x4a1fc8
cmp dword [esi + 0x10c], ebp
je 0x4a1fdd
push str.Extra_compressed_data
jmp 0x4a1fd4
push str.Extra_compressed_data.
push esi
call fcn.0049c860
add esp, 8
mov ecx, dword [esi + 0x68]
mov eax, dword [esi + 0x6c]
or ecx, 8
or al, 0x20
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], eax
mov dword [esi + 0x84], ebp
cmp dword [esi + 0x10c], ebp
jne 0x4a2001
cmp dword [esi + 0x78], ebp
je 0x4a200f
push str.Extra_compression_data
push esi
call fcn.0049c860
add esp, 8
lea eax, [esi + 0x74]
push eax
call fcn.004c1370
mov eax, dword [esi + 0x68]
add esp, 4
or al, 8
mov dword [esi + 0x68], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret