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

Disassembly:
sub esp, 0x48
mov eax, dword [0x7dcee0]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x50]
push ebx
mov ebx, dword [esp + 0x58]
push ebp
push esi
mov esi, dword [esp + 0x58]
mov ebp, 0xff
push edi
mov edi, 0x55
mov dword [esp + 0x10], eax
mov byte [esp + 0x4c], 0x49
mov byte [esp + 0x4d], 0x44
mov byte [esp + 0x4e], 0x41
mov byte [esp + 0x4f], 0x54
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], 0x33
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x14], 0x80
mov dword [esp + 0x18], 8
mov dword [esp + 0x1c], 0x88
mov dword [esp + 0x20], 0x22
mov dword [esp + 0x24], 0xaa
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebp
test esi, esi
je 0x598d47
test byte [esi + 0x70], 0x40
jne 0x59898b
push esi
call fcn.0059fcd0
add esp, 4
cmp byte [esi + 0x127], 0
je 0x598a90
test byte [esi + 0x74], 2
je 0x598a90
movzx eax, byte [esi + 0x128]
cmp eax, 5
ja case.default.0x5989b2
jmp dword [eax*4 + 0x598d5c]
test byte [esi + 0xe8], 7
je 0x598a90
test ebx, ebx
je 0x5989d5
push ebp
push ebx
push esi
call fcn.0059f3b0
add esp, 0xc
push esi
call fcn.005a2e80
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0069528d
add esp, 0x48
ret
test byte [esi + 0xe8], 7
jne 0x598a07
cmp dword [esi + 0xcc], 5
jae 0x598a90
test ebx, ebx
je 0x5989d5
push 0xf
jmp 0x5989cb
mov eax, dword [esi + 0xe8]
mov ecx, eax
and cl, 7
cmp cl, 4
je 0x598a90
test ebx, ebx
je 0x5989d5
test al, 4
jmp 0x5989c8
mov eax, 3
test byte [esi + 0xe8], al
jne 0x598a3c
cmp dword [esi + 0xcc], eax
jae 0x598a90
test ebx, ebx
je 0x5989d5
push 0x33
jmp 0x5989cb
mov eax, dword [esi + 0xe8]
mov edx, eax
and dl, 3
cmp dl, 2
je 0x598a90
test ebx, ebx
je 0x5989d5
test al, 2
jmp 0x5989c8
test byte [esi + 0xe8], 1
jne 0x598a75
cmp dword [esi + 0xcc], 2
jae 0x598a90
test ebx, ebx
je 0x5989d5
push edi
jmp 0x5989cb
test byte [esi + 0xe8], 1
je 0x5989d5
test byte [esi + 0x6c], 4
jne 0x598aa4
push str.Invalid_attempt_to_read_row_data
push esi
call fcn.00595910
add esp, 8
mov eax, dword [esi + 0xf0]
mov dword [esi + 0x84], eax
mov al, byte [esi + 0x12d]
cmp al, 8
movzx eax, al
jb 0x598ac9
shr eax, 3
imul eax, dword [esi + 0xe4]
jmp 0x598ad6
imul eax, dword [esi + 0xe4]
add eax, 7
shr eax, 3
mov ebp, dword [esp + 0x4c]
inc eax
mov dword [esi + 0x88], eax
lea edi, [esi + 0x78]
cmp dword [esi + 0x7c], 0
jne 0x598b5e
cmp dword [esi + 0x110], 0
jne 0x598b29
push 0
push esi
call fcn.005a0090
push esi
call fcn.0059ffe0
add esp, 0xc
mov dword [esi + 0x110], eax
cmp dword [esi + 0x120], ebp
je 0x598b20
push str.Not_enough_image_data
push esi
call fcn.00595910
add esp, 8
cmp dword [esi + 0x110], 0
je 0x598af3
mov eax, dword [esi + 0xb4]
mov ecx, dword [esi + 0x110]
mov edx, dword [esi + 0xb0]
mov dword [esi + 0x7c], eax
mov dword [edi], edx
cmp eax, ecx
jbe 0x598b47
mov dword [esi + 0x7c], ecx
mov ecx, dword [esi + 0x7c]
push ecx
push edx
push esi
call fcn.0059efa0
mov edx, dword [esi + 0x7c]
add esp, 0xc
sub dword [esi + 0x110], edx
push 1
push edi
call fcn.00611870
add esp, 8
cmp eax, 1
je 0x598b9a
test eax, eax
je 0x598b8b
mov eax, dword [esi + 0x90]
test eax, eax
jne 0x598b81
mov eax, str.Decompression_error
push eax
push esi
call fcn.00595910
add esp, 8
cmp dword [esi + 0x88], 0
jne 0x598ae4
jmp 0x598bc8
cmp dword [esi + 0x88], 0
jne 0x598bb2
cmp dword [esi + 0x7c], 0
jne 0x598bb2
cmp dword [esi + 0x110], 0
je 0x598bc0
push str.Extra_compressed_data
push esi
call fcn.00595910
add esp, 8
or dword [esi + 0x6c], 8
or dword [esi + 0x70], 0x20
movzx eax, byte [esi + 0x12a]
mov ecx, dword [esi + 0xe4]
mov dl, byte [esi + 0x12e]
mov byte [esi + 0x10c], al
movzx eax, byte [esi + 0x12b]
mov byte [esi + 0x10d], al
mov al, byte [esi + 0x12d]
lea edi, [esi + 0x104]
mov byte [esi + 0x10f], al
cmp al, 8
mov dword [edi], ecx
mov byte [esi + 0x10e], dl
movzx eax, al
jb 0x598c17
shr eax, 3
imul eax, ecx
jmp 0x598c20
imul eax, ecx
add eax, 7
shr eax, 3
mov dword [esi + 0x108], eax
mov eax, dword [esi + 0xf0]
mov cl, byte [eax]
test cl, cl
je 0x598c4a
mov edx, dword [esi + 0xec]
movzx ecx, cl
push ecx
inc edx
push edx
inc eax
push eax
push edi
push esi
call fcn.0059fb00
add esp, 0x14
mov eax, dword [esi + 0xdc]
mov ecx, dword [esi + 0xf0]
mov edx, dword [esi + 0xec]
inc eax
push eax
push ecx
push edx
call fcn.00695f10
add esp, 0xc
test byte [esi + 0x21c], 4
je 0x598c8b
cmp byte [esi + 0x224], 0x40
jne 0x598c8b
mov eax, dword [esi + 0xf0]
inc eax
push eax
push edi
call fcn.0059db10
add esp, 8
cmp dword [esi + 0x74], 0
jne 0x598c9a
test dword [esi + 0x70], 0x400000
je 0x598ca3
push esi
call fcn.0059ea10
add esp, 4
cmp byte [esi + 0x127], 0
je 0x598cf5
test byte [esi + 0x74], 2
je 0x598cf5
cmp byte [esi + 0x128], 6
jae 0x598cc4
push esi
call fcn.0059f6a0
add esp, 4
test ebx, ebx
je 0x598cde
movzx ecx, byte [esi + 0x128]
mov edx, dword [esp + ecx*4 + 0x30]
push edx
push ebx
push esi
call fcn.0059f3b0
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x598d1f
movzx ecx, byte [esi + 0x128]
mov edx, dword [esp + ecx*4 + 0x14]
push edx
push eax
jmp 0x598d16
mov eax, dword [esp + 0x10]
test eax, eax
je 0x598d0c
push 0xff
push eax
push esi
call fcn.0059f3b0
add esp, 0xc
test ebx, ebx
je 0x598d1f
push 0xff
push ebx
push esi
call fcn.0059f3b0
add esp, 0xc
push esi
call fcn.005a2e80
mov eax, dword [esi + 0x19c]
add esp, 4
test eax, eax
je 0x598d47
movzx ecx, byte [esi + 0x128]
mov edx, dword [esi + 0xe8]
push ecx
push edx
push esi
call eax
add esp, 0xc
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0069528d
add esp, 0x48
ret