Function at 0x421c89
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5005d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x421cb9
cmp dword [edi], 0
je 0x421cb9
inc dword [0x51a16c]
xor eax, eax
inc eax
jmp 0x422541
cmp dword [0x51a168], 0
jne 0x421e28
mov esi, 0x103
push esi
xor ebx, ebx
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], 0
call fcn.004a7110
add esp, 0xc
push esi
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call fcn.004a7110
add esp, 0xc
mov edi, str.PaulaJPG.dll
push edi
push 0x4c544c
inc esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00476e0a
add esp, 0x10
push edi
push ebx
push ebx
call fcn.00459ede
pop ecx
pop ecx
push eax
mov ebx, 0x4c64d0
push ebx
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.00476e0a
lea eax, [ebp - 0x110]
add esp, 0x14
push eax
mov edx, eax
lea ecx, [ebp - 0x218]
call fcn.00418ca6
pop ecx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x51a168], eax
jne 0x421e11
push edi
push eax
push eax
call fcn.00459cf0
pop ecx
pop ecx
push eax
push ebx
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00476e0a
add esp, 0x14
push edi
push 0
push 0
call fcn.00459ede
pop ecx
pop ecx
push eax
push ebx
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.00476e0a
lea eax, [ebp - 0x110]
add esp, 0x14
push eax
mov edx, eax
lea ecx, [ebp - 0x218]
call fcn.00418ca6
pop ecx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x51a168], eax
jne 0x421e11
push edi
push eax
push eax
call fcn.00459cf0
pop ecx
pop ecx
push eax
push ebx
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.00476e0a
add esp, 0x14
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x51a168], eax
jne 0x421e11
lea edi, [ebp - 0x110]
call fcn.00418e6b
xor eax, eax
jmp 0x422541
lea eax, [ebp - 0x110]
push eax
mov ecx, esi
mov eax, 0x51a170
call fcn.00475883
mov edi, dword [ebp + 8]
pop ecx
inc dword [0x51a16c]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
inc ebx
test edi, edi
je 0x421e43
cmp edi, 0x51a0a0
jne 0x421e5b
push str.jpeg_std_error
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a0a0], eax
jne 0x421e5b
xor ebx, ebx
test edi, edi
je 0x421e67
cmp edi, 0x51a0a4
jne 0x421e7f
push str.jpeg_CreateCompress
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a0a4], eax
jne 0x421e7f
xor ebx, ebx
test edi, edi
je 0x421e8b
cmp edi, 0x51a0a8
jne 0x421ea3
push str.jpeg_CreateDecompress
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a0a8], eax
jne 0x421ea3
xor ebx, ebx
test edi, edi
je 0x421eaf
cmp edi, 0x51a0ac
jne 0x421ec7
push str.jpeg_destroy_compress
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a0ac], eax
jne 0x421ec7
xor ebx, ebx
test edi, edi
je 0x421ed3
cmp edi, 0x51a0b0
jne 0x421eeb
push str.jpeg_destroy_decompress
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a0b0], eax
jne 0x421eeb
xor ebx, ebx
test edi, edi
je 0x421ef7
cmp edi, 0x51a0b4
jne 0x421f0f
push str.jpeg_stdio_dest
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a0b4], eax
jne 0x421f0f
xor ebx, ebx
test edi, edi
je 0x421f1b
cmp edi, 0x51a0b8
jne 0x421f33
push str.jpeg_stdio_src
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a0b8], eax
jne 0x421f33
xor ebx, ebx
test edi, edi
je 0x421f3f
cmp edi, 0x51a0bc
jne 0x421f57
push str.jpeg_set_defaults
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a0bc], eax
jne 0x421f57
xor ebx, ebx
test edi, edi
je 0x421f63
cmp edi, 0x51a0c0
jne 0x421f7b
push str.jpeg_SetColorOrderRGB
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a0c0], eax
jne 0x421f7b
xor ebx, ebx
test edi, edi
je 0x421f87
cmp edi, 0x51a0c4
jne 0x421f9f
push str.jpeg_SetColorOrderBGR
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a0c4], eax
jne 0x421f9f
xor ebx, ebx
test edi, edi
je 0x421fab
cmp edi, 0x51a0c8
jne 0x421fc3
push str.jpeg_set_colorspace
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a0c8], eax
jne 0x421fc3
xor ebx, ebx
test edi, edi
je 0x421fcf
cmp edi, 0x51a0cc
jne 0x421fe7
push str.jpeg_default_colorspace
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a0cc], eax
jne 0x421fe7
xor ebx, ebx
test edi, edi
je 0x421ff3
cmp edi, 0x51a0d0
jne 0x42200b
push str.jpeg_set_quality
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a0d0], eax
jne 0x42200b
xor ebx, ebx
test edi, edi
je 0x422017
cmp edi, 0x51a0d4
jne 0x42202f
push str.jpeg_set_linear_quality
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a0d4], eax
jne 0x42202f
xor ebx, ebx
test edi, edi
je 0x42203b
cmp edi, 0x51a0d8
jne 0x422053
push str.jpeg_add_quant_table
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a0d8], eax
jne 0x422053
xor ebx, ebx
test edi, edi
je 0x42205f
cmp edi, 0x51a0dc
jne 0x422077
push str.jpeg_quality_scaling
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a0dc], eax
jne 0x422077
xor ebx, ebx
test edi, edi
je 0x422083
cmp edi, 0x51a0e0
jne 0x42209b
push str.jpeg_simple_progression
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a0e0], eax
jne 0x42209b
xor ebx, ebx
test edi, edi
je 0x4220a7
cmp edi, 0x51a0e4
jne 0x4220bf
push str.jpeg_suppress_tables
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a0e4], eax
jne 0x4220bf
xor ebx, ebx
test edi, edi
je 0x4220cb
cmp edi, 0x51a0e8
jne 0x4220e3
push str.jpeg_alloc_quant_table
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a0e8], eax
jne 0x4220e3
xor ebx, ebx
test edi, edi
je 0x4220ef
cmp edi, 0x51a0ec
jne 0x422107
push str.jpeg_alloc_huff_table
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a0ec], eax
jne 0x422107
xor ebx, ebx
test edi, edi
je 0x422113
cmp edi, 0x51a0f0
jne 0x42212b
push str.jpeg_start_compress
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a0f0], eax
jne 0x42212b
xor ebx, ebx
test edi, edi
je 0x422137
cmp edi, 0x51a0f4
jne 0x42214f
push str.jpeg_write_scanlines
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a0f4], eax
jne 0x42214f
xor ebx, ebx
test edi, edi
je 0x42215b
cmp edi, 0x51a0f8
jne 0x422173
push str.jpeg_finish_compress
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a0f8], eax
jne 0x422173
xor ebx, ebx
test edi, edi
je 0x42217f
cmp edi, 0x51a0fc
jne 0x422197
push str.jpeg_write_raw_data
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a0fc], eax
jne 0x422197
xor ebx, ebx
test edi, edi
je 0x4221a3
cmp edi, 0x51a100
jne 0x4221bb
push str.jpeg_write_marker
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a100], eax
jne 0x4221bb
xor ebx, ebx
test edi, edi
je 0x4221c7
cmp edi, 0x51a104
jne 0x4221df
push str.jpeg_write_m_header
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a104], eax
jne 0x4221df
xor ebx, ebx
test edi, edi
je 0x4221eb
cmp edi, 0x51a108
jne 0x422203
push str.jpeg_write_m_byte
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a108], eax
jne 0x422203
xor ebx, ebx
test edi, edi
je 0x42220f
cmp edi, 0x51a10c
jne 0x422227
push str.jpeg_write_tables
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a10c], eax
jne 0x422227
xor ebx, ebx
test edi, edi
je 0x422233
cmp edi, 0x51a110
jne 0x42224b
push str.jpeg_read_header
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a110], eax
jne 0x42224b
xor ebx, ebx
test edi, edi
je 0x422257
cmp edi, 0x51a114
jne 0x42226f
push str.jpeg_start_decompress
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a114], eax
jne 0x42226f
xor ebx, ebx
test edi, edi
je 0x42227b
cmp edi, 0x51a118
jne 0x422293
push str.jpeg_read_scanlines
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a118], eax
jne 0x422293
xor ebx, ebx
test edi, edi
je 0x42229f
cmp edi, 0x51a11c
jne 0x4222b7
push str.jpeg_finish_decompress
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a11c], eax
jne 0x4222b7
xor ebx, ebx
test edi, edi
je 0x4222c3
cmp edi, 0x51a120
jne 0x4222db
push str.jpeg_read_raw_data
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a120], eax
jne 0x4222db
xor ebx, ebx
test edi, edi
je 0x4222e7
cmp edi, 0x51a124
jne 0x4222ff
push str.jpeg_has_multiple_scans
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a124], eax
jne 0x4222ff
xor ebx, ebx
test edi, edi
je 0x42230b
cmp edi, 0x51a128
jne 0x422323
push str.jpeg_start_output
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a128], eax
jne 0x422323
xor ebx, ebx
test edi, edi
je 0x42232f
cmp edi, 0x51a12c
jne 0x422347
push str.jpeg_finish_output
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a12c], eax
jne 0x422347
xor ebx, ebx
test edi, edi
je 0x422353
cmp edi, 0x51a130
jne 0x42236b
push str.jpeg_input_complete
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a130], eax
jne 0x42236b
xor ebx, ebx
test edi, edi
je 0x422377
cmp edi, 0x51a134
jne 0x42238f
push str.jpeg_new_colormap
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a134], eax
jne 0x42238f
xor ebx, ebx
test edi, edi
je 0x42239b
cmp edi, 0x51a138
jne 0x4223b3
push str.jpeg_consume_input
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a138], eax
jne 0x4223b3
xor ebx, ebx
test edi, edi
je 0x4223bf
cmp edi, 0x51a13c
jne 0x4223d7
push str.jpeg_calc_output_dimensions
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a13c], eax
jne 0x4223d7
xor ebx, ebx
test edi, edi
je 0x4223e3
cmp edi, 0x51a140
jne 0x4223fb
push str.jpeg_save_markers
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a140], eax
jne 0x4223fb
xor ebx, ebx
test edi, edi
je 0x422407
cmp edi, 0x51a144
jne 0x42241f
push str.jpeg_set_marker_processor
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a144], eax
jne 0x42241f
xor ebx, ebx
test edi, edi
je 0x42242b
cmp edi, 0x51a148
jne 0x422443
push str.jpeg_read_coefficients
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a148], eax
jne 0x422443
xor ebx, ebx
test edi, edi
je 0x42244f
cmp edi, 0x51a14c
jne 0x422467
push str.jpeg_write_coefficients
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a14c], eax
jne 0x422467
xor ebx, ebx
test edi, edi
je 0x422473
cmp edi, 0x51a150
jne 0x42248b
push str.jpeg_copy_critical_parameters
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a150], eax
jne 0x42248b
xor ebx, ebx
test edi, edi
je 0x422497
cmp edi, 0x51a154
jne 0x4224af
push str.jpeg_abort_compress
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a154], eax
jne 0x4224af
xor ebx, ebx
test edi, edi
je 0x4224bb
cmp edi, 0x51a158
jne 0x4224d3
push str.jpeg_abort_decompress
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a158], eax
jne 0x4224d3
xor ebx, ebx
test edi, edi
je 0x4224df
cmp edi, 0x51a15c
jne 0x4224f7
push str.jpeg_abort
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a15c], eax
jne 0x4224f7
xor ebx, ebx
test edi, edi
je 0x422503
cmp edi, 0x51a160
jne 0x42251b
push str.jpeg_destroy
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a160], eax
jne 0x42251b
xor ebx, ebx
test edi, edi
je 0x422527
cmp edi, 0x51a164
jne 0x42253f
push str.jpeg_resync_to_restart
push dword [0x51a168]
call esi
test eax, eax
mov dword [0x51a164], eax
jne 0x42253f
xor ebx, ebx
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a69f5
leave
ret