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

Disassembly:
sub esp, 0x7c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x8c]
push edi
xor edi, edi
mov ebx, dword [esi + 0xe4]
mov eax, 4
mov ecx, 8
inc ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov ecx, dword [esi + 0xd4]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov eax, ebx
mov edx, 2
mov ebp, 1
cmp eax, ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], ebp
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], edx
mov dword [esi + 0xe4], ebx
jb 0x47c152
mov al, byte [esi + 0x123]
test al, al
je 0x47bfd3
mov ecx, dword [esi + 0xdc]
mov dword [esi + 0xe4], edi
mov edi, dword [esi + 0xe8]
inc ecx
mov ebx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov cl, byte [esi + 0x124]
inc cl
mov bl, cl
mov byte [esi + 0x124], cl
cmp bl, 7
jae 0x47bfc1
mov ebp, dword [esi + 0x74]
and ebp, edx
mov dword [esp + 0x14], ebp
jmp 0x47bf5f
mov ebp, dword [esp + 0x14]
mov eax, dword [esi + 0xcc]
mov ecx, ebx
and ecx, 0xff
shl ecx, 2
mov edx, dword [esp + ecx + 0x38]
mov edi, dword [esp + ecx + 0x1c]
sub eax, edx
xor edx, edx
lea eax, [eax + edi - 1]
div edi
test ebp, ebp
mov edi, eax
mov dword [esi + 0xe0], edi
jne 0x47bfc1
mov edx, dword [esi + 0xd0]
mov eax, dword [esp + ecx + 0x70]
mov ebp, dword [esp + ecx + 0x54]
sub edx, eax
lea eax, [edx + ebp - 1]
xor edx, edx
div ebp
test eax, eax
mov dword [esi + 0xd4], eax
je 0x47bfb4
test edi, edi
jne 0x47bfc1
inc bl
cmp bl, 7
mov byte [esi + 0x124], bl
jb 0x47bf5b
cmp byte [esi + 0x124], 7
jb 0x47c152
mov ebp, 1
mov al, byte [esi + 0x70]
mov ebx, 0x20
test bl, al
jne 0x47c11f
lea eax, [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 + 0x84], eax
mov dword [esi + 0x88], ebp
mov eax, dword [esi + 0x7c]
test eax, eax
jne 0x47c09c
mov eax, dword [esi + 0x10c]
test eax, eax
jne 0x47c05e
push 0
push esi
call fcn.00478900
push esi
call fcn.00478860
lea ecx, [esp + 0x20]
mov dword [esi + 0x10c], eax
mov edx, dword [esi + 0x11c]
add esp, 0xc
cmp edx, dword [ecx]
je 0x47c054
push str.Not_enough_image_data
push esi
call fcn.00474cd0
add esp, 8
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x47c021
mov eax, dword [esi + 0xb4]
mov ecx, dword [esi + 0x10c]
mov edx, dword [esi + 0xb0]
cmp eax, ecx
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], edx
jbe 0x47c07d
mov dword [esi + 0x7c], ecx
mov eax, dword [esi + 0x7c]
push eax
push edx
push esi
call fcn.004788d0
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0x10c]
add esp, 0xc
sub eax, ecx
mov dword [esi + 0x10c], eax
lea edx, [esi + 0x78]
push 1
push edx
call fcn.00483b50
add esp, 8
cmp eax, 1
je 0x47c0db
test eax, eax
je 0x47c0cc
mov eax, dword [esi + 0x90]
test eax, eax
jne 0x47c0c2
mov eax, str.Decompression_Error
push eax
push esi
call fcn.00474cd0
add esp, 8
mov eax, dword [esi + 0x88]
test eax, eax
je 0x47c0f6
jmp 0x47c00c
mov eax, dword [esi + 0x88]
test eax, eax
je 0x47c0f6
mov eax, dword [esi + 0x7c]
test eax, eax
jne 0x47c0f6
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x47c104
push str.Extra_compressed_data
push esi
call fcn.00474d00
add esp, 8
mov ecx, dword [esi + 0x6c]
mov eax, dword [esi + 0x70]
or ecx, 8
or eax, ebx
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x70], eax
mov dword [esi + 0x88], 0
mov eax, dword [esi + 0x10c]
test eax, eax
jne 0x47c130
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x47c13e
push str.Extra_compression_data
push esi
call fcn.00474d00
add esp, 8
lea eax, [esi + 0x78]
push eax
call fcn.00483970
mov eax, dword [esi + 0x6c]
add esp, 4
or al, 8
mov dword [esi + 0x6c], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret