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

Disassembly:
push 0xffffffffffffffff
push 0x1018df7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
mov ebx, ecx
mov ecx, dword [esp + 0x64]
push edi
mov edi, 1
push 0x18
shl edi, cl
mov dword [esp + 0x38], edi
call fcn.1005473e
add esp, 4
mov dword [esp + 0x38], eax
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x4c], ebp
je 0x100c887f
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
push ecx
push edx
push ebp
mov ecx, eax
call fcn.100c5b00
mov ecx, eax
mov dword [esp + 0x60], ecx
jmp 0x100c8885
mov dword [esp + 0x60], ebp
mov ecx, ebp
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x4c], 0xffffffff
cmp eax, ebp
je 0x100c889c
call fcn.100c5ed0
jmp 0x100c88a1
call fcn.100c5eb0
mov esi, dword [esp + 0x54]
cmp esi, ebp
je 0x100c88c3
mov eax, dword [esp + 0x98]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, dword [ebx + 0x90]
call fcn.100c53d0
jmp 0x100c88d4
mov edx, dword [ebx + 0x68]
mov ecx, dword [ebx + 0x4c]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.100e6b90
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x64]
imul ecx, edi
neg ecx
test eax, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], ebp
jbe 0x100c8d19
jmp 0x100c88ff
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x54]
test esi, esi
je 0x100c891d
mov edx, dword [esp + 0x98]
mov ecx, dword [ebx + 0x90]
lea eax, [esp + 0x14]
push edx
push eax
call fcn.100c53d0
jmp 0x100c892e
mov ecx, dword [ebx + 0x68]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [ebx + 0x4c]
push edx
call fcn.100e6b90
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
imul eax, edi
add ecx, eax
test esi, esi
mov dword [esp + 0x10], ecx
je 0x100c895d
mov ecx, dword [esp + 0x90]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [ebx + 0x90]
push edx
call fcn.100c53d0
jmp 0x100c896e
mov eax, dword [ebx + 0x70]
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, dword [ebx + 0x4c]
call fcn.100e6b90
add ebp, dword [esp + 0x18]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x5c], ebp
cmp edi, 1
jne 0x100c8989
mov dword [esp + 0x14], 0
jmp 0x100c89b4
test esi, esi
je 0x100c89a3
mov edx, dword [esp + 0x68]
mov ecx, dword [ebx + 0x90]
push edx
call fcn.100c54c0
mov dword [esp + 0x14], eax
jmp 0x100c89b4
mov eax, dword [ebx + 0x6c]
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, dword [ebx + 0x4c]
call fcn.100e6b90
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
test esi, esi
lea edi, [eax + edx]
je 0x100c89f4
mov eax, dword [esp + 0x70]
test eax, eax
je 0x100c89e2
lea ecx, [esp + 0x3c]
push eax
push ecx
mov ecx, dword [ebx + 0x90]
call fcn.100c53d0
mov esi, dword [esp + 0x3c]
jmp 0x100c8a0a
mov edx, dword [esp + 0x74]
mov ecx, dword [ebx + 0x90]
push edx
call fcn.100c54c0
jmp 0x100c8a08
mov eax, dword [ebx + 0x8c]
mov ecx, dword [esp + 0x74]
push eax
push ecx
mov ecx, dword [ebx + 0x4c]
call fcn.100e6d50
mov esi, eax
cmp esi, dword [esp + 0x6c]
jb 0x100c8a2a
mov edx, dword [ebx]
push str.Invalid_symbol_number_in_JBIG2_text_region
mov ecx, ebx
call dword [edx + 0x20]
push eax
call fcn.100912b0
add esp, 8
jmp 0x100c8ca5
mov eax, dword [esp + 0x58]
test eax, eax
je 0x100c8b12
mov eax, dword [esp + 0x54]
test eax, eax
je 0x100c8af9
mov ecx, dword [ebx + 0x90]
call fcn.100c5570
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x100c8b1a
mov eax, dword [esp + 0x54]
test eax, eax
je 0x100c8b65
mov edx, dword [esp + 0x9c]
mov ecx, dword [ebx + 0x90]
lea eax, [esp + 0x24]
push edx
push eax
call fcn.100c53d0
mov ecx, dword [esp + 0xa0]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [ebx + 0x90]
push edx
call fcn.100c53d0
mov eax, dword [esp + 0xa4]
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, dword [ebx + 0x90]
call fcn.100c53d0
mov edx, dword [esp + 0xa8]
mov ecx, dword [ebx + 0x90]
lea eax, [esp + 0x30]
push edx
push eax
call fcn.100c53d0
mov ecx, dword [esp + 0xac]
lea edx, [esp + 0x40]
push ecx
mov ecx, dword [ebx + 0x90]
push edx
call fcn.100c53d0
mov ecx, dword [ebx + 0x90]
call fcn.100c53c0
mov ecx, dword [ebx + 0x4c]
call fcn.100e68a0
jmp 0x100c8baf
mov eax, dword [ebx + 0x88]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, dword [ebx + 0x4c]
call fcn.100e6b90
jmp 0x100c8a51
mov dword [esp + 0x1c], 0
mov edx, dword [esp + 0x78]
mov esi, dword [edx + esi*4]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x84]
dec eax
dec ecx
mov dword [esp + 0x7c], eax
test edx, edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x5c], ecx
je 0x100c8c5f
cmp edx, 3
ja case.default.0x100c8b50
jmp dword [edx*4 + 0x100c8d34]
mov eax, dword [esp + 0x80]
push eax
push ebp
jmp 0x100c8c4c
mov eax, dword [ebx + 0x80]
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, dword [ebx + 0x4c]
call fcn.100e6b90
mov edx, dword [ebx + 0x84]
mov ecx, dword [ebx + 0x4c]
lea eax, [esp + 0x20]
push edx
push eax
call fcn.100e6b90
mov ecx, dword [ebx + 0x78]
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [ebx + 0x4c]
push edx
call fcn.100e6b90
mov eax, dword [ebx + 0x7c]
lea ecx, [esp + 0x30]
push eax
push ecx
mov ecx, dword [ebx + 0x4c]
call fcn.100e6b90
mov eax, dword [esp + 0x24]
test eax, eax
jge 0x100c8bb8
dec eax
cdq
sub eax, edx
mov edx, dword [esp + 0x2c]
sar eax, 1
add eax, edx
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x20]
test eax, eax
jge 0x100c8bd0
dec eax
mov ebp, dword [esp + 0xb8]
mov ecx, dword [esp + 0x30]
cdq
sub eax, edx
mov edx, dword [esp + 0x78]
sar eax, 1
push ebp
mov ebp, dword [esp + 0xb8]
add eax, ecx
mov ecx, dword [edx + esi*4]
push ebp
push eax
mov eax, dword [esp + 0x88]
mov edx, dword [ecx + 0xc]
mov esi, dword [ecx + 8]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0xc4]
push 0
push ecx
mov ecx, dword [esp + 0x40]
add edx, eax
add esi, ecx
push edx
push esi
mov ecx, ebx
call fcn.100cb280
mov ebp, dword [esp + 0x5c]
mov esi, eax
jmp 0x100c8b21
mov ecx, dword [esp + 0x80]
push ecx
push ebp
jmp 0x100c8c4c
mov edx, dword [esp + 0x80]
push edx
jmp 0x100c8c49
mov ecx, dword [esp + 0x80]
push ecx
push ebp
sub edi, eax
mov ecx, dword [esp + 0x68]
push edi
push esi
call fcn.100c5f20
mov ecx, dword [esp + 0x5c]
add ebp, ecx
jmp 0x100c8c91
cmp edx, 3
ja case.default.0x100c8c64
jmp dword [edx*4 + 0x100c8d44]
mov edx, dword [esp + 0x80]
sub edi, ecx
push edx
jmp 0x100c8c7f
mov eax, dword [esp + 0x80]
push eax
mov ecx, dword [esp + 0x64]
push edi
push ebp
push esi
call fcn.100c5f20
mov eax, dword [esp + 0x7c]
add ebp, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x100c8ca5
test esi, esi
je 0x100c8ca5
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x54]
inc ecx
test eax, eax
mov dword [esp + 0x28], ecx
je 0x100c8cd4
mov eax, dword [esp + 0x94]
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, dword [ebx + 0x90]
call fcn.100c53d0
test eax, eax
je 0x100c8d09
jmp 0x100c8ce9
mov edx, dword [ebx + 0x74]
mov ecx, dword [ebx + 0x4c]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.100e6b90
test eax, eax
je 0x100c8d09
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x8c]
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x54]
add ecx, edx
add ebp, ecx
mov dword [esp + 0x5c], ebp
jmp 0x100c897a
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x64]
cmp eax, ecx
jb 0x100c88f3
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 0x68