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

Disassembly:
push 0x3c
mov eax, 0x10087641
call fcn.10060451
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
lea ecx, [esi + 0x3c]
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [ebp - 0x14], ecx
call sym.JP2KLib.dll_public:_void___thiscall_IJP2KException::ClearErrState_void_
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push 1
push 0x40
mov dword [esi + 0xf0], edi
mov dword [esi + 0xec], eax
call fcn.1005993f
pop ecx
pop ecx
push 1
push 1
push dword [ebp + 0x14]
mov ecx, eax
push edi
push 1
push ebx
push ebx
mov dword [esi + 0xe8], eax
call sym.JP2KLib.dll_public:_int___thiscall_JP2KCodeStm::InitJP2KCodeStm_unsigned_long_long_unsigned___int64___int__void___struct_JP2KStreamProcsEx___enum_JP2KStmOpenMode__int_
mov edi, dword [ebp + 8]
push edi
mov byte [esi + 7], 1
mov dword [esi + 0x138], ebx
mov dword [esi + 0x13c], ebx
mov byte [esi + 0x141], bl
mov byte [esi + 0x140], bl
mov dword [esi + 0x64], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x128], ebx
mov dword [esi + 0x2c], ebx
call sym.JP2KLib.dll_JP2KEncOptGetGeomParams
mov dword [esi + 0x14], eax
mov dword [esi + 0x24], edi
cmp dword [edi + 0x90], 5
pop ecx
jne 0x10046eff
cmp dword [edi + 0x20], ebx
je 0x10046eff
mov dword [edi + 0x28], 2
mov edi, dword [ebp + 0x18]
mov eax, dword [edi + 4]
mov dword [esi + 0x108], eax
mov dword [esi + 0x110], ebx
cmp dword [edi], ebx
je 0x10046f2a
push 1
push 0x10
call fcn.1005993f
pop ecx
mov dword [esi + 0x110], eax
pop ecx
mov ecx, dword [edi]
mov dword [eax], ecx
push 1
push 0x1c
call fcn.1005993f
cmp eax, ebx
pop ecx
pop ecx
mov dword [esi + 0x10c], eax
jne 0x10046f52
mov dword [ebp - 0x38], 8
mov dword [ebp - 0x34], 0x124
jmp 0x100476b1
mov edx, dword [esi + 0x14]
mov ecx, dword [edx + 8]
push dword [ecx]
mov ecx, dword [esi + 0x24]
push dword [ecx + 0x34]
mov ecx, eax
push edx
push dword [edi + 4]
call fcn.10053e51
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx + 4]
mov dword [esi + 8], eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x5c], ebx
mov eax, dword [ecx + 0x34]
imul eax, dword [ecx + 0x38]
mov dword [esi + 0xc], eax
mov eax, dword [ecx + 0x34]
imul eax, dword [ecx + 0x38]
imul eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x24]
cmp edx, eax
mov dword [ebp + 0x18], eax
jg 0x10046fa5
mov dword [ebp + 0x18], edx
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0x18]
mov edx, dword [ecx + 0x28]
cmp edx, eax
mov dword [ebp + 8], eax
jg 0x10046fb8
mov dword [ebp + 8], edx
call fcn.1003a99f
test al, al
jne 0x100476a3
mov ecx, dword [esi + 0xe8]
call sym.JP2KLib.dll_public:_bool___thiscall_JP2KCodeStm::IsWritable_void_
test al, al
je 0x100476a3
push ebx
push ebx
mov edi, 0x1009ff90
push ebx
mov ecx, edi
call fcn.10053390
mov byte [0x1009ffa8], bl
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x90], 5
je 0x10047077
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 8]
push dword [ebp + 0x14]
xor ecx, ecx
cmp dword [eax], 0x10
push dword [ebp + 0x10]
setne cl
push 0xc00000
mov dword [ebp + 0xc], 0x500000
mov dword [ebp - 4], ebx
dec ecx
and ecx, 0x100000
add ecx, 0x200000
mov dword [ebp - 0x14], ecx
mov ecx, edi
call fcn.10053390
cmp byte [0x1009ffa8], bl
jne 0x10047042
mov dword [ebp + 0xc], 0xa00000
push dword [ebp - 0x14]
mov ecx, edi
push 0x2800
push 2
call fcn.10053626
push dword [ebp + 0xc]
mov ecx, edi
push 0x2800
push 5
call fcn.10053626
push 0x200000
push 0x2800
push 6
mov ecx, edi
call fcn.10053626
or dword [ebp - 4], 0xffffffff
xor edi, edi
inc edi
push edi
push 0x30
call fcn.1005993f
push edi
push 0x30
mov dword [esi + 0x60], eax
call fcn.1005993f
push edi
push 0x30
mov dword [esi + 0x64], eax
call fcn.1005993f
push edi
push 0x30
mov dword [esi + 0x6c], eax
call fcn.1005993f
add esp, 0x20
cmp dword [esi + 0x60], ebx
mov dword [ebp + 0x10], eax
mov dword [esi + 0x70], eax
je 0x1004750d
cmp dword [esi + 0x64], ebx
je 0x1004750d
cmp dword [esi + 0x6c], ebx
je 0x1004750d
cmp eax, ebx
je 0x1004750d
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0xcc]
mov edx, edi
shl edx, cl
mov ecx, dword [eax + 0xc8]
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 4]
imul eax, dword [ebp + 8]
imul eax, dword [ebp + 0x18]
shl edi, cl
imul edx, edi
mov ecx, edx
xor edx, edx
div ecx
test eax, eax
mov dword [ebp + 0x14], eax
fild dword [ebp + 0x14]
jge 0x1004710f
fadd dword [0x10088964]
fmul qword [0x1008b750]
fldz
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1004714e
fadd qword [0x100890b8]
jmp 0x10047154
fsub qword [0x100890b8]
call fcn.100605a6
mov ecx, dword [ebp + 0x10]
mov edi, eax
mov eax, dword [esi + 0x10]
imul eax, eax, 0x1438
push 0x20
push eax
call fcn.10053c0e
cmp eax, ebx
je 0x10047182
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0x1a4
jmp 0x1004751b
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x6c]
imul eax, eax, 0x230
push 0x20
push eax
call fcn.10053c0e
cmp eax, ebx
je 0x100471a9
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0x1b2
jmp 0x1004751b
mov ecx, dword [esi + 0x64]
mov eax, edi
imul eax, eax, 0xcc0
push 0x20
push eax
call fcn.10053c0e
cmp eax, ebx
je 0x100471cf
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0x1c0
jmp 0x1004751b
mov ecx, dword [esi + 0x60]
imul edi, edi, 0x2b
push 0x20
push edi
call fcn.10053c0e
cmp eax, ebx
je 0x100471f0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0x1cc
jmp 0x1004751b
mov eax, dword [esi + 8]
shl eax, 2
push 1
push eax
call fcn.1005993f
cmp eax, ebx
pop ecx
pop ecx
mov dword [esi + 0x18], eax
jne 0x10047213
mov dword [ebp - 0x34], 0x1f0
jmp 0x10047514
cmp dword [esi + 8], ebx
mov dword [ebp + 0x14], ebx
jle 0x100473c7
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x20], ebx
je 0x10047233
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [eax + 0x24]
je 0x100473b8
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x38]
imul ecx, dword [eax + 0x34]
mov edi, dword [ebp + 0x14]
imul ecx, ecx, 0xc0
push 1
push ecx
shl edi, 2
call fcn.1005993f
pop ecx
pop ecx
mov ecx, dword [esi + 0x18]
mov dword [edi + ecx], eax
mov eax, dword [esi + 0x18]
cmp dword [edi + eax], ebx
je 0x100473ea
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x38]
imul ecx, dword [eax + 0x34]
test ecx, ecx
mov dword [ebp + 0x10], ebx
jle 0x100473b8
mov dword [ebp + 0xc], ebx
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + edi]
add ecx, dword [ebp + 0xc]
call fcn.1004c667
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + edi]
add ecx, dword [ebp + 0xc]
push esi
call fcn.1004c659
push dword [ebp + 0x10]
mov ecx, dword [esi + 0x14]
call fcn.1003a5a1
push dword [ebp + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
call fcn.1003a5ae
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push dword [ebp + 0x14]
mov ecx, dword [esi + 0x14]
push eax
push dword [ebp - 0x18]
call fcn.1003a64f
push dword [esi + 0x78]
push 0x2c
call fcn.10059a5d
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
je 0x100473f6
push dword [esi + 0x78]
mov eax, dword [esi + 0x14]
push dword [ebp - 0x1c]
mov ecx, dword [eax + 0x20]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ecx + edi]
mov ecx, dword [eax + 0x1c]
push dword [ecx + edi]
mov eax, dword [eax + 8]
push dword [eax + edi]
mov ecx, dword [ebp - 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call fcn.1003ae22
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + edi]
push dword [ebp - 0x14]
add ecx, dword [ebp + 0xc]
call fcn.1004c80d
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [eax + 0x34]
jge 0x1004734c
push ebx
push 1
push eax
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + edi]
add ecx, dword [ebp + 0xc]
call fcn.1004c7bd
push ebx
jmp 0x1004738d
push 1
push 0x1f4
call fcn.1005993f
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
je 0x10047402
push dword [esi + 0x24]
push eax
call sym.JP2KLib.dll_JP2KEncOptClone
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
push 1
push ebx
mov dword [eax + 0x8c], ebx
push eax
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + edi]
add ecx, dword [ebp + 0xc]
call fcn.1004c7bd
push 1
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + edi]
add ecx, dword [ebp + 0xc]
call fcn.1004c817
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x38]
imul ecx, dword [eax + 0x34]
inc dword [ebp + 0x10]
add dword [ebp + 0xc], 0xc0
cmp dword [ebp + 0x10], ecx
jl 0x1004727d
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
cmp eax, dword [esi + 8]
jl 0x1004721f
mov eax, dword [esi + 8]
shl eax, 2
push 1
push eax
call fcn.1005993f
cmp eax, ebx
pop ecx
pop ecx
mov dword [esi + 0x5c], eax
jne 0x1004740e
mov dword [ebp - 0x34], 0x257
jmp 0x10047514
mov dword [ebp - 0x34], 0x208
jmp 0x10047514
mov dword [ebp - 0x34], 0x220
jmp 0x10047514
mov dword [ebp - 0x34], 0x23d
jmp 0x10047514
xor edi, edi
cmp dword [esi + 8], ebx
jle 0x1004744c
mov eax, dword [ebp + 8]
imul eax, dword [ebp + 0x18]
shl eax, 2
mov dword [ebp + 0x14], eax
push dword [ebp + 0x14]
call fcn.10059773
pop ecx
mov ecx, dword [esi + 0x5c]
mov dword [ecx + edi*4], eax
mov eax, dword [esi + 0x5c]
mov eax, dword [eax + edi*4]
mov byte [eax], 1
mov eax, dword [esi + 0x5c]
cmp dword [eax + edi*4], ebx
je 0x10047504
inc edi
cmp edi, dword [esi + 8]
jl 0x10047422
push 4
push 0x65
mov dword [esi + 0x124], ebx
mov dword [esi + 0x120], ebx
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x118], ebx
mov dword [esi + 0x130], ebx
mov dword [esi + 0x12c], ebx
mov dword [esi + 0x134], 0x400
call fcn.1005993f
or dword [esi + 0x148], 0xffffffff
or dword [esi + 0x144], 0xffffffff
mov dword [esi + 0x128], eax
mov eax, dword [esi + 0x24]
mov eax, dword [eax + 0x88]
pop ecx
pop ecx
mov dword [esi + 0x20], eax
call fcn.10006bba
mov eax, dword [esi + 0x24]
mov byte [esi + 0xe2], bl
mov byte [esi + 0xe1], bl
cmp dword [eax + 0xb8], ebx
jne 0x100474fd
cmp dword [eax + 0x90], 3
je 0x100474fd
cmp dword [eax + 0x20], ebx
mov edx, dword [esi + 8]
je 0x100474d3
dec edx
mov ecx, dword [esi + 0x14]
mov edi, dword [ecx + 0x38]
imul edi, dword [ecx + 0x34]
mov eax, dword [eax + 0x98]
imul edi, edx
mov ecx, esi
mov dword [esi + 0x114], eax
call fcn.10046dbd
add edi, eax
push edi
mov ecx, esi
call fcn.10042e41
xor eax, eax
jmp 0x100476ce
mov dword [ebp - 0x34], 0x265
jmp 0x10047514
mov dword [ebp - 0x34], 0x191
mov dword [ebp - 0x38], 8
mov dword [ebp - 0x30], 0x1008b6bc
mov dword [ebp - 0x2c], 3
lea edi, [esi + 0x10c]
mov eax, dword [edi]
cmp eax, ebx
je 0x1004753e
push eax
call fcn.100598cb
pop ecx
mov dword [edi], ebx
cmp dword [esi + 0x18], ebx
je 0x100475bf
cmp dword [esi + 8], ebx
mov dword [ebp + 0x14], ebx
jle 0x100475b6
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp + 0x14]
cmp dword [eax + ecx*4], ebx
je 0x100475ab
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x38]
imul ecx, dword [eax + 0x34]
test ecx, ecx
mov dword [ebp + 0x10], ebx
jle 0x1004759c
xor edi, edi
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp + 0x14]
mov ecx, dword [eax + ecx*4]
add ecx, edi
call fcn.1004c821
cmp eax, ebx
je 0x10047584
push eax
call fcn.100598cb
pop ecx
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x38]
imul ecx, dword [eax + 0x34]
inc dword [ebp + 0x10]
add edi, 0xc0
cmp dword [ebp + 0x10], ecx
jl 0x10047569
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp + 0x14]
push dword [eax + ecx*4]
call fcn.100598cb
pop ecx
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
cmp eax, dword [esi + 8]
jl 0x1004754b
push dword [esi + 0x18]
call fcn.100598cb
pop ecx
mov ecx, 0x1009ff90
call fcn.1005349d
mov ecx, dword [esi + 0x70]
cmp ecx, ebx
je 0x100475e1
call fcn.10053cf1
push dword [esi + 0x70]
call fcn.100598cb
pop ecx
mov dword [esi + 0x70], ebx
mov ecx, dword [esi + 0x68]
cmp ecx, ebx
je 0x100475f9
call fcn.10053cf1
push dword [esi + 0x68]
call fcn.100598cb
pop ecx
mov dword [esi + 0x68], ebx
mov ecx, dword [esi + 0x74]
cmp ecx, ebx
je 0x10047611
call fcn.10053cf1
push dword [esi + 0x74]
call fcn.100598cb
pop ecx
mov dword [esi + 0x74], ebx
mov ecx, dword [esi + 0x6c]
cmp ecx, ebx
je 0x10047629
call fcn.10053cf1
push dword [esi + 0x6c]
call fcn.100598cb
pop ecx
mov dword [esi + 0x6c], ebx
mov ecx, dword [esi + 0x78]
cmp ecx, ebx
je 0x10047641
call fcn.10053cf1
push dword [esi + 0x78]
call fcn.100598cb
pop ecx
mov dword [esi + 0x78], ebx
mov ecx, dword [esi + 0x7c]
cmp ecx, ebx
je 0x10047659
call fcn.10053cf1
push dword [esi + 0x7c]
call fcn.100598cb
pop ecx
mov dword [esi + 0x7c], ebx
mov ecx, dword [esi + 0x60]
cmp ecx, ebx
je 0x10047671
call fcn.10053cf1
push dword [esi + 0x60]
call fcn.100598cb
pop ecx
mov dword [esi + 0x60], ebx
mov ecx, dword [esi + 0x64]
cmp ecx, ebx
je 0x10047689
call fcn.10053cf1
push dword [esi + 0x64]
call fcn.100598cb
pop ecx
mov dword [esi + 0x64], ebx
lea edi, [esi + 0x128]
mov eax, dword [edi]
cmp eax, ebx
je 0x1004769e
push eax
call fcn.100598cb
pop ecx
mov dword [edi], ebx
lea ecx, [esi + 0x3c]
jmp 0x100476c2
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x34], 0x140
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0x1008b6bc
mov dword [ebp - 0x2c], 3
lea eax, [ebp - 0x38]
push eax
call sym.JP2KLib.dll_public:_void___thiscall_IJP2KException::Clone_class_IJP2KException__
mov eax, dword [ebp - 0x38]
call fcn.100604f6
ret 0x14