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

Disassembly:
sub esp, 0x130
push esi
mov esi, ecx
cmp dword [esi + 0x88], 1
jne 0x491ddf
xor eax, eax
cmp dword [esi + 0xbc], eax
jle 0x491dc1
lea ecx, [esi + 0x78]
nop
cmp dword [ecx], 0
jne 0x491dc1
inc eax
add ecx, 4
cmp eax, dword [esi + 0xbc]
jl 0x491db0
lea eax, [eax + eax*4]
lea ecx, [esi + eax*4]
mov eax, dword [esi + 0x18]
cdq
idiv dword [ecx + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x1c]
cdq
idiv dword [ecx + 0x30]
mov dword [esp + 0x10], eax
jmp 0x491ded
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov dword [esp + 4], ecx
mov dword [esp + 0x10], edx
xor eax, eax
cmp dword [esi + 0x14], eax
mov dword [esp + 0x14], eax
jle 0x49224b
push ebx
push ebp
push edi
nop
cmp dword [esi + 0x10], 0
mov dword [esp + 0x14], 0
jle 0x492213
cmp dword [esi + 0xcc], 0
jle 0x491eb8
cmp dword [esi + 0xdb4], 0
jne 0x491eb8
lea esp, [esp]
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
cmp eax, 0xff
je 0x491e46
cmp eax, 0xffffffff
jne 0x491e30
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
cmp eax, 0xff
je 0x491e46
test eax, eax
je 0x491e30
mov ecx, dword [esi + 0xdb8]
cmp eax, ecx
jne 0x49222f
lea eax, [ecx + 1]
mov dword [esi + 0xdb8], eax
cmp eax, 0xd8
jne 0x491e83
mov dword [esi + 0xdb8], 0xd0
mov eax, dword [esi + 0xcc]
xor edx, edx
mov dword [esi + 0xdb4], eax
xor eax, eax
cmp dword [esi + 0xbc], edx
mov dword [esi + 0xdc4], edx
jle 0x491eb2
lea ecx, [esi + 0x38]
mov dword [ecx], edx
inc eax
add ecx, 0x14
cmp eax, dword [esi + 0xbc]
jl 0x491ea4
mov dword [esi + 0xdbc], edx
cmp dword [esi + 0xbc], 0
mov dword [esp + 0x34], 0
jle 0x4921f4
lea ebx, [esi + 0x9c]
lea ecx, [esi + 0x30]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ecx
mov edi, edi
cmp dword [ebx - 0x24], 0
je 0x4921d1
mov eax, dword [esi + 0x18]
cdq
idiv dword [ecx - 4]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x1c]
cdq
idiv dword [ecx]
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov ebp, eax
cdq
and edx, 7
add eax, edx
mov edi, eax
sar edi, 3
cmp dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], ebp
jle 0x4921cd
lea esp, [esp]
xor eax, eax
cmp dword [esp + 0x10], eax
mov dword [esp + 0x28], eax
jle 0x4921bd
mov edx, dword [esp + 0x20]
add ecx, edx
mov dword [esp + 0x30], ecx
lea ebx, [ebx]
mov ecx, dword [esi + 0x20]
imul ecx, dword [esp + 0x30]
mov edx, dword [ebx + 0xcfc]
add ecx, eax
add ecx, dword [esp + 0x14]
mov ebx, 2
lea eax, [edx + ecx*4]
mov edx, dword [esi + 0x20]
imul edx, edi
add edx, edx
add edx, edx
lea ecx, [esp + 0x44]
lea ebx, [ebx]
mov ebp, dword [eax]
mov dword [ecx - 4], ebp
mov ebp, dword [eax + 4]
mov dword [ecx], ebp
mov ebp, dword [eax + 8]
mov dword [ecx + 4], ebp
mov ebp, dword [eax + 0xc]
mov dword [ecx + 8], ebp
mov ebp, dword [eax + 0x10]
mov dword [ecx + 0xc], ebp
mov ebp, dword [eax + 0x14]
mov dword [ecx + 0x10], ebp
mov ebp, dword [eax + 0x18]
mov dword [ecx + 0x14], ebp
mov ebp, dword [eax + 0x1c]
mov dword [ecx + 0x18], ebp
mov ebp, dword [eax + edx]
mov dword [ecx + 0x1c], ebp
mov ebp, dword [eax + edx + 4]
mov dword [ecx + 0x20], ebp
mov ebp, dword [eax + edx + 8]
add eax, edx
mov dword [ecx + 0x24], ebp
mov ebp, dword [eax + 0xc]
mov dword [ecx + 0x28], ebp
mov ebp, dword [eax + 0x10]
mov dword [ecx + 0x2c], ebp
mov ebp, dword [eax + 0x14]
mov dword [ecx + 0x30], ebp
mov ebp, dword [eax + 0x18]
mov dword [ecx + 0x34], ebp
mov ebp, dword [eax + 0x1c]
mov dword [ecx + 0x38], ebp
mov ebp, dword [eax + edx]
mov dword [ecx + 0x3c], ebp
mov ebp, dword [eax + edx + 4]
add eax, edx
mov dword [ecx + 0x40], ebp
mov ebp, dword [eax + 8]
mov dword [ecx + 0x44], ebp
mov ebp, dword [eax + 0xc]
mov dword [ecx + 0x48], ebp
mov ebp, dword [eax + 0x10]
mov dword [ecx + 0x4c], ebp
mov ebp, dword [eax + 0x14]
mov dword [ecx + 0x50], ebp
mov ebp, dword [eax + 0x18]
mov dword [ecx + 0x54], ebp
mov ebp, dword [eax + 0x1c]
add eax, edx
mov dword [ecx + 0x58], ebp
mov ebp, dword [eax]
mov dword [ecx + 0x5c], ebp
mov ebp, dword [eax + 4]
mov dword [ecx + 0x60], ebp
mov ebp, dword [eax + 8]
mov dword [ecx + 0x64], ebp
mov ebp, dword [eax + 0xc]
mov dword [ecx + 0x68], ebp
mov ebp, dword [eax + 0x10]
mov dword [ecx + 0x6c], ebp
mov ebp, dword [eax + 0x14]
mov dword [ecx + 0x70], ebp
mov ebp, dword [eax + 0x18]
mov dword [ecx + 0x74], ebp
mov ebp, dword [eax + 0x1c]
mov dword [ecx + 0x78], ebp
add eax, edx
sub ecx, 0xffffff80
sub ebx, 1
jne 0x491f70
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
mov edx, dword [ebx]
add ecx, 8
imul edx, edx, 0x156
lea eax, [esp + 0x40]
push eax
push ecx
mov ecx, dword [ebx - 0x10]
imul ecx, ecx, 0x156
cmp dword [esi + 8], 0
lea eax, [edx + esi + 0x82c]
lea edx, [ecx + esi + 0x2d4]
push eax
push edx
mov ecx, esi
je 0x492085
call fcn.00490710
jmp 0x49208a
call fcn.00490630
test eax, eax
je 0x492248
mov eax, dword [esi + 0x20]
imul eax, dword [esp + 0x30]
add eax, dword [esp + 0x28]
mov ecx, dword [ebx + 0xcfc]
add eax, dword [esp + 0x14]
mov edx, 2
lea ecx, [ecx + eax*4]
lea eax, [esp + 0x44]
mov ebp, dword [eax - 4]
mov dword [ecx], ebp
mov ebp, dword [eax]
mov dword [ecx + 4], ebp
mov ebp, dword [eax + 4]
mov dword [ecx + 8], ebp
mov ebp, dword [eax + 8]
mov dword [ecx + 0xc], ebp
mov ebp, dword [eax + 0xc]
mov dword [ecx + 0x10], ebp
mov ebp, dword [eax + 0x10]
mov dword [ecx + 0x14], ebp
mov ebp, dword [eax + 0x14]
mov dword [ecx + 0x18], ebp
mov ebp, dword [eax + 0x18]
mov dword [ecx + 0x1c], ebp
mov ebp, dword [esi + 0x20]
imul ebp, edi
lea ecx, [ecx + ebp*4]
mov ebp, dword [eax + 0x1c]
mov dword [ecx], ebp
mov ebp, dword [eax + 0x20]
mov dword [ecx + 4], ebp
mov ebp, dword [eax + 0x24]
mov dword [ecx + 8], ebp
mov ebp, dword [eax + 0x28]
mov dword [ecx + 0xc], ebp
mov ebp, dword [eax + 0x2c]
mov dword [ecx + 0x10], ebp
mov ebp, dword [eax + 0x30]
mov dword [ecx + 0x14], ebp
mov ebp, dword [eax + 0x34]
mov dword [ecx + 0x18], ebp
mov ebp, dword [eax + 0x38]
mov dword [ecx + 0x1c], ebp
mov ebp, dword [esi + 0x20]
imul ebp, edi
lea ecx, [ecx + ebp*4]
mov ebp, dword [eax + 0x3c]
mov dword [ecx], ebp
mov ebp, dword [eax + 0x40]
mov dword [ecx + 4], ebp
mov ebp, dword [eax + 0x44]
mov dword [ecx + 8], ebp
mov ebp, dword [eax + 0x48]
mov dword [ecx + 0xc], ebp
mov ebp, dword [eax + 0x4c]
mov dword [ecx + 0x10], ebp
mov ebp, dword [eax + 0x50]
mov dword [ecx + 0x14], ebp
mov ebp, dword [eax + 0x54]
mov dword [ecx + 0x18], ebp
mov ebp, dword [eax + 0x58]
mov dword [ecx + 0x1c], ebp
mov ebp, dword [esi + 0x20]
imul ebp, edi
lea ecx, [ecx + ebp*4]
mov ebp, dword [eax + 0x5c]
mov dword [ecx], ebp
mov ebp, dword [eax + 0x60]
mov dword [ecx + 4], ebp
mov ebp, dword [eax + 0x64]
mov dword [ecx + 8], ebp
mov ebp, dword [eax + 0x68]
mov dword [ecx + 0xc], ebp
mov ebp, dword [eax + 0x6c]
mov dword [ecx + 0x10], ebp
mov ebp, dword [eax + 0x70]
mov dword [ecx + 0x14], ebp
mov ebp, dword [eax + 0x74]
mov dword [ecx + 0x18], ebp
mov ebp, dword [eax + 0x78]
mov dword [ecx + 0x1c], ebp
mov ebp, dword [esi + 0x20]
imul ebp, edi
sub eax, 0xffffff80
sub edx, 1
lea ecx, [ecx + ebp*4]
jne 0x4920b4
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x28], eax
jl 0x491f40
mov ecx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x3c]
add ecx, ebp
cmp ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], ecx
jl 0x491f20
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
inc eax
add ecx, 0x14
add ebx, 4
cmp eax, dword [esi + 0xbc]
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], ebx
jl 0x491ee0
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x10]
dec dword [esi + 0xdb4]
cmp eax, dword [esi + 0x10]
mov dword [esp + 0x14], eax
jl 0x491e12
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x1c]
cmp eax, dword [esi + 0x14]
mov dword [esp + 0x20], eax
jl 0x491e00
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x130
ret
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
push str.Bad_DCT_data:_incorrect_restart_marker
mov ecx, esi
call eax
push eax
push 1
call fcn.00489570
add esp, 0xc
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x130
ret