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

Disassembly:
sub esp, 0x4fc
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x4f8], eax
mov eax, dword [esp + 0x504]
push ebp
mov ebp, dword [esp + 0x504]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x74]
push edi
xor edi, edi
mov dword [esp + 8], edi
mov dword [esp + 0x14], edi
test al, 1
jne 0x5b3fd4
push str.missing_IHDR
push ebp
call fcn.005b18b0
test al, 6
je 0x5b400b
mov ecx, dword [esp + 0x510]
push ecx
push ebp
call fcn.005b33c0
push str.out_of_place
push ebp
call fcn.005b18f0
add esp, 0x10
pop edi
pop ebp
mov ecx, dword [esp + 0x4f8]
xor ecx, esp
call fcn.00585b7b
add esp, 0x4fc
ret
push esi
mov esi, dword [esp + 0x514]
cmp esi, 0xe
jae 0x5b4045
push esi
push ebp
call fcn.005b33c0
push str.too_short
push ebp
call fcn.005b18f0
add esp, 0x10
pop esi
pop edi
pop ebp
mov ecx, dword [esp + 0x4f8]
xor ecx, esp
call fcn.00585b7b
add esp, 0x4fc
ret
movzx eax, word [ebp + 0x312]
test eax, 0x8000
je 0x5b4075
push esi
push ebp
call fcn.005b33c0
add esp, 8
pop esi
pop edi
pop ebp
mov ecx, dword [esp + 0x4f8]
xor ecx, esp
call fcn.00585b7b
add esp, 0x4fc
ret
push ebx
test al, 4
jne 0x5b4503
mov ebx, 0x51
cmp esi, ebx
jae 0x5b4089
mov ebx, esi
push ebx
lea edx, [esp + 0x34]
push edx
push ebp
call fcn.005b1b20
sub esi, ebx
add esp, 0xc
mov dword [esp + 0x518], esi
cmp esi, 0xb
jae 0x5b40c0
push esi
push ebp
call fcn.005b33c0
push str.too_short
push ebp
call fcn.005b18f0
add esp, 0x10
jmp 0x5b44ca
mov ecx, 3
lea esi, [esp + 0x32]
sub esi, ecx
lea eax, [ecx - 2]
lea edx, [esp + 0x30]
mov dword [esp + 0x18], esi
cmp edi, ebx
jae 0x5b4136
cmp byte [edx + eax - 1], 0
je 0x5b4136
cmp eax, ebx
jae 0x5b4126
cmp byte [esp + eax + 0x30], 0
je 0x5b4126
lea esi, [ecx - 1]
cmp esi, ebx
jae 0x5b4129
mov esi, dword [esp + 0x18]
cmp byte [esi + ecx], 0
je 0x5b4129
cmp ecx, ebx
jae 0x5b412e
cmp byte [esp + ecx + 0x30], 0
je 0x5b412e
lea esi, [edi + 4]
cmp esi, ebx
jae 0x5b4133
cmp byte [esp + edi + 0x34], 0
je 0x5b4133
add eax, 5
add edi, 5
add ecx, 5
cmp eax, 0x51
jb 0x5b40d6
jmp 0x5b4136
inc edi
jmp 0x5b4136
add edi, 2
jmp 0x5b4136
add edi, 3
jmp 0x5b4136
add edi, 4
lea eax, [edi - 1]
cmp eax, 0x4e
ja 0x5b44f9
lea eax, [edi + 1]
mov dword [esp + 0x2c], eax
cmp eax, ebx
jae 0x5b44ef
cmp byte [esp + edi + 0x31], 0
jne 0x5b44ef
push 0x69434350
mov esi, ebp
call fcn.005b1c70
add esp, 4
test eax, eax
jne 0x5b44e3
push 0x83
push eax
lea ecx, [esp + 0x8d]
push ecx
mov byte [esp + 0x90], al
call fcn.00585730
push 0
lea eax, [esp + 0x528]
push eax
sub ebx, edi
sub ebx, 2
lea ecx, [esp + 0x11c]
push 0x400
lea edx, [esp + edi + 0x4a]
mov dword [ebp + 0x88], ebx
push ecx
lea ebx, [esp + 0x30]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x30], 0x84
mov dword [ebp + 0x84], edx
call fcn.005b2180
add esp, 0x1c
cmp dword [esp + 0x14], 0
jne 0x5b4472
movzx ebx, byte [esp + 0x84]
movzx edx, byte [esp + 0x85]
movzx eax, byte [esp + 0x86]
movzx ecx, byte [esp + 0x87]
shl ebx, 8
add ebx, edx
shl ebx, 8
add ebx, eax
shl ebx, 8
add ebx, ecx
push ebx
lea edx, [esp + 0x34]
push edx
lea esi, [ebp + 0x2c8]
push esi
push ebp
mov dword [esp + 0x28], ebx
call fcn.005a9030
add esp, 0x10
test eax, eax
je 0x5b447c
movzx eax, byte [ebp + 0x14f]
push eax
lea ecx, [esp + 0x88]
push ecx
push ebx
lea edx, [esp + 0x3c]
push edx
push esi
push ebp
call fcn.005a90a0
add esp, 0x18
test eax, eax
je 0x5b447c
movzx eax, byte [esp + 0x104]
movzx ecx, byte [esp + 0x105]
movzx edx, byte [esp + 0x106]
shl eax, 8
add eax, ecx
movzx ecx, byte [esp + 0x107]
shl eax, 8
add eax, edx
shl eax, 8
add eax, ecx
push 2
mov esi, ebp
mov dword [esp + 0x28], eax
call fcn.005b1be0
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x5b4468
mov edi, eax
mov ecx, 0x21
lea esi, [esp + 0x84]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x24]
push 0
lea edx, [esp + 0x51c]
lea edi, [edi + edi*2]
push edx
lea ecx, [eax + 0x84]
add edi, edi
lea eax, [esp + 0x110]
push 0x400
add edi, edi
push eax
lea ebx, [esp + 0x24]
mov esi, ebp
mov dword [esp + 0x24], edi
call fcn.005b2180
add esp, 0x10
cmp dword [esp + 0x14], 0
jne 0x5b445c
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
push esi
push ebx
lea ecx, [esp + 0x38]
push ecx
lea eax, [ebp + 0x2c8]
push eax
push ebp
call fcn.005a9410
add esp, 0x14
test eax, eax
je 0x5b447c
mov eax, dword [esp + 0x24]
lea edx, [eax + eax*2 + 0x21]
push 1
lea eax, [esp + 0x51c]
sub ebx, edi
push eax
lea ecx, [esi + edx*4]
sub ebx, 0x84
lea edx, [esp + 0x110]
mov dword [esp + 0x1c], ebx
push 0x400
push edx
lea ebx, [esp + 0x24]
mov esi, ebp
call fcn.005b2180
mov esi, dword [esp + 0x528]
add esp, 0x10
test esi, esi
je 0x5b437c
test dword [ebp + 0x78], 0x100000
jne 0x5b437c
mov dword [esp + 0x10], str.extra_compressed_data
jmp 0x5b447c
cmp dword [esp + 0x14], 0
jne 0x5b4450
test esi, esi
je 0x5b4399
push str.extra_compressed_data
push ebp
call fcn.005b1750
add esp, 8
push esi
push ebp
call fcn.005b33c0
mov eax, dword [ebp + 0xb4]
mov ebx, dword [esp + 0x28]
push eax
push ebx
lea eax, [ebp + 0x2c8]
push eax
push ebp
mov dword [esp + 0x34], 1
call fcn.005aadc0
mov esi, dword [esp + 0x40]
add esp, 0x18
test esi, esi
je 0x5b4444
push 0
push 0x10
push esi
push ebp
call fcn.005a85d0
mov edi, dword [esp + 0x3c]
push edi
push ebp
call fcn.005b66b0
add esp, 0x18
mov dword [esi + 0x74], eax
test eax, eax
je 0x5b441f
push edi
lea ecx, [esp + 0x34]
push ecx
push eax
call fcn.00583e00
mov edx, dword [esp + 0x24]
or dword [esi + 0xf4], 0x10
add esp, 0xc
or dword [esi + 8], 0x1000
mov dword [esi + 0x7c], edx
mov dword [esi + 0x78], ebx
mov dword [ebp + 0x2a4], 0
jmp 0x5b4433
mov eax, 0x8000
or word [ebp + 0x312], ax
mov dword [esp + 0x10], str.out_of_memory
push esi
push ebp
call fcn.005a8c30
add esp, 8
cmp dword [esp + 0x10], 0
jne 0x5b447c
mov dword [ebp + 0x80], 0
jmp 0x5b44ca
mov ecx, dword [ebp + 0x9c]
mov dword [esp + 0x10], ecx
jmp 0x5b447c
mov edx, dword [ebp + 0x9c]
mov dword [esp + 0x10], edx
jmp 0x5b447c
mov dword [esp + 0x10], str.out_of_memory
jmp 0x5b447c
mov eax, dword [ebp + 0x9c]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x1c], 0
mov dword [ebp + 0x80], 0
jne 0x5b449e
mov esi, dword [esp + 0x518]
push esi
push ebp
call fcn.005b33c0
add esp, 8
mov eax, dword [esp + 0x28]
push eax
mov edx, 0x8000
or word [ebp + 0x312], dx
push ebp
call fcn.005a8c30
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x5b44ca
push eax
push ebp
call fcn.005b18f0
add esp, 8
mov ecx, dword [esp + 0x508]
pop ebx
pop esi
pop edi
pop ebp
xor ecx, esp
call fcn.00585b7b
add esp, 0x4fc
ret
mov ecx, dword [ebp + 0x9c]
mov dword [esp + 0x10], ecx
jmp 0x5b448d
mov dword [esp + 0x10], str.bad_compression_method
jmp 0x5b448d
mov dword [esp + 0x10], str.bad_keyword
jmp 0x5b448d
mov dword [esp + 0x10], str.too_many_profiles
jmp 0x5b4494