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

Disassembly:
sub esp, 0x80
mov eax, dword [0x7dcee0]
xor eax, esp
mov dword [esp + 0x7c], eax
mov eax, 2
push ebp
xor ebp, ebp
mov edx, 1
push esi
mov esi, dword [esp + 0x8c]
add dword [esi + 0xe8], edx
mov ecx, 4
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0xe8]
push edi
mov edi, 8
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
cmp eax, dword [esi + 0xd4]
jb 0x5a3148
cmp byte [esi + 0x127], 0
push ebx
je 0x5a2fe1
mov eax, dword [esi + 0xdc]
mov ecx, dword [esi + 0xec]
add eax, edx
push eax
push ebp
push ecx
mov dword [esi + 0xe8], ebp
call fcn.00695690
add esp, 0xc
jmp 0x5a2f75
mov edi, 8
inc byte [esi + 0x128]
mov bl, byte [esi + 0x128]
cmp bl, 7
jae 0x5a2fe1
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 edi, eax
mov dword [esi + 0xe4], edi
jne 0x5a2fd3
mov eax, dword [esi + 0xd0]
sub eax, dword [esp + ecx + 0x68]
mov ebp, dword [esp + ecx + 0x4c]
lea eax, [eax + ebp - 1]
xor edx, edx
div ebp
xor ebp, ebp
mov dword [esi + 0xd4], eax
test edi, edi
je 0x5a2f70
cmp bl, 7
jb 0x5a3147
mov edi, 8
test byte [esi + 0x70], 0x20
jne 0x5a311d
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 dword [esi + 0x84], ecx
mov dword [esi + 0x88], 1
nop
cmp dword [esi + 0x7c], ebp
jne 0x5a30af
cmp dword [esi + 0x110], ebp
jne 0x5a306c
push ebp
push esi
call fcn.005a0090
push esi
call fcn.0059ffe0
mov edx, dword [esp + 0x90]
add esp, 0xc
mov dword [esi + 0x110], eax
cmp dword [esi + 0x120], edx
je 0x5a3064
push str.Not_enough_image_data
push esi
call fcn.00595910
add esp, 8
cmp dword [esi + 0x110], ebp
je 0x5a3031
mov eax, dword [esi + 0xb4]
mov ecx, dword [esi + 0x110]
mov edi, dword [esi + 0xb0]
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], edi
cmp eax, ecx
jbe 0x5a308b
mov dword [esi + 0x7c], ecx
mov ebx, dword [esi + 0x7c]
push ebx
push edi
push esi
call fcn.00599840
push ebx
push edi
push esi
call fcn.00594c10
mov eax, dword [esi + 0x7c]
add esp, 0x18
sub dword [esi + 0x110], eax
mov edi, 8
lea eax, [esi + 0x78]
push 1
push eax
call fcn.00611870
add esp, 8
cmp eax, 1
je 0x5a30ed
cmp eax, ebp
je 0x5a30df
mov eax, dword [esi + 0x90]
cmp eax, ebp
jne 0x5a30d5
mov eax, str.Decompression_Error
push eax
push esi
call fcn.00595910
add esp, 8
cmp dword [esi + 0x88], ebp
jne 0x5a3020
jmp 0x5a3102
cmp dword [esi + 0x88], ebp
je 0x5a3102
cmp dword [esi + 0x7c], ebp
jne 0x5a3102
cmp dword [esi + 0x110], ebp
je 0x5a3110
push str.Extra_compressed_data
push esi
call fcn.00595940
add esp, 8
or dword [esi + 0x6c], edi
or dword [esi + 0x70], 0x20
mov dword [esi + 0x88], ebp
cmp dword [esi + 0x110], ebp
jne 0x5a312a
cmp dword [esi + 0x7c], ebp
je 0x5a3138
push str.Extra_compression_data
push esi
call fcn.00595940
add esp, 8
lea ecx, [esi + 0x78]
push ecx
call fcn.006115c0
add esp, 4
or dword [esi + 0x6c], edi
pop ebx
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0069528d
add esp, 0x80
ret