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

Disassembly:
sub esp, 0x40
push esi
mov esi, dword [esp + 0x48]
mov eax, 0xff
push edi
mov edi, 0x55
mov byte [esp + 8], 0x49
mov byte [esp + 9], 0x44
mov byte [esp + 0xa], 0x41
mov byte [esp + 0xb], 0x54
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0xf
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x33
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0x80
mov dword [esp + 0x30], 8
mov dword [esp + 0x34], 0x88
mov dword [esp + 0x38], 0x22
mov dword [esp + 0x3c], 0xaa
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], eax
test esi, esi
je 0x4aa774
test byte [esi + 0x70], 0x40
jne 0x4aa392
push esi
call fcn.004b4e50
add esp, 4
cmp byte [esi + 0x13f], 0
je 0x4aa4c1
test byte [esi + 0x74], 2
je 0x4aa4c1
movzx eax, byte [esi + 0x140]
cmp eax, 5
ja case.default.0x4aa3b9
jmp dword [eax*4 + 0x4aa77c]
test byte [esi + 0xfc], 7
je 0x4aa4c1
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4aa3e4
push 0xff
push eax
push esi
call fcn.004b4510
add esp, 0xc
push esi
call fcn.004b7c60
add esp, 4
pop edi
pop esi
add esp, 0x40
ret
test byte [esi + 0xfc], 7
jne 0x4aa409
cmp dword [esi + 0xe4], 5
jae 0x4aa4c1
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4aa3e4
push 0xf
jmp 0x4aa3da
mov eax, dword [esi + 0xfc]
mov ecx, eax
and cl, 7
cmp cl, 4
je 0x4aa4c1
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x4aa3e4
test al, 4
je 0x4aa3e4
push 0xff
push ecx
jmp 0x4aa3db
mov eax, 3
test byte [esi + 0xfc], al
jne 0x4aa452
cmp dword [esi + 0xe4], eax
jae 0x4aa4c1
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4aa3e4
push 0x33
jmp 0x4aa3da
mov eax, dword [esi + 0xfc]
mov edx, eax
and dl, 3
cmp dl, 2
je 0x4aa4c1
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x4aa3e4
test al, 2
je 0x4aa3e4
push 0xff
push ecx
jmp 0x4aa3db
test byte [esi + 0xfc], 1
jne 0x4aa4a2
cmp dword [esi + 0xe4], 2
jae 0x4aa4c1
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4aa3e4
push edi
jmp 0x4aa3da
test byte [esi + 0xfc], 1
je 0x4aa3e4
test byte [esi + 0x6c], 4
jne 0x4aa4d2
push str.Invalid_attempt_to_read_row_data
push esi
call fcn.004ad790
mov eax, dword [esi + 0x104]
mov dword [esi + 0x84], eax
mov al, byte [esi + 0x145]
cmp al, 8
movzx eax, al
jb 0x4aa4f7
shr eax, 3
imul eax, dword [esi + 0xf8]
jmp 0x4aa504
imul eax, dword [esi + 0xf8]
add eax, 7
shr eax, 3
mov edi, dword [esp + 8]
inc eax
mov dword [esi + 0x88], eax
nop
cmp dword [esi + 0x7c], 0
jne 0x4aa57d
cmp dword [esi + 0x128], 0
jne 0x4aa547
nop
push 0
push esi
call fcn.004b5220
push esi
call fcn.004b5180
add esp, 0xc
mov dword [esi + 0x128], eax
cmp dword [esi + 0x138], edi
jne 0x4aa5f2
test eax, eax
je 0x4aa520
mov eax, dword [esi + 0xb4]
mov ecx, dword [esi + 0x128]
mov edx, dword [esi + 0xb0]
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], edx
cmp eax, ecx
jbe 0x4aa566
mov dword [esi + 0x7c], ecx
mov ecx, dword [esi + 0x7c]
push ecx
push edx
push esi
call fcn.004b4100
mov edx, dword [esi + 0x7c]
add esp, 0xc
sub dword [esi + 0x128], edx
lea eax, [esi + 0x78]
push 1
push eax
call fcn.00554880
add esp, 8
cmp eax, 1
je 0x4aa5fd
test eax, eax
jne 0x4aa630
cmp dword [esi + 0x88], eax
jne 0x4aa510
movzx eax, byte [esi + 0x143]
mov cl, byte [esi + 0x142]
mov dl, byte [esi + 0x146]
mov byte [esi + 0x121], al
mov al, byte [esi + 0x145]
mov byte [esi + 0x120], cl
mov ecx, dword [esi + 0xf8]
lea edi, [esi + 0x118]
mov byte [esi + 0x123], al
cmp al, 8
mov dword [edi], ecx
mov byte [esi + 0x122], dl
movzx eax, al
jb 0x4aa646
shr eax, 3
imul eax, ecx
jmp 0x4aa64f
push str.Not_enough_image_data
push esi
call fcn.004ad790
cmp dword [esi + 0x88], 0
jne 0x4aa615
cmp dword [esi + 0x7c], 0
jne 0x4aa615
cmp dword [esi + 0x128], 0
je 0x4aa623
push str.Extra_compressed_data
push esi
call fcn.004ad7c0
add esp, 8
or dword [esi + 0x6c], 8
or dword [esi + 0x70], 0x20
jmp 0x4aa5a4
mov eax, dword [esi + 0x90]
test eax, eax
jne 0x4aa63f
mov eax, str.Decompression_error
push eax
push esi
call fcn.004ad790
imul eax, ecx
add eax, 7
shr eax, 3
mov dword [esi + 0x11c], eax
mov eax, dword [esi + 0x104]
mov cl, byte [eax]
test cl, cl
je 0x4aa679
mov edx, dword [esi + 0x100]
movzx ecx, cl
push ecx
inc edx
push edx
inc eax
push eax
push edi
push esi
call fcn.004b4c90
add esp, 0x14
mov eax, dword [esi + 0xf4]
mov ecx, dword [esi + 0x104]
mov edx, dword [esi + 0x100]
inc eax
push eax
push ecx
push edx
call fcn.0051ff80
add esp, 0xc
test byte [esi + 0x268], 4
je 0x4aa6ba
cmp byte [esi + 0x26c], 0x40
jne 0x4aa6ba
mov eax, dword [esi + 0x104]
inc eax
push eax
push edi
call fcn.004b3670
add esp, 8
cmp dword [esi + 0x74], 0
je 0x4aa6c9
push esi
call fcn.004b3750
add esp, 4
cmp byte [esi + 0x13f], 0
je 0x4aa71e
test byte [esi + 0x74], 2
je 0x4aa71e
cmp byte [esi + 0x140], 6
jae 0x4aa6ea
push esi
call fcn.004b4840
add esp, 4
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4aa708
movzx ecx, byte [esi + 0x140]
mov edx, dword [esp + ecx*4 + 0x10]
push edx
push eax
push esi
call fcn.004b4510
add esp, 0xc
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4aa74c
movzx ecx, byte [esi + 0x140]
mov edx, dword [esp + ecx*4 + 0x2c]
push edx
jmp 0x4aa742
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4aa735
push 0xff
push eax
push esi
call fcn.004b4510
add esp, 0xc
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4aa74c
push 0xff
push eax
push esi
call fcn.004b4510
add esp, 0xc
push esi
call fcn.004b7c60
mov eax, dword [esi + 0x1b4]
add esp, 4
test eax, eax
je 0x4aa774
movzx ecx, byte [esi + 0x140]
mov edx, dword [esi + 0xfc]
push ecx
push edx
push esi
call eax
add esp, 0xc
pop edi
pop esi
add esp, 0x40
ret