Function at 0x5d7500
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x64
mov eax, dword [0x6af168]
xor eax, esp
mov dword [esp + 0x60], eax
cmp dword [0x6b9fdc], 0
mov eax, dword [esp + 0x68]
je 0x5d78a5
cmp dword [eax + 0x18], 0x10
jb 0x5d752a
mov eax, dword [eax + 4]
jmp 0x5d752d
add eax, 4
push esi
call fcn.005d35f0
mov esi, eax
test esi, esi
jne 0x5d7549
pop esi
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00624940
add esp, 0x64
ret
cmp byte [0x6b73d9], 0
push edi
je 0x5d76bf
mov eax, dword [0x6b9fdc]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._J2K_getVersion_0
push eax
mov byte [0x6b73d9], 0
call edi
mov ecx, dword [0x6b9fdc]
push str._J2K_Unlock_4
push ecx
mov dword [0x6f312c], eax
call edi
mov edx, dword [0x6b9fdc]
push str._J2K_OpenCustom_8
push edx
mov dword [0x6f3130], eax
call edi
mov dword [0x6f3134], eax
mov eax, dword [0x6b9fdc]
push str._J2K_OpenFile_4
push eax
call edi
mov ecx, dword [0x6b9fdc]
push str._J2K_Close_4
push ecx
mov dword [0x6f3138], eax
call edi
mov edx, dword [0x6b9fdc]
push str._J2K_GetInfo_16
push edx
mov dword [0x6f313c], eax
call edi
mov dword [0x6f3140], eax
mov eax, dword [0x6b9fdc]
push str._J2K_GetResolutionDimensions_16
push eax
call edi
mov ecx, dword [0x6b9fdc]
push str._J2K_Decode_20
push ecx
mov dword [0x6f3144], eax
call edi
mov edx, dword [0x6b9fdc]
push str._J2K_getLastError_0
push edx
mov dword [0x6f3148], eax
call edi
mov dword [0x6f314c], eax
mov eax, dword [0x6b9fdc]
push str._J2K_getErrorStr_4
push eax
call edi
mov ecx, dword [0x6f312c]
test ecx, ecx
mov dword [0x6f3150], eax
je 0x5d771c
cmp dword [0x6f3130], 0
je 0x5d771c
cmp dword [0x6f3134], 0
je 0x5d771c
cmp dword [0x6f3138], 0
je 0x5d771c
cmp dword [0x6f313c], 0
je 0x5d771c
cmp dword [0x6f3140], 0
je 0x5d771c
cmp dword [0x6f3144], 0
je 0x5d771c
cmp dword [0x6f3148], 0
je 0x5d771c
cmp dword [0x6f314c], 0
je 0x5d771c
test eax, eax
je 0x5d771c
call ecx
cmp eax, 0x120000
jl 0x5d771c
cmp dword [0x6b3820], 0x10
mov eax, dword [0x6b380c]
jae 0x5d76b8
mov eax, 0x6b380c
push eax
call dword [0x6f3130]
lea ecx, [esp + 0x1c]
push ecx
push esi
mov dword [esp + 0x28], 0x5d74d0
mov dword [esp + 0x24], 0x5d74b0
mov dword [esp + 0x2c], method.Sexy::Board.virtual_24
call dword [0x6f3134]
mov edi, eax
test edi, edi
jne 0x5d7734
call dword [0x6f314c]
push eax
call dword [0x6f3150]
push eax
lea ecx, [esp + 0x30]
call fcn.00402130
lea ecx, [esp + 0x2c]
call fcn.00401c70
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00624940
add esp, 0x64
ret
call fcn.005d7480
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00624940
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 [0x6f3140]
test eax, eax
jne 0x5d778b
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push edi
call dword [0x6f3144]
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.00613caa
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
jne 0x5d77a5
push edi
call dword [0x6f313c]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00624940
add esp, 0x64
ret
mov eax, dword [str.bpp4_rl0]
mov ecx, dword [0x683fb4]
mov dx, word [0x683fb8]
mov dword [esp + 0x48], eax
mov al, byte [0x683fba]
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 [0x6f3148]
test eax, eax
push edi
je 0x5d7831
call dword [0x6f313c]
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0062506e
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00624940
add esp, 0x64
ret
call dword [0x6f313c]
push 0x10
call fcn.00624a6a
add esp, 4
test eax, eax
je 0x5d784e
call fcn.005d3730
mov edi, eax
jmp 0x5d7850
xor edi, edi
cmp byte [0x6b171f], 0
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 dword [edi + 8], ecx
je 0x5d788d
mov eax, edx
mov edx, dword [edi + 4]
imul edx, dword [esp + 8]
lea ecx, [eax + edx*4]
cmp eax, ecx
je 0x5d788d
nop
or dword [eax], 0xff000000
add eax, 4
cmp eax, ecx
jne 0x5d7880
call fcn.005d3650
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00624940
add esp, 0x64
ret
mov ecx, dword [esp + 0x60]
xor ecx, esp
xor eax, eax
call fcn.00624940
add esp, 0x64
ret