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

Disassembly:
sub esp, 0x84
mov eax, dword [0x4f43d8]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
mov eax, 2
push esi
mov esi, dword [esp + 0x90]
xor ecx, ecx
push edi
mov edi, 1
add dword [esi + 0xe4], edi
mov edx, 4
mov ebx, 8
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0xe4]
cmp eax, dword [esi + 0xd0]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edx
jb 0x4a2e63
cmp byte [esi + 0x123], cl
push ebp
je 0x4a2c56
mov eax, dword [esi + 0xd8]
add eax, edi
push eax
push ecx
mov dword [esi + 0xe4], ecx
mov ecx, dword [esi + 0xe8]
push ecx
push esi
call fcn.0049f430
add esp, 0x10
lea esp, [esp]
add byte [esi + 0x124], 1
mov bl, byte [esi + 0x124]
cmp bl, 7
jae 0x4a2c51
mov edx, dword [esi + 0xc8]
movzx ecx, bl
add ecx, ecx
add ecx, ecx
sub edx, dword [esp + ecx + 0x34]
mov edi, dword [esp + ecx + 0x18]
lea eax, [edx + edi - 1]
xor edx, edx
div edi
mov edi, eax
mov al, byte [esi + 0x129]
cmp al, 8
mov dword [esi + 0xe0], edi
movzx eax, al
jb 0x4a2c0c
shr eax, 3
imul eax, edi
jmp 0x4a2c15
imul eax, edi
add eax, 7
shr eax, 3
add eax, 1
test byte [esi + 0x70], 2
mov dword [esi + 0xdc], eax
jne 0x4a2c48
mov eax, dword [esi + 0xcc]
sub eax, dword [esp + ecx + 0x6c]
mov ebp, dword [esp + ecx + 0x50]
xor edx, edx
lea eax, [eax + ebp - 1]
div ebp
test edi, edi
mov dword [esi + 0xd0], eax
je 0x4a2bc0
cmp bl, 7
jb 0x4a2e62
mov ebx, 8
test byte [esi + 0x6c], 0x20
jne 0x4a2e36
lea ecx, [esp + 0x13]
mov byte [esp + 0x88], 0x49
mov byte [esp + 0x89], 0x44
mov byte [esp + 0x8a], 0x41
mov byte [esp + 0x8b], 0x54
mov byte [esp + 0x8c], 0
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], 1
lea edi, [esi + 0x74]
nop
cmp dword [esi + 0x78], 0
jne 0x4a2dd9
cmp dword [esi + 0x10c], 0
jne 0x4a2da1
lea ebx, [esi + 0x11c]
lea ecx, [ecx]
push 0
push esi
call fcn.004a06f0
push 4
lea edx, [esp + 0x20]
push edx
push esi
call fcn.0049de00
lea eax, [esp + 0x28]
push eax
push esi
call fcn.004a06c0
push esi
mov dword [esi + 0x10c], eax
call fcn.0049a370
push 4
push ebx
push esi
call fcn.0049f5c0
add esp, 0x2c
mov eax, 4
lea ecx, [esp + 0x88]
mov edx, ebx
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x4a2d1e
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4a2d06
test eax, eax
je 0x4a2d7b
movzx ebp, byte [ecx]
movzx edi, byte [edx]
sub edi, ebp
jne 0x4a2d6d
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4a2d7b
movzx ebp, byte [ecx]
movzx edi, byte [edx]
sub edi, ebp
jne 0x4a2d6d
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4a2d7b
movzx ebp, byte [ecx]
movzx edi, byte [edx]
sub edi, ebp
jne 0x4a2d6d
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4a2d7b
movzx ecx, byte [ecx]
movzx edi, byte [edx]
sub edi, ecx
je 0x4a2d7b
test edi, edi
mov eax, 1
jg 0x4a2d7d
or eax, 0xffffffff
jmp 0x4a2d7d
xor eax, eax
test eax, eax
je 0x4a2d8f
push str.Not_enough_image_data
push esi
call fcn.0049a020
add esp, 8
cmp dword [esi + 0x10c], 0
je 0x4a2cc0
mov ebx, 8
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0x10c]
cmp eax, ecx
mov edx, dword [esi + 0xac]
lea edi, [esi + 0x74]
mov dword [esi + 0x78], eax
mov dword [edi], edx
jbe 0x4a2dc2
mov dword [esi + 0x78], ecx
mov eax, dword [esi + 0x78]
push eax
push edx
push esi
call fcn.0049f5c0
mov ecx, dword [esi + 0x78]
add esp, 0xc
sub dword [esi + 0x10c], ecx
push 1
push edi
call fcn.004a7b20
add esp, 8
cmp eax, 1
je 0x4a2e7b
test eax, eax
je 0x4a2e0a
mov eax, dword [esi + 0x8c]
test eax, eax
jne 0x4a2e00
mov eax, str.Decompression_Error
push eax
push esi
call fcn.0049a020
add esp, 8
cmp dword [esi + 0x84], 0
jne 0x4a2ca0
push str.Extra_compressed_data.
push esi
call fcn.0049a0e0
add esp, 8
or dword [esi + 0x68], ebx
or dword [esi + 0x6c], 0x20
mov dword [esi + 0x84], 0
cmp dword [esi + 0x10c], 0
jne 0x4a2e45
cmp dword [esi + 0x78], 0
je 0x4a2e53
push str.Extra_compression_data
push esi
call fcn.0049a0e0
add esp, 8
lea edx, [esi + 0x74]
push edx
call fcn.004a78c0
add esp, 4
or dword [esi + 0x68], ebx
pop ebp
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004442cc
add esp, 0x84
ret
cmp dword [esi + 0x84], 0
je 0x4a2e93
cmp dword [esi + 0x78], 0
jne 0x4a2e93
cmp dword [esi + 0x10c], 0
je 0x4a2e25
push str.Extra_compressed_data
jmp 0x4a2e1c