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

Disassembly:
sub esp, 0x80
mov eax, dword [0x50397c]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
mov eax, 2
push ebp
xor ebp, ebp
mov ebx, 1
push esi
mov esi, ecx
add dword [esi + 0xe4], ebx
mov ecx, 4
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0xe4]
cmp eax, dword [esi + 0xd4]
push edi
mov edi, 8
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], ebx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
jb 0x45b88b
cmp byte [esi + 0x123], 0
je 0x45b69d
mov eax, dword [esi + 0xdc]
mov ecx, dword [esi + 0xe8]
add eax, ebx
push eax
push ebp
push ecx
mov dword [esi + 0xe4], ebp
call fcn.004b0720
add esp, 0xc
jmp 0x45b627
mov edi, 8
xor ebp, ebp
add byte [esi + 0x124], 1
mov bl, byte [esi + 0x124]
cmp bl, 7
jae 0x45b698
mov edx, dword [esi + 0xcc]
movzx ecx, bl
add ecx, ecx
add ecx, ecx
sub edx, dword [esp + ecx + 0x30]
mov edi, dword [esp + ecx + 0x14]
lea eax, [edx + edi - 1]
xor edx, edx
div edi
test byte [esi + 0x74], 2
mov ebp, eax
mov dword [esi + 0xe0], ebp
jne 0x45b688
mov eax, dword [esi + 0xd0]
sub eax, dword [esp + ecx + 0x68]
mov edi, dword [esp + ecx + 0x4c]
xor edx, edx
lea eax, [eax + edi - 1]
div edi
test eax, eax
mov dword [esi + 0xd4], eax
je 0x45b620
test ebp, ebp
je 0x45b620
cmp bl, 7
jb 0x45b88b
mov edi, 8
xor ebp, ebp
mov ebx, 1
test byte [esi + 0x70], 0x20
jne 0x45b824
lea ecx, [esp + 0x13]
mov byte [esp + 0x84], 0x49
mov byte [esp + 0x85], 0x44
mov byte [esp + 0x86], 0x41
mov byte [esp + 0x87], 0x54
mov byte [esp + 0x88], 0
mov dword [esi + 0x84], ecx
mov dword [esi + 0x88], ebx
nop
cmp dword [esi + 0x7c], ebp
jne 0x45b7e5
cmp dword [esi + 0x10c], ebp
jne 0x45b7ab
xor eax, eax
mov ecx, esi
call fcn.004579e0
mov ecx, esi
call fcn.00457880
mov dword [esi + 0x10c], eax
mov eax, 4
lea ecx, [esp + 0x84]
lea edx, [esi + 0x11c]
lea ecx, [ecx]
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x45b738
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x45b720
cmp eax, ebp
je 0x45b795
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x45b787
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x45b795
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x45b787
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x45b795
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x45b787
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x45b795
movzx edi, byte [edx]
movzx edx, byte [ecx]
sub edi, edx
je 0x45b795
cmp edi, ebp
mov eax, 1
jg 0x45b797
or eax, 0xffffffff
jmp 0x45b797
xor eax, eax
cmp eax, ebp
jne 0x45b8a4
cmp dword [esi + 0x10c], ebp
je 0x45b6f5
mov ecx, dword [esi + 0xb4]
mov edx, dword [esi + 0x10c]
cmp ecx, edx
mov eax, dword [esi + 0xb0]
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x78], eax
jbe 0x45b7ca
mov dword [esi + 0x7c], edx
mov ebx, dword [esi + 0x7c]
call fcn.00457970
mov eax, dword [esi + 0x7c]
sub dword [esi + 0x10c], eax
mov edi, 8
xor ebp, ebp
lea ebx, [edi - 7]
lea ecx, [esi + 0x78]
push ecx
call fcn.0045fa90
add esp, 4
cmp eax, ebx
je 0x45b8b0
cmp eax, ebp
jne 0x45b8d6
cmp dword [esi + 0x88], ebp
jne 0x45b6e0
mov ecx, str.Extra_compressed_data
call fcn.00449530
or dword [esi + 0x6c], edi
or dword [esi + 0x70], 0x20
mov dword [esi + 0x88], ebp
cmp dword [esi + 0x10c], ebp
jne 0x45b831
cmp dword [esi + 0x7c], ebp
je 0x45b83b
mov ecx, str.Extra_compression_data
call fcn.00449530
lea ecx, [esi + 0x78]
cmp ecx, ebp
je 0x45b888
mov eax, dword [ecx + 0x1c]
cmp eax, ebp
je 0x45b888
mov dword [eax + 0x1c], ebp
mov dword [ecx + 0x14], ebp
mov dword [ecx + 8], ebp
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x30], ebx
lea ecx, [eax + 0x530]
mov dword [eax], ebp
mov dword [eax + 4], ebp
mov dword [eax + 0xc], ebp
mov dword [eax + 0x14], 0x8000
mov dword [eax + 0x20], ebp
mov dword [eax + 0x28], ebp
mov dword [eax + 0x2c], ebp
mov dword [eax + 0x30], ebp
mov dword [eax + 0x38], ebp
mov dword [eax + 0x3c], ebp
mov dword [eax + 0x6c], ecx
mov dword [eax + 0x50], ecx
mov dword [eax + 0x4c], ecx
or dword [esi + 0x6c], edi
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a91d5
add esp, 0x80
ret
mov edi, str.Not_enough_image_data
mov eax, esi
jmp fcn.00449510
cmp dword [esi + 0x88], ebp
je 0x45b80d
cmp dword [esi + 0x7c], ebp
jne 0x45b80d
cmp dword [esi + 0x10c], ebp
je 0x45b817
jmp 0x45b80d
mov eax, dword [esi + 0x90]
cmp eax, ebp
jne 0x45b8e5
mov eax, str.Decompression_Error
mov edi, eax
mov eax, esi
jmp fcn.00449510