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

Disassembly:
sub esp, 0x80
push ebx
push ebp
xor ebp, ebp
mov edx, 1
mov ecx, 4
mov eax, 2
push esi
mov esi, dword [esp + 0x90]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x88], edx
mov edx, dword [esi + 0xe4]
inc edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
mov ecx, dword [esi + 0xd0]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
push edi
mov edi, 8
mov eax, edx
cmp eax, ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x80], ebp
mov dword [esp + 0x88], ebp
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esi + 0xe4], edx
jb 0x56f113
mov al, byte [esi + 0x123]
test al, al
je 0x56ef95
mov eax, dword [esi + 0xd8]
mov ecx, dword [esi + 0xe8]
inc eax
push eax
push ebp
push ecx
push esi
mov dword [esi + 0xe4], ebp
call fcn.0056bd20
add esp, 0x10
jmp 0x56eef4
mov edi, 8
mov cl, byte [esi + 0x124]
inc cl
mov bl, cl
cmp bl, 7
mov byte [esi + 0x124], cl
jae 0x56ef95
mov edx, dword [esi + 0xc8]
xor ecx, ecx
mov cl, bl
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
mov edi, eax
mov al, byte [esi + 0x129]
cmp al, 8
mov dword [esi + 0xe0], edi
movzx eax, al
jb 0x56ef49
shr eax, 3
imul eax, edi
jmp 0x56ef52
imul eax, edi
add eax, 7
shr eax, 3
inc eax
mov dword [esi + 0xdc], eax
test byte [esi + 0x70], 2
jne 0x56ef87
mov edx, dword [esp + ecx + 0x74]
mov ebp, dword [esp + ecx + 0x58]
mov eax, dword [esi + 0xcc]
sub eax, edx
lea eax, [eax + ebp - 1]
xor edx, edx
div ebp
xor ebp, ebp
test edi, edi
mov dword [esi + 0xd0], eax
je 0x56eeef
cmp bl, 7
jb 0x56f113
mov edi, 8
test byte [esi + 0x6c], 0x20
jne 0x56f0e4
lea ecx, [esp + 0x13]
mov byte [esp + 0x18], 0x49
mov byte [esp + 0x19], 0x44
mov byte [esp + 0x1a], 0x41
mov byte [esp + 0x1b], 0x54
mov byte [esp + 0x1c], 0
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], 1
lea ebx, [esi + 0x74]
nop
cmp dword [esi + 0x78], ebp
jne 0x56f082
cmp dword [esi + 0x10c], ebp
jne 0x56f045
lea edi, [esi + 0x11c]
push ebp
push esi
call fcn.0056be40
push 4
lea edx, [esp + 0x20]
push edx
push esi
call fcn.00565020
lea eax, [esp + 0x28]
push eax
push esi
call fcn.0056bd90
push esi
mov dword [esi + 0x10c], eax
call fcn.00565210
push 4
push edi
push esi
call fcn.0056be10
mov edx, dword [edi]
lea ecx, [esp + 0x44]
mov eax, dword [ecx]
add esp, 0x2c
cmp edx, eax
je 0x56f038
push str.Not_enough_image_data
push esi
call fcn.00565780
add esp, 8
cmp dword [esi + 0x10c], ebp
je 0x56efe7
mov edi, 8
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0x10c]
cmp eax, ecx
mov edx, dword [esi + 0xac]
mov dword [esi + 0x78], eax
mov dword [ebx], edx
jbe 0x56f063
mov dword [esi + 0x78], ecx
mov eax, dword [esi + 0x78]
push eax
push edx
push esi
call fcn.0056be10
mov eax, dword [esi + 0x10c]
mov ecx, dword [esi + 0x78]
add esp, 0xc
sub eax, ecx
mov dword [esi + 0x10c], eax
push 1
push ebx
call fcn.00533f30
add esp, 8
cmp eax, 1
je 0x56f11e
cmp eax, ebp
je 0x56f0b3
mov eax, dword [esi + 0x8c]
cmp eax, ebp
jne 0x56f0a9
mov eax, str.Decompression_Error
push eax
push esi
call fcn.00565780
add esp, 8
cmp dword [esi + 0x84], ebp
jne 0x56efd0
push str.Extra_compressed_data.
push esi
call fcn.00565820
add esp, 8
mov ecx, dword [esi + 0x68]
mov eax, dword [esi + 0x6c]
or ecx, edi
or eax, 0x20
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], eax
mov dword [esi + 0x84], ebp
cmp dword [esi + 0x10c], ebp
jne 0x56f0f1
cmp dword [esi + 0x78], ebp
je 0x56f0ff
push str.Extra_compression_data
push esi
call fcn.00565820
add esp, 8
lea edx, [esi + 0x74]
push edx
call fcn.00533dd0
mov eax, dword [esi + 0x68]
add esp, 4
or eax, edi
mov dword [esi + 0x68], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
cmp dword [esi + 0x84], ebp
je 0x56f133
cmp dword [esi + 0x78], ebp
jne 0x56f133
cmp dword [esi + 0x10c], ebp
je 0x56f0cd
push str.Extra_compressed_data
jmp 0x56f0c4