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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x100363f9
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x100363f8
push esi
push ebx
call fcn.10035ef0
add esp, 8
test byte [esi + 8], 8
je 0x1003612f
movzx eax, word [esi + 0x14]
mov ecx, dword [esi + 0x10]
push eax
push ecx
push ebx
call fcn.1003cad0
add esp, 0xc
jmp 0x10036143
cmp byte [esi + 0x19], 3
jne 0x10036143
push str.Valid_palette_required_for_paletted_images
push ebx
call fcn.10035010
add esp, 8
test byte [esi + 8], 0x10
push edi
je 0x10036194
test dword [ebx + 0x74], 0x80000
je 0x10036179
cmp byte [esi + 0x19], 3
jne 0x10036179
xor edx, edx
xor eax, eax
cmp dx, word [esi + 0x16]
jae 0x10036179
mov edi, dword [esi + 0x4c]
or dl, 0xff
sub dl, byte [edi + eax]
inc eax
mov byte [edi + eax - 1], dl
movzx ecx, word [esi + 0x16]
cmp eax, ecx
jl 0x10036163
movzx edx, byte [esi + 0x19]
movzx eax, word [esi + 0x16]
push edx
mov edx, dword [esi + 0x4c]
push eax
lea ecx, [esi + 0x50]
push ecx
push edx
push ebx
call fcn.1003e9a0
add esp, 0x14
test byte [esi + 8], 0x20
je 0x100361ac
movzx eax, byte [esi + 0x19]
push eax
lea ecx, [esi + 0x5a]
push ecx
push ebx
call fcn.1003eb20
add esp, 0xc
test byte [esi + 8], 0x40
je 0x100361c4
movzx edx, word [esi + 0x14]
mov eax, dword [esi + 0x7c]
push edx
push eax
push ebx
call fcn.1003cc00
add esp, 0xc
test dword [esi + 8], 0x100
je 0x100361e3
movzx ecx, byte [esi + 0x6c]
mov edx, dword [esi + 0x68]
mov eax, dword [esi + 0x64]
push ecx
push edx
push eax
push ebx
call fcn.1003ec90
add esp, 0x10
test dword [esi + 8], 0x400
je 0x10036228
mov ecx, dword [esi + 0xb0]
mov edx, dword [esi + 0xac]
movzx eax, byte [esi + 0xb5]
push ecx
movzx ecx, byte [esi + 0xb4]
push edx
mov edx, dword [esi + 0xa8]
push eax
mov eax, dword [esi + 0xa4]
push ecx
mov ecx, dword [esi + 0xa0]
push edx
push eax
push ecx
push ebx
call fcn.1003d360
add esp, 0x20
test dword [esi + 8], 0x4000
je 0x10036258
fld qword [esi + 0xe8]
movzx edx, byte [esi + 0xdc]
sub esp, 0x10
fstp qword [esp + 8]
fld qword [esi + 0xe0]
fstp qword [esp]
push edx
push ebx
call fcn.1003ed80
add esp, 0x18
test byte [esi + 8], 0x80
je 0x10036274
movzx eax, byte [esi + 0x78]
mov ecx, dword [esi + 0x74]
mov edx, dword [esi + 0x70]
push eax
push ecx
push edx
push ebx
call fcn.1003ee40
add esp, 0x10
mov edi, 0x200
test dword [esi + 8], edi
je 0x1003628e
lea eax, [esi + 0x3c]
push eax
push ebx
call fcn.1003ef30
add esp, 8
or dword [ebx + 0x6c], edi
test dword [esi + 8], 0x2000
je 0x100362c4
xor edi, edi
cmp dword [esi + 0xd8], edi
jle 0x100362c4
mov dword [ebp + 8], edi
mov ecx, dword [esi + 0xd4]
add ecx, dword [ebp + 8]
push ecx
push ebx
call fcn.1003e3e0
add dword [ebp + 8], 0x10
inc edi
add esp, 8
cmp edi, dword [esi + 0xd8]
jl 0x100362a4
xor edi, edi
mov dword [ebp + 8], edi
cmp dword [esi + 0x30], edi
jle 0x10036369
mov edx, dword [esi + 0x38]
mov eax, dword [edi + edx]
test eax, eax
jle 0x10036308
mov ecx, dword [edi + edx + 8]
lea eax, [edi + edx]
mov edx, dword [eax + 0x18]
push ecx
mov ecx, dword [eax + 0x14]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
push ebx
call fcn.1003d150
mov ecx, dword [esi + 0x38]
add esp, 0x18
mov dword [edi + ecx], 0xfffffffd
jmp 0x10036356
jne 0x10036330
mov ecx, dword [edi + edx]
lea eax, [edi + edx]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
push ecx
push 0
push edx
push eax
push ebx
call fcn.1003d010
mov ecx, dword [esi + 0x38]
add esp, 0x14
mov dword [edi + ecx], 0xfffffffe
jmp 0x10036356
cmp eax, 0xffffffff
jne 0x10036356
mov ecx, dword [edi + edx + 8]
lea eax, [edi + edx]
mov edx, dword [eax + 4]
push 0
push ecx
push edx
push ebx
call fcn.1003cef0
mov eax, dword [esi + 0x38]
add esp, 0x10
mov dword [edi + eax], 0xfffffffd
mov eax, dword [ebp + 8]
inc eax
add edi, 0x1c
mov dword [ebp + 8], eax
cmp eax, dword [esi + 0x30]
jl 0x100362d2
mov eax, dword [esi + 0xc0]
test eax, eax
je 0x100363f7
mov ecx, dword [esi + 0xbc]
lea edx, [eax + eax*4]
lea eax, [ecx + edx*4]
cmp ecx, eax
jae 0x100363f7
lea edi, [ecx + 0x10]
lea ebx, [ebx]
lea eax, [edi - 0x10]
push eax
push ebx
call fcn.10035910
add esp, 8
cmp eax, 1
je 0x100363db
mov cl, byte [edi]
test cl, cl
je 0x100363db
test cl, 2
je 0x100363db
test cl, 4
jne 0x100363db
test byte [edi - 0xd], 0x20
jne 0x100363c6
cmp eax, 3
je 0x100363c6
test dword [ebx + 0x70], 0x10000
je 0x100363db
mov ecx, dword [edi - 4]
mov edx, dword [edi - 8]
push ecx
push edx
lea eax, [edi - 0x10]
push eax
push ebx
call fcn.1003da70
add esp, 0x10
mov eax, dword [esi + 0xc0]
mov ecx, dword [esi + 0xbc]
lea eax, [eax + eax*4]
add edi, 0x14
lea edx, [ecx + eax*4]
lea eax, [edi - 0x10]
cmp eax, edx
jb 0x10036390
pop edi
pop esi
pop ebx
pop ebp
ret