Function at 0x55e2d0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60273e
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x654c54]
xor eax, ebp
mov dword [ebp - 0x40], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x6a2800], 0
je 0x55e753
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x55e31f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x108], edx
jmp 0x55e32b
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0x108], eax
push 0x606a70
mov ecx, dword [ebp - 0x108]
push ecx
call fcn.00559650
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x55e34f
xor eax, eax
jmp 0x55e755
movzx edx, byte [0x6524b5]
test edx, edx
je 0x55e4f9
mov byte [0x6524b5], 0
push str._J2K_getVersion_0
mov eax, dword [0x6a2800]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x6a2844], eax
push str._J2K_Unlock_4
mov ecx, dword [0x6a2800]
push ecx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x6a2840], eax
push str._J2K_OpenCustom_8
mov edx, dword [0x6a2800]
push edx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x6a283c], eax
push str._J2K_OpenFile_4
mov eax, dword [0x6a2800]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x6a2838], eax
push str._J2K_Close_4
mov ecx, dword [0x6a2800]
push ecx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x6a2834], eax
push str._J2K_GetInfo_16
mov edx, dword [0x6a2800]
push edx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x6a2830], eax
push str._J2K_GetResolutionDimensions_16
mov eax, dword [0x6a2800]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x6a282c], eax
push str._J2K_Decode_20
mov ecx, dword [0x6a2800]
push ecx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x6a2828], eax
push str._J2K_getLastError_0
mov edx, dword [0x6a2800]
push edx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x6a2824], eax
push str._J2K_getErrorStr_4
mov eax, dword [0x6a2800]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x6a2820], eax
cmp dword [0x6a2844], 0
je 0x55e4a1
cmp dword [0x6a2840], 0
je 0x55e4a1
cmp dword [0x6a283c], 0
je 0x55e4a1
cmp dword [0x6a2838], 0
je 0x55e4a1
cmp dword [0x6a2834], 0
je 0x55e4a1
cmp dword [0x6a2830], 0
je 0x55e4a1
cmp dword [0x6a282c], 0
je 0x55e4a1
cmp dword [0x6a2828], 0
je 0x55e4a1
cmp dword [0x6a2824], 0
je 0x55e4a1
cmp dword [0x6a2820], 0
jne 0x55e4ad
call fcn.0055e1e0
xor eax, eax
jmp 0x55e755
call dword [0x6a2844]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0x120000
jge 0x55e4cb
call fcn.0055e1e0
xor eax, eax
jmp 0x55e755
cmp dword [0x6a281c], 0x10
jb 0x55e4e2
mov ecx, dword [0x6a2808]
mov dword [ebp - 0x10c], ecx
jmp 0x55e4ec
mov dword [ebp - 0x10c], 0x6a2808
mov edx, dword [ebp - 0x10c]
push edx
call dword [0x6a2840]
mov dword [ebp - 0x24], 0x55e2a0
mov dword [ebp - 0x28], 0x55e230
mov dword [ebp - 0x20], 0x55e2c0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [0x6a283c]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x55e568
call dword [0x6a2824]
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
push edx
call dword [0x6a2820]
push eax
lea ecx, [ebp - 0x84]
call fcn.0040dbc0
mov dword [ebp - 0x90], 0
push 0
push 1
lea ecx, [ebp - 0x84]
call fcn.004079f0
mov eax, dword [ebp - 0x90]
jmp 0x55e755
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [0x6a2830]
test eax, eax
je 0x55e593
mov ecx, dword [ebp - 0x34]
push ecx
call dword [0x6a2834]
xor eax, eax
jmp 0x55e755
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x30]
push eax
push 0
mov ecx, dword [ebp - 0x34]
push ecx
call dword [0x6a282c]
mov eax, dword [ebp - 0x30]
imul eax, dword [ebp - 0x3c]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005b97ec
add esp, 4
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x55e5ed
mov ecx, dword [ebp - 0x34]
push ecx
call dword [0x6a2834]
xor eax, eax
jmp 0x55e755
push str.bpp4_rl0
lea edx, [ebp - 0x60]
push edx
call fcn.005d14a0
add esp, 8
mov eax, dword [ebp - 0x30]
imul eax, dword [ebp - 0x3c]
shl eax, 2
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x30]
shl ecx, 2
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [0x6a2828]
test eax, eax
je 0x55e65b
mov ecx, dword [ebp - 0x34]
push ecx
call dword [0x6a2834]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x98], edx
mov eax, dword [ebp - 0x98]
push eax
call fcn.005ccc4a
add esp, 4
xor eax, eax
jmp 0x55e755
mov ecx, dword [ebp - 0x34]
push ecx
call dword [0x6a2834]
push 0x10
call fcn.005cb847
add esp, 4
mov dword [ebp - 0xa0], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0xa0], 0
je 0x55e698
mov ecx, dword [ebp - 0xa0]
call fcn.005592e0
mov dword [ebp - 0x110], eax
jmp 0x55e6a2
mov dword [ebp - 0x110], 0
mov edx, dword [ebp - 0x110]
mov dword [ebp - 0x9c], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x3c]
mov dword [edx + 8], eax
movzx ecx, byte [0x652495]
test ecx, ecx
je 0x55e742
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x18]
mov eax, dword [ecx + 4]
imul eax, dword [edx + 8]
mov ecx, dword [ebp - 0x8c]
lea edx, [ecx + eax*4]
mov dword [ebp - 0x88], edx
jmp 0x55e71d
mov eax, dword [ebp - 0x8c]
add eax, 4
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
cmp ecx, dword [ebp - 0x88]
je 0x55e742
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx]
or eax, 0xff000000
mov ecx, dword [ebp - 0x8c]
mov dword [ecx], eax
jmp 0x55e70e
mov edx, dword [ebp - 0x38]
push edx
call fcn.005597a0
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x55e755
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.005cbcb1
mov esp, ebp
pop ebp
ret