Function at 0x6ad902a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
mov eax, dword [ebx + 0x14]
cmp eax, 0x64
je 0x6ad902c6
mov edx, dword [ebx]
mov dword [edx + 0x18], eax
mov eax, dword [ebx]
mov dword [edx + 0x14], 0x14
mov dword [esp], ebx
call dword [eax]
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x6ad90567
mov dword [ebx + 0x38], 8
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0x32
mov dword [esp + 8], 0x6add7740
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym.libjpeg_62.dll_lpeg_add_quant_table
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0x32
mov dword [esp + 8], 0x6add7640
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym.libjpeg_62.dll_lpeg_add_quant_table
cmp byte [ebx + 0x10], 0
je 0x6ad90480
lea edx, [ebx + 0xa0]
lea ebp, [ebx + 0xb0]
mov eax, dword [edx]
test eax, eax
je 0x6ad90587
mov eax, dword [ebp]
test eax, eax
je 0x6ad90631
mov eax, dword [edx + 4]
test eax, eax
je 0x6ad90703
mov edi, dword [ebp + 4]
test edi, edi
je 0x6ad90490
lea eax, [ebx + 0x98]
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 0
mov dword [ebx + 0x88], 0x1010101
mov dword [ebx + 0x8c], 0x1010101
mov dword [ebx + 0x90], 0x1010101
mov dword [ebx + 0x94], 0x1010101
mov dword [ebx + 0x98], 0x5050505
mov dword [eax + 4], 0x5050505
mov dword [eax + 8], 0x5050505
mov dword [eax + 0xc], 0x5050505
cmp dword [ebx + 0x38], 8
mov dword [ebx + 0xac], 0
mov dword [ebx + 0xa8], 0
mov byte [ebx + 0xb0], 0
mov byte [ebx + 0xb1], 0
mov byte [ebx + 0xb2], 0
jle 0x6ad9040e
mov byte [ebx + 0xb2], 1
mov eax, 1
mov edx, 1
mov byte [ebx + 0xb3], 0
mov dword [ebx + 0xb4], 0
mov dword [ebx + 0xb8], 0
mov dword [ebx + 0xbc], 0
mov dword [ebx + 0xc0], 0
mov byte [ebx + 0xc5], 1
mov byte [ebx + 0xc6], 1
mov byte [ebx + 0xc7], 0
mov word [ebx + 0xc8], ax
mov word [ebx + 0xca], dx
mov dword [esp + 0x40], ebx
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp sym.libjpeg_62.dll_lpeg_default_colorspace
lea edx, [ebx + 0x58]
lea ebp, [ebx + 0x68]
jmp 0x6ad9033e
mov dword [esp], ebx
mov esi, 0x6add7480
call sym.libjpeg_62.dll_lpeg_alloc_huff_table
mov edx, dword [0x6add7522]
mov dword [ebp + 4], eax
mov dword [eax], edx
mov edx, dword [0x6add7526]
mov dword [eax + 4], edx
mov edx, dword [0x6add752a]
mov dword [eax + 8], edx
mov edx, dword [0x6add752e]
mov dword [eax + 0xc], edx
movzx edx, byte [0x6add7532]
mov byte [eax + 0x10], dl
mov edx, dword [ebp + 4]
mov eax, 0xa2
lea edi, [edx + 0x11]
test edi, 1
jne 0x6ad90850
test edi, 2
jne 0x6ad90835
mov ecx, eax
xor edx, edx
shr ecx, 2
test al, 2
rep movsd dword es:[edi], dword [esi]
je 0x6ad90508
movzx edx, word [esi]
mov word [edi], dx
mov edx, 2
test al, 1
je 0x6ad90513
movzx eax, byte [esi + edx]
mov byte [edi + edx], al
mov eax, dword [ebp + 4]
mov edx, 0x5e
lea edi, [eax + 0xb3]
test edi, 1
jne 0x6ad90821
test edi, 2
jne 0x6ad90810
mov ecx, edx
xor eax, eax
shr ecx, 2
test dl, 2
rep stosd dword es:[edi], eax
je 0x6ad90550
xor ecx, ecx
add edi, 2
mov word [edi - 2], cx
and edx, 1
je 0x6ad90558
mov byte [edi], 0
mov eax, dword [ebp + 4]
mov byte [eax + 0x111], 0
jmp 0x6ad90369
mov eax, dword [ebx + 4]
mov dword [esp + 8], 0x348
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [eax]
mov dword [ebx + 0x44], eax
jmp 0x6ad902d1
mov dword [esp], ebx
mov esi, 0xf4
mov dword [esp + 0x1c], edx
call sym.libjpeg_62.dll_lpeg_alloc_huff_table
mov edx, dword [esp + 0x1c]
mov ecx, dword [0x6add761f]
mov dword [edx], eax
mov dword [eax], ecx
mov ecx, dword [0x6add7623]
mov dword [eax + 4], ecx
mov ecx, dword [0x6add7627]
mov dword [eax + 8], ecx
mov ecx, dword [0x6add762b]
mov dword [eax + 0xc], ecx
movzx ecx, byte [0x6add762f]
mov byte [eax + 0x10], cl
mov ecx, dword [0x6add7613]
mov eax, dword [edx]
mov dword [eax + 0x11], ecx
mov ecx, dword [0x6add7617]
mov dword [eax + 0x15], ecx
mov ecx, dword [0x6add761b]
mov dword [eax + 0x19], ecx
mov eax, dword [edx]
lea edi, [eax + 0x1d]
test edi, 1
jne 0x6ad908f6
test edi, 2
jne 0x6ad908e5
mov ecx, esi
xor eax, eax
shr ecx, 2
test esi, 2
rep stosd dword es:[edi], eax
jne 0x6ad90800
and esi, 1
jne 0x6ad907f2
mov eax, dword [edx]
mov byte [eax + 0x111], 0
jmp 0x6ad90348
mov dword [esp], ebx
mov esi, 0x6add7560
mov dword [esp + 0x1c], edx
call sym.libjpeg_62.dll_lpeg_alloc_huff_table
mov ecx, dword [0x6add7602]
mov edx, dword [esp + 0x1c]
mov dword [ebp], eax
mov dword [eax], ecx
mov ecx, dword [0x6add7606]
mov dword [eax + 4], ecx
mov ecx, dword [0x6add760a]
mov dword [eax + 8], ecx
mov ecx, dword [0x6add760e]
mov dword [eax + 0xc], ecx
movzx ecx, byte [0x6add7612]
mov byte [eax + 0x10], cl
mov ecx, dword [ebp]
mov eax, 0xa2
lea edi, [ecx + 0x11]
test edi, 1
jne 0x6ad908c9
test edi, 2
jne 0x6ad908b4
mov ecx, eax
shr ecx, 2
test al, 2
rep movsd dword es:[edi], dword [esi]
jne 0x6ad907e2
test al, 1
jne 0x6ad907d6
mov eax, dword [ebp]
mov esi, 0x5e
lea edi, [eax + 0xb3]
test edi, 1
jne 0x6ad9089e
test edi, 2
jne 0x6ad9088d
mov ecx, esi
xor eax, eax
shr ecx, 2
test esi, 2
rep stosd dword es:[edi], eax
jne 0x6ad907c8
and esi, 1
jne 0x6ad907c0
mov eax, dword [ebp]
mov byte [eax + 0x111], 0
jmp 0x6ad90353
mov dword [esp], ebx
mov esi, 0xf4
mov dword [esp + 0x1c], edx
call sym.libjpeg_62.dll_lpeg_alloc_huff_table
mov edx, dword [esp + 0x1c]
mov ecx, dword [0x6add753f]
mov dword [edx + 4], eax
mov dword [eax], ecx
mov ecx, dword [0x6add7543]
mov dword [eax + 4], ecx
mov ecx, dword [0x6add7547]
mov dword [eax + 8], ecx
mov ecx, dword [0x6add754b]
mov dword [eax + 0xc], ecx
movzx ecx, byte [0x6add754f]
mov byte [eax + 0x10], cl
mov ecx, dword [0x6add7533]
mov eax, dword [edx + 4]
mov dword [eax + 0x11], ecx
mov ecx, dword [0x6add7537]
mov dword [eax + 0x15], ecx
mov ecx, dword [0x6add753b]
mov dword [eax + 0x19], ecx
mov eax, dword [edx + 4]
lea edi, [eax + 0x1d]
test edi, 1
jne 0x6ad9087d
test edi, 2
jne 0x6ad9086c
mov ecx, esi
xor eax, eax
shr ecx, 2
test esi, 2
rep stosd dword es:[edi], eax
jne 0x6ad907b5
and esi, 1
jne 0x6ad907b0
mov eax, dword [edx + 4]
mov byte [eax + 0x111], 0
jmp 0x6ad9035e
mov byte [edi], 0
jmp 0x6ad9079a
xor eax, eax
add edi, 2
mov word [edi - 2], ax
jmp 0x6ad90795
mov byte [edi], 0
jmp 0x6ad906f4
xor eax, eax
add edi, 2
mov word [edi - 2], ax
jmp 0x6ad906eb
movzx eax, byte [esi + ecx]
mov byte [edi + ecx], al
jmp 0x6ad906b0
movzx ecx, word [esi]
mov word [edi], cx
mov ecx, 2
jmp 0x6ad906a8
mov byte [edi], 0
jmp 0x6ad90623
xor ecx, ecx
add edi, 2
mov word [edi - 2], cx
jmp 0x6ad9061a
xor esi, esi
add edi, 2
mov word [edi - 2], si
sub edx, 2
jmp 0x6ad90539
mov byte [eax + 0xb3], 0
lea edi, [eax + 0xb4]
mov dl, 0x5d
jmp 0x6ad9052d
movzx edx, word [esi]
add edi, 2
add esi, 2
sub eax, 2
mov word [edi - 2], dx
jmp 0x6ad904f0
movzx eax, byte [0x6add7480]
lea edi, [edx + 0x12]
mov esi, 0x6add7481
mov byte [edx + 0x11], al
mov eax, 0xa1
jmp 0x6ad904e4
xor eax, eax
add edi, 2
mov word [edi - 2], ax
sub esi, 2
jmp 0x6ad90784
mov byte [eax + 0x1d], 0
lea edi, [eax + 0x1e]
mov si, 0xf3
jmp 0x6ad90778
xor eax, eax
add edi, 2
mov word [edi - 2], ax
sub esi, 2
jmp 0x6ad906d6
mov byte [eax + 0xb3], 0
lea edi, [eax + 0xb4]
mov si, 0x5d
jmp 0x6ad906ca
movzx ecx, word [esi]
add edi, 2
add esi, 2
sub eax, 2
mov word [edi - 2], cx
jmp 0x6ad90699
movzx eax, byte [0x6add7560]
lea edi, [ecx + 0x12]
mov esi, 0x6add7561
mov byte [ecx + 0x11], al
mov eax, 0xa1
jmp 0x6ad9068d
xor eax, eax
add edi, 2
mov word [edi - 2], ax
sub esi, 2
jmp 0x6ad90605
mov byte [eax + 0x1d], 0
lea edi, [eax + 0x1e]
mov si, 0xf3
jmp 0x6ad905f9