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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd28
mov eax, dword [0x641a90]
xor eax, esp
mov dword [esp + 0xd24], eax
push esi
mov esi, ecx
mov dword [esp + 0x20], edx
push edi
mov dword [esp + 0x3c], esi
mov eax, dword [esi + 0x8550]
mov ecx, dword [esi + 0x856c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
cmp eax, 1
je 0x42f868
mov dword [esp + 0x1c], ecx
cmp eax, 2
jne 0x42f870
mov dword [esp + 0x1c], 1
lea eax, [edx + 0x6c]
mov dword [esp + 0x48], 0
lea edi, [esi + 0x80c0]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x208]
mov esi, dword [edx + 4]
mov edx, ecx
movd xmm0, edi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x48]
pshufd xmm3, xmm0, 0
mov dword [esp + 0x18], edi
movdqa xmmword [esp + 0x50], xmm3
mov dword [esp + 0x20], esi
mov dword [esp + 0x4c], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], fcn.0040c470
cmp edx, 0x10
jle 0x42f8df
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0xd24]
xor ecx, esp
call fcn.005920c1
mov esp, ebp
pop ebp
mov eax, dword [esp + 0x3c]
cmp dword [eax + 0x68], 0
je 0x42f91f
imul ecx, dword [eax + 0x85e0], 0xf0
mov eax, dword [eax + 0x85f4]
mov al, byte [ecx + eax + 0xc2]
test al, al
je 0x42f91f
mov dl, byte [edi + 0x484]
mov ecx, esi
push eax
call fcn.0042ed90
movdqa xmm3, xmmword [esp + 0x54]
add esp, 4
mov edx, dword [esp + 0x30]
xor ecx, ecx
test edx, edx
jle 0x42f9c0
cmp edx, 8
jb 0x42f9a9
movdqa xmm1, xmmword [0x62d410]
mov eax, edx
and eax, 0x80000007
jns 0x42f944
dec eax
or eax, 0xfffffff8
inc eax
mov edi, edx
lea edx, [esp + 0x78]
sub edi, eax
mov eax, 6
movd xmm2, eax
jmp 0x42f960
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm0, xmm0, 0
lea edx, [edx + 0x20]
paddd xmm0, xmm1
add ecx, 8
pslld xmm0, xmm2
paddd xmm0, xmm3
movdqu xmmword [edx - 0x30], xmm0
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
pslld xmm0, xmm2
paddd xmm0, xmm3
movdqu xmmword [edx - 0x20], xmm0
cmp ecx, edi
jl 0x42f960
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
cmp ecx, edx
jge 0x42f9c0
mov eax, ecx
shl eax, 6
add eax, edi
mov dword [esp + ecx*4 + 0x68], eax
inc ecx
add eax, 0x40
cmp ecx, edx
jl 0x42f9b4
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
cmp dword [eax + 0x85ec], 0
je 0x42f9ed
mov ecx, 0x20
mov dword [edx], 0x7fff
mov eax, 1
mov dword [edx + eax*8], ecx
inc eax
sub ecx, 2
cmp eax, 0x10
jl 0x42f9e1
xor edi, edi
cmp dword [esp + 0x1c], edi
jle 0x42fa50
lea eax, [esp + 0x528]
lea esi, [esp + 0x128]
mov dword [esp + 0x18], eax
push ecx
mov ecx, dword [esp + edi*4 + 0x6c]
push eax
push 0
push dword [esp + 0x20]
push edx
mov edx, esi
call fcn.0042f500
mov edx, dword [esp + 0x24]
add esp, 0x14
mov dword [esp + edi*4 + 0xa8], eax
add esi, 0x40
mov eax, dword [esp + 0x24]
inc edi
mov eax, dword [eax + 0x20c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
sub eax, 0xffffff80
mov dword [esp + 0x18], eax
cmp edi, dword [esp + 0x1c]
jl 0x42fa07
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
cmp edx, 1
je 0x42fa6a
cmp edx, 2
je 0x42fa6a
mov edi, dword [esp + 0xac]
jmp 0x42fb27
xor eax, eax
cmp edx, 1
sete al
lea ecx, [eax*4 + 0x62a1c0]
xor eax, eax
cmp edx, 1
mov dword [esp + 0x28], ecx
setne al
xor edi, edi
xor edx, edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edx
lea eax, [eax*8 + 6]
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x42fb1c
xor esi, esi
mov eax, edx
mov edi, edx
sar eax, 1
and edi, 1
mov ecx, dword [ecx + eax*4]
mov eax, dword [esp + edi*4 + 0x6c]
mov dword [esp + 0x14], ecx
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x44], eax
cdq
xor eax, edx
mov ecx, dword [ecx + 0x20c]
sub eax, edx
sar eax, cl
mov ecx, dword [esp + 0x14]
lea ecx, [ecx + edi*8]
mov edi, dword [esp + 0x10]
mov dword [esp + ecx*4 + 0xe8], eax
test eax, eax
je 0x42fb04
cmp dword [esp + 0x44], 0
mov dword [esp + edi*8 + 0x5a8], esi
jge 0x42faf4
neg eax
mov dword [esp + edi*8 + 0x5ac], eax
inc edi
mov dword [esp + 0x10], edi
xor esi, esi
jmp 0x42fb05
inc esi
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
inc edx
mov dword [esp + 0x18], edx
cmp edx, dword [esp + 0x2c]
jl 0x42faa2
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
mov dword [esp + 0xac], edi
cmp edx, 1
je 0x42fb31
cmp edx, 2
jne 0x42fb3c
mov eax, 2
mov dword [esp + 0x1c], eax
jmp 0x42fb40
mov eax, dword [esp + 0x1c]
cmp edx, 1
je 0x42fbe7
cmp edx, 2
je 0x42fbe7
cmp edx, 3
je 0x42fbe7
xor edi, edi
cmp dword [esp + 0x30], edi
jle 0x42fe1d
jmp 0x42fb70
xor eax, eax
cmp dword [esp + edi*4 + 0xa8], eax
setg al
mov dword [esp + 0x28], eax
test eax, 0xfffffffe
je 0x42fba2
push 0x3d7
push str.....libjxrlib_strcodec.c
push str.0__uiBits____cBits
call fcn.005bb431
mov eax, dword [esp + 0x34]
add esp, 0xc
mov edx, dword [esi + 4]
mov ecx, 0x20
inc dword [esi + 8]
add edx, edx
sub ecx, dword [esi + 8]
or edx, eax
mov eax, dword [esi + 0x14]
inc edi
mov dword [esi + 4], edx
shl edx, cl
bswap edx
mov word [eax], dx
mov ecx, dword [esi + 8]
mov eax, ecx
shr eax, 3
and ecx, 0xf
and eax, 2
mov dword [esi + 8], ecx
add eax, dword [esi + 0x14]
and eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
cmp edi, dword [esp + 0x30]
jl 0x42fb70
jmp 0x42fe1d
lea eax, [eax*4 - 5]
xor ecx, ecx
mov dword [esp + 0x10], eax
test edi, edi
mov eax, dword [esp + 0x24]
setg cl
mov edx, dword [eax + 0x22c]
mov eax, dword [eax + 0x228]
mov dword [esp + 0x28], eax
xor eax, eax
cmp dword [esp + 0xa8], eax
mov dword [esp + 0x2c], edx
setg al
lea ecx, [eax + ecx*2]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
cmp eax, 3
jne 0x42fc44
xor eax, eax
cmp dword [esp + 0xb0], eax
setg al
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
mov edi, dword [esp + 0x28]
test edi, edi
jle 0x42fcaa
test edx, edx
js 0x42fcaa
cmp eax, 0x10
jbe 0x42fc70
push 0x3d6
push str.....libjxrlib_strcodec.c
push str.cBits___16
call fcn.005bb431
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov eax, ecx
mov ecx, dword [esp + 0x1c]
shr eax, cl
test eax, eax
je 0x42fc93
push 0x3d7
push str.....libjxrlib_strcodec.c
push str.0__uiBits____cBits
call fcn.005bb431
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov ecx, eax
mov edx, dword [esi + 4]
shl edx, cl
or edx, dword [esp + 0x14]
add dword [esi + 8], eax
jmp 0x42fd8a
cmp edx, edi
mov eax, ecx
mov edx, dword [esp + 0x10]
jge 0x42fcb8
mov eax, edx
sub eax, ecx
test eax, eax
jne 0x42fcca
shl dword [esi + 4], 1
mov edx, dword [esi + 4]
inc dword [esi + 8]
jmp 0x42fd8d
mov ecx, dword [esp + 0x1c]
cmp eax, 1
jne 0x42fd2d
lea eax, [ecx + 1]
and eax, 6
mov dword [esp + 0x20], eax
cmp ecx, 0x10
jbe 0x42fd01
push 0x3d6
push str.....libjxrlib_strcodec.c
push str.cBits___16
call fcn.005bb431
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x1c]
shr eax, cl
test eax, eax
je 0x42fd22
push 0x3d7
push str.....libjxrlib_strcodec.c
push str.0__uiBits____cBits
call fcn.005bb431
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov edx, dword [esi + 4]
shl edx, cl
or edx, dword [esp + 0x20]
jmp 0x42fd87
inc eax
inc ecx
add eax, edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
cmp ecx, 0x10
jbe 0x42fd5d
push 0x3d6
push str.....libjxrlib_strcodec.c
push str.cBits___16
call fcn.005bb431
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov eax, dword [esp + 0x18]
shr eax, cl
test eax, eax
je 0x42fd7e
push 0x3d7
push str.....libjxrlib_strcodec.c
push str.0__uiBits____cBits
call fcn.005bb431
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov edx, dword [esi + 4]
shl edx, cl
or edx, dword [esp + 0x18]
add dword [esi + 8], ecx
mov dword [esi + 4], edx
mov eax, dword [esi + 0x14]
mov ecx, 0x20
sub ecx, dword [esi + 8]
shl edx, cl
bswap edx
mov word [eax], dx
mov edx, 1
mov ecx, dword [esi + 8]
mov eax, ecx
shr eax, 3
and ecx, 0xf
and eax, 2
mov dword [esi + 8], ecx
add eax, dword [esi + 0x14]
xor ecx, ecx
and eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
mov eax, edx
sete cl
shl ecx, 2
sub eax, ecx
mov ecx, dword [esp + 0x2c]
add ecx, eax
xor eax, eax
cmp dword [esp + 0x14], eax
sete al
shl eax, 2
sub edx, eax
add edi, edx
mov edx, 7
cmp ecx, 0xfffffff8
jge 0x42fdf7
lea ecx, [edx - 0xf]
jmp 0x42fdfc
cmp ecx, edx
cmovg ecx, edx
mov eax, dword [esp + 0x24]
mov dword [eax + 0x22c], ecx
cmp edi, 0xfffffff8
jge 0x42fe12
mov edi, 0xfffffff8
jmp 0x42fe17
cmp edi, edx
cmovg edi, edx
mov dword [eax + 0x228], edi
mov edi, dword [esp + 0x24]
mov ecx, dword [edi + 0x208]
mov dword [esp + 0x14], ecx
cmp ecx, 0xe
jg 0x42fe39
cmp dword [edi + 0x20c], 0xe
jle 0x42fe41
mov dword [esp + 0x40], fcn.0040c4b0
xor eax, eax
mov dword [esp + 0x10], eax
cmp dword [esp + 0x1c], eax
jle 0x430161
shl eax, 7
lea edi, [esp + 0x528]
add edi, eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + eax*4 + 0xa8]
test edx, edx
je 0x42fec2
mov ecx, dword [esp + 0x38]
add dword [ecx], edx
cmp dword [esp + 0x34], 1
jne 0x430063
cmp eax, 1
jne 0x430063
mov ecx, eax
xor eax, eax
lea eax, [eax + ecx*8]
inc eax
add eax, ecx
xor ecx, ecx
push eax
mov eax, dword [esp + 0x28]
push esi
add eax, 0x18
push 5
push eax
mov eax, dword [esp + 0x20]
test eax, eax
push edx
setg cl
mov edx, edi
call fcn.00430940
add esp, 0x14
test eax, eax
jne 0x42f8c8
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test ecx, ecx
je 0x430138
mov edx, dword [esp + 0x34]
cmp edx, 1
je 0x42fedc
cmp edx, 2
jne 0x43007e
test eax, eax
je 0x43007e
xor eax, eax
cmp edx, 1
setne al
lea eax, [eax*4 + 4]
cmp eax, 1
jle 0x430138
mov edi, dword [esp + 0x6c]
lea edx, [esp + 0xe8]
sub edx, dword [esp + 0x6c]
add edi, 4
mov dword [esp + 0x28], edx
lea edx, [esp + 0x108]
sub edx, dword [esp + 0x6c]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x70]
sub edx, dword [esp + 0x6c]
dec eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], eax
mov eax, dword [edi]
cdq
xor eax, edx
push ecx
sub eax, edx
push eax
push esi
call dword [esp + 0x4c]
mov eax, dword [esp + 0x34]
add esp, 0xc
cmp dword [eax + edi], 0
jne 0x42ffb9
mov ecx, dword [edi]
test ecx, ecx
je 0x42ffb9
xor eax, eax
test ecx, ecx
sets al
mov dword [esp + 0x2c], eax
test eax, 0xfffffffe
je 0x42ff80
push 0x3d7
push str.....libjxrlib_strcodec.c
push str.0__uiBits____cBits
call fcn.005bb431
mov eax, dword [esp + 0x38]
add esp, 0xc
mov edx, dword [esi + 4]
mov ecx, 0x20
inc dword [esi + 8]
add edx, edx
sub ecx, dword [esi + 8]
or edx, eax
mov eax, dword [esi + 0x14]
mov dword [esi + 4], edx
shl edx, cl
bswap edx
mov word [eax], dx
mov ecx, dword [esi + 8]
mov eax, ecx
shr eax, 3
and eax, 2
add eax, dword [esi + 0x14]
and eax, dword [esi + 0xc]
and ecx, 0xf
mov dword [esi + 0x14], eax
mov dword [esi + 8], ecx
mov eax, dword [esp + 0x20]
push dword [esp + 0x14]
mov eax, dword [eax + edi]
cdq
xor eax, edx
sub eax, edx
push eax
push esi
call dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
add esp, 0xc
cmp dword [eax + edi], 0
jne 0x43004d
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + edi]
test ecx, ecx
je 0x43004d
xor eax, eax
test ecx, ecx
sets al
mov dword [esp + 0x2c], eax
test eax, 0xfffffffe
je 0x430014
push 0x3d7
push str.....libjxrlib_strcodec.c
push str.0__uiBits____cBits
call fcn.005bb431
mov eax, dword [esp + 0x38]
add esp, 0xc
mov edx, dword [esi + 4]
mov ecx, 0x20
inc dword [esi + 8]
add edx, edx
sub ecx, dword [esi + 8]
or edx, eax
mov eax, dword [esi + 0x14]
mov dword [esi + 4], edx
shl edx, cl
bswap edx
mov word [eax], dx
mov ecx, dword [esi + 8]
mov eax, ecx
shr eax, 3
and eax, 2
add eax, dword [esi + 0x14]
and eax, dword [esi + 0xc]
and ecx, 0xf
mov dword [esi + 0x14], eax
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x14]
add edi, 4
dec dword [esp + 0x18]
jne 0x42ff32
jmp 0x430138
xor ecx, ecx
cmp dword [esp + 0x34], 2
jne 0x42fe88
cmp eax, 1
jne 0x42fe88
jmp 0x42fe8a
shl eax, 6
mov dword [esp + 0x38], 0xf
lea eax, [esp + eax + 0x12c]
mov dword [esp + 0x18], eax
mov eax, dword [eax]
mov edi, eax
and edi, 1
sar eax, 1
add edi, ecx
mov dword [esp + 0x20], eax
cmp edi, 0x10
jbe 0x4300c3
push 0x3d6
push str.....libjxrlib_strcodec.c
push str.cBits___16
call fcn.005bb431
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov ecx, edi
shr eax, cl
test eax, eax
je 0x4300e2
push 0x3d7
push str.....libjxrlib_strcodec.c
push str.0__uiBits____cBits
call fcn.005bb431
add esp, 0xc
mov edx, dword [esi + 4]
mov ecx, edi
add dword [esi + 8], edi
mov eax, dword [esi + 0x14]
shl edx, cl
mov ecx, 0x20
sub ecx, dword [esi + 8]
or edx, dword [esp + 0x20]
mov dword [esi + 4], edx
shl edx, cl
bswap edx
mov word [eax], dx
mov ecx, dword [esi + 8]
mov eax, ecx
shr eax, 3
and ecx, 0xf
and eax, 2
mov dword [esi + 8], ecx
add eax, dword [esi + 0x14]
and eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x18]
add eax, 4
dec dword [esp + 0x38]
mov dword [esp + 0x18], eax
jne 0x430094
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x4c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10]
inc eax
mov ecx, dword [edi + 0x20c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x1c]
jl 0x42fe51
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
xor eax, ecx
test eax, 0x1000
je 0x430194
mov eax, dword [esi + 0x18]
push 0x1000
push ecx
push eax
mov eax, dword [eax + 0x20]
call eax
add esp, 0xc
test eax, eax
js 0x430194
mov eax, dword [esi + 0x10]
add eax, 0x1000
and eax, dword [esi + 0xc]
mov dword [esi + 0x10], eax
mov edx, dword [esp + 0x30]
lea eax, [edi + 0x200]
mov ecx, dword [esp + 0x34]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00435630
mov eax, dword [esp + 0x44]
add esp, 8
cmp dword [eax + 0x85f0], 0
je 0x4301c4
mov ecx, edi
call fcn.004301e0
mov ecx, dword [esp + 0xd2c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.005920c1
mov esp, ebp
pop ebp
ret