Function at 0x49c130
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 0x49c5a4
test byte [esi + 0x70], 0x40
jne 0x49c1c2
push esi
call fcn.004a6c80
add esp, 4
cmp byte [esi + 0x13f], 0
je 0x49c2f1
test byte [esi + 0x74], 2
je 0x49c2f1
movzx eax, byte [esi + 0x140]
cmp eax, 5
ja case.default.0x49c1e9
jmp dword [eax*4 + 0x49c5ac]
test byte [esi + 0xfc], 7
je 0x49c2f1
mov eax, dword [esp + 0x54]
test eax, eax
je 0x49c214
push 0xff
push eax
push esi
call fcn.004a6340
add esp, 0xc
push esi
call fcn.004a9a90
add esp, 4
pop edi
pop esi
add esp, 0x40
ret
test byte [esi + 0xfc], 7
jne 0x49c239
cmp dword [esi + 0xe4], 5
jae 0x49c2f1
mov eax, dword [esp + 0x54]
test eax, eax
je 0x49c214
push 0xf
jmp 0x49c20a
mov eax, dword [esi + 0xfc]
mov ecx, eax
and cl, 7
cmp cl, 4
je 0x49c2f1
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x49c214
test al, 4
je 0x49c214
push 0xff
push ecx
jmp 0x49c20b
mov eax, 3
test byte [esi + 0xfc], al
jne 0x49c282
cmp dword [esi + 0xe4], eax
jae 0x49c2f1
mov eax, dword [esp + 0x54]
test eax, eax
je 0x49c214
push 0x33
jmp 0x49c20a
mov eax, dword [esi + 0xfc]
mov edx, eax
and dl, 3
cmp dl, 2
je 0x49c2f1
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x49c214
test al, 2
je 0x49c214
push 0xff
push ecx
jmp 0x49c20b
test byte [esi + 0xfc], 1
jne 0x49c2d2
cmp dword [esi + 0xe4], 2
jae 0x49c2f1
mov eax, dword [esp + 0x54]
test eax, eax
je 0x49c214
push edi
jmp 0x49c20a
test byte [esi + 0xfc], 1
je 0x49c214
test byte [esi + 0x6c], 4
jne 0x49c302
push str.Invalid_attempt_to_read_row_data
push esi
call fcn.0049f5c0
mov eax, dword [esi + 0x104]
mov dword [esi + 0x84], eax
mov al, byte [esi + 0x145]
cmp al, 8
movzx eax, al
jb 0x49c327
shr eax, 3
imul eax, dword [esi + 0xf8]
jmp 0x49c334
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 0x49c3ad
cmp dword [esi + 0x128], 0
jne 0x49c377
nop
push 0
push esi
call fcn.004a7050
push esi
call fcn.004a6fb0
add esp, 0xc
mov dword [esi + 0x128], eax
cmp dword [esi + 0x138], edi
jne 0x49c422
test eax, eax
je 0x49c350
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 0x49c396
mov dword [esi + 0x7c], ecx
mov ecx, dword [esi + 0x7c]
push ecx
push edx
push esi
call fcn.004a5f30
mov edx, dword [esi + 0x7c]
add esp, 0xc
sub dword [esi + 0x128], edx
lea eax, [esi + 0x78]
push 1
push eax
call fcn.00543710
add esp, 8
cmp eax, 1
je 0x49c42d
test eax, eax
jne 0x49c460
cmp dword [esi + 0x88], eax
jne 0x49c340
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 0x49c476
shr eax, 3
imul eax, ecx
jmp 0x49c47f
push str.Not_enough_image_data
push esi
call fcn.0049f5c0
cmp dword [esi + 0x88], 0
jne 0x49c445
cmp dword [esi + 0x7c], 0
jne 0x49c445
cmp dword [esi + 0x128], 0
je 0x49c453
push str.Extra_compressed_data
push esi
call fcn.0049f5f0
add esp, 8
or dword [esi + 0x6c], 8
or dword [esi + 0x70], 0x20
jmp 0x49c3d4
mov eax, dword [esi + 0x90]
test eax, eax
jne 0x49c46f
mov eax, str.Decompression_error
push eax
push esi
call fcn.0049f5c0
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 0x49c4a9
mov edx, dword [esi + 0x100]
movzx ecx, cl
push ecx
inc edx
push edx
inc eax
push eax
push edi
push esi
call fcn.004a6ac0
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.005114f0
add esp, 0xc
test byte [esi + 0x268], 4
je 0x49c4ea
cmp byte [esi + 0x26c], 0x40
jne 0x49c4ea
mov eax, dword [esi + 0x104]
inc eax
push eax
push edi
call fcn.004a54a0
add esp, 8
cmp dword [esi + 0x74], 0
je 0x49c4f9
push esi
call fcn.004a5580
add esp, 4
cmp byte [esi + 0x13f], 0
je 0x49c54e
test byte [esi + 0x74], 2
je 0x49c54e
cmp byte [esi + 0x140], 6
jae 0x49c51a
push esi
call fcn.004a6670
add esp, 4
mov eax, dword [esp + 0x54]
test eax, eax
je 0x49c538
movzx ecx, byte [esi + 0x140]
mov edx, dword [esp + ecx*4 + 0x10]
push edx
push eax
push esi
call fcn.004a6340
add esp, 0xc
mov eax, dword [esp + 0x50]
test eax, eax
je 0x49c57c
movzx ecx, byte [esi + 0x140]
mov edx, dword [esp + ecx*4 + 0x2c]
push edx
jmp 0x49c572
mov eax, dword [esp + 0x50]
test eax, eax
je 0x49c565
push 0xff
push eax
push esi
call fcn.004a6340
add esp, 0xc
mov eax, dword [esp + 0x54]
test eax, eax
je 0x49c57c
push 0xff
push eax
push esi
call fcn.004a6340
add esp, 0xc
push esi
call fcn.004a9a90
mov eax, dword [esi + 0x1b4]
add esp, 4
test eax, eax
je 0x49c5a4
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