Function at 0x5d75a0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x64
mov eax, dword [0x6a9fa4]
xor eax, esp
mov dword [esp + 0x60], eax
cmp dword [0x6ba128], 0
je 0x5d7945
cmp dword [0x6b5430], 0x10
mov eax, dword [0x6b541c]
jae 0x5d75ce
mov eax, 0x6b541c
push esi
call fcn.005d35b0
mov esi, eax
test esi, esi
jne 0x5d75ea
pop esi
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00626d59
add esp, 0x64
ret
cmp byte [0x6ac366], 0
push edi
je 0x5d7760
mov eax, dword [0x6ba128]
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str._J2K_getVersion_0
push eax
mov byte [0x6ac366], 0
call edi
mov ecx, dword [0x6ba128]
push str._J2K_Unlock_4
push ecx
mov dword [0x76b9c4], eax
call edi
mov edx, dword [0x6ba128]
push str._J2K_OpenCustom_8
push edx
mov dword [0x76b9c8], eax
call edi
mov dword [0x76b9cc], eax
mov eax, dword [0x6ba128]
push str._J2K_OpenFile_4
push eax
call edi
mov ecx, dword [0x6ba128]
push str._J2K_Close_4
push ecx
mov dword [0x76b9d0], eax
call edi
mov edx, dword [0x6ba128]
push str._J2K_GetInfo_16
push edx
mov dword [0x76b9d4], eax
call edi
mov dword [0x76b9d8], eax
mov eax, dword [0x6ba128]
push str._J2K_GetResolutionDimensions_16
push eax
call edi
mov ecx, dword [0x6ba128]
push str._J2K_Decode_20
push ecx
mov dword [0x76b9dc], eax
call edi
mov edx, dword [0x6ba128]
push str._J2K_getLastError_0
push edx
mov dword [0x76b9e0], eax
call edi
mov dword [0x76b9e4], eax
mov eax, dword [0x6ba128]
push str._J2K_getErrorStr_4
push eax
call edi
mov ecx, dword [0x76b9c4]
test ecx, ecx
mov dword [0x76b9e8], eax
je 0x5d77bd
cmp dword [0x76b9c8], 0
je 0x5d77bd
cmp dword [0x76b9cc], 0
je 0x5d77bd
cmp dword [0x76b9d0], 0
je 0x5d77bd
cmp dword [0x76b9d4], 0
je 0x5d77bd
cmp dword [0x76b9d8], 0
je 0x5d77bd
cmp dword [0x76b9dc], 0
je 0x5d77bd
cmp dword [0x76b9e0], 0
je 0x5d77bd
cmp dword [0x76b9e4], 0
je 0x5d77bd
test eax, eax
je 0x5d77bd
call ecx
cmp eax, 0x120000
jl 0x5d77bd
cmp dword [0x6b5414], 0x10
mov eax, dword [0x6b5400]
jae 0x5d7759
mov eax, 0x6b5400
push eax
call dword [0x76b9c8]
lea ecx, [esp + 0x1c]
push ecx
push esi
mov dword [esp + 0x28], 0x5d7570
mov dword [esp + 0x24], 0x5d7550
mov dword [esp + 0x2c], method.Sexy::Widget.virtual_24
call dword [0x76b9cc]
mov edi, eax
test edi, edi
jne 0x5d77d5
call dword [0x76b9e4]
push eax
call dword [0x76b9e8]
push eax
lea ecx, [esp + 0x30]
call fcn.00405520
lea ecx, [esp + 0x2c]
call fcn.00405480
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00626d59
add esp, 0x64
ret
call fcn.005d7510
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00626d59
add esp, 0x64
ret
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [0x76b9d8]
test eax, eax
jne 0x5d782c
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push edi
call dword [0x76b9dc]
mov eax, dword [esp + 0xc]
imul eax, dword [esp + 8]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00612a1b
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
jne 0x5d7846
push edi
call dword [0x76b9d4]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00626d59
add esp, 0x64
ret
mov eax, dword [str.bpp4_rl0]
mov ecx, dword [0x6851e4]
mov dx, word [0x6851e8]
mov dword [esp + 0x48], eax
mov al, byte [0x6851ea]
mov dword [esp + 0x4c], ecx
mov byte [esp + 0x52], al
mov eax, dword [esp + 0xc]
mov ecx, eax
imul ecx, dword [esp + 8]
add ecx, ecx
mov word [esp + 0x50], dx
lea edx, [eax*4]
add ecx, ecx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x20], edx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push edi
call dword [0x76b9e0]
test eax, eax
push edi
je 0x5d78d2
call dword [0x76b9d4]
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00624291
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00626d59
add esp, 0x64
ret
call dword [0x76b9d4]
push 0x10
call fcn.00624227
add esp, 4
test eax, eax
je 0x5d78ef
call fcn.005d36f0
mov edi, eax
jmp 0x5d78f1
xor edi, edi
mov edx, dword [esp + 0x10]
mov dword [edi + 0xc], edx
mov eax, dword [esp + 0xc]
mov dword [edi + 4], eax
mov ecx, dword [esp + 8]
mov eax, edx
mov edx, dword [edi + 4]
mov dword [edi + 8], ecx
imul edx, dword [esp + 8]
lea ecx, [eax + edx*4]
cmp eax, ecx
je 0x5d792d
jmp 0x5d7920
or dword [eax], 0xff000000
add eax, 4
cmp eax, ecx
jne 0x5d7920
call fcn.005d3610
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00626d59
add esp, 0x64
ret
mov ecx, dword [esp + 0x60]
xor ecx, esp
xor eax, eax
call fcn.00626d59
add esp, 0x64
ret