Function at 0x54ee83
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
xor ebx, ebx
push edi
lea eax, [ebp - 0x210]
push eax
push str.libjpeg
lea eax, [ebp - 4]
push eax
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov byte [esi + 0x48], bl
mov dword [esi + 0x49], ebx
mov dword [ebp - 4], 0x646540
call fcn.004053e4
test al, al
je 0x54f0a7
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x49], eax
je 0x54f0a7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.jpeg_std_error
push eax
call edi
mov dword [esi], eax
mov eax, dword [esi + 0x49]
push str.jpeg_CreateDecompress
push eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi + 0x49]
push str.jpeg_CreateCompress
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi + 0x49]
push str.jpeg_stdio_src
push eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x49]
push str.jpeg_mem_src
push eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x49]
push str.jpeg_mem_dest
push eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x49]
push str.jpeg_read_header
push eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x49]
push str.jpeg_start_decompress
push eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x49]
push str.jpeg_start_compress
push eax
call edi
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x49]
push str.jpeg_read_scanlines
push eax
call edi
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x49]
push str.jpeg_write_scanlines
push eax
call edi
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x49]
push str.jpeg_finish_decompress
push eax
call edi
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x30]
push eax
push str.jpeg_finish_compress
push dword [esi + 0x49]
call fcn.0059ac1a
mov eax, dword [esi + 0x49]
push str.jpeg_destroy_decompress
push eax
call edi
mov dword [esi + 0x34], eax
lea eax, [esi + 0x38]
push eax
push str.jpeg_destroy_compress
push dword [esi + 0x49]
call fcn.0059ac1a
lea eax, [esi + 0x3c]
push eax
push str.jpeg_set_defaults
push dword [esi + 0x49]
call fcn.0059ac1a
mov eax, dword [esi + 0x49]
push str.jpeg_set_quality
push eax
call edi
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x49]
push str.jpeg_free_large
push eax
call edi
mov dword [esi + 0x44], eax
cmp dword [esi], ebx
je 0x54f06a
cmp dword [esi + 0xc], ebx
je 0x54f06a
cmp dword [esi + 0x18], ebx
je 0x54f06a
cmp dword [esi + 0x3c], ebx
je 0x54f06a
cmp dword [esi + 4], ebx
je 0x54f06a
cmp dword [esi + 8], ebx
je 0x54f06a
cmp dword [esi + 0x10], ebx
je 0x54f06a
cmp dword [esi + 0x14], ebx
je 0x54f06a
cmp dword [esi + 0x1c], ebx
je 0x54f06a
cmp dword [esi + 0x20], ebx
je 0x54f06a
cmp dword [esi + 0x24], ebx
je 0x54f06a
cmp dword [esi + 0x28], ebx
je 0x54f06a
cmp dword [esi + 0x2c], ebx
je 0x54f06a
cmp dword [esi + 0x30], ebx
je 0x54f06a
cmp dword [esi + 0x34], ebx
je 0x54f06a
cmp dword [esi + 0x38], ebx
je 0x54f06a
cmp dword [esi + 0x40], ebx
je 0x54f06a
cmp eax, ebx
je 0x54f06a
mov byte [esi + 0x48], 1
cmp byte [esi + 0x48], bl
jne 0x54f0a7
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
push dword [esi + 0x49]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x49], ebx
pop edi
mov eax, esi
pop ebx
leave
ret