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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
add esp, 0xffffff80
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x9c]
neg eax
mov ecx, dword [esp + 0x9c]
mov esi, dword [esp + 0x9c]
mov dword [esp + 0x38], 4
lea edi, [eax + eax]
mov dword [esp + 0x20], eax
shl eax, 2
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x9c]
add ecx, ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x9c]
shl edi, 2
mov dword [esp + 0x48], ecx
add ecx, dword [esp + 0x9c]
sub edx, edi
shl eax, 3
mov dword [esp + 0x5c], edi
add edi, dword [esp + 0x9c]
sub esi, eax
lea eax, [edx + edx]
mov dword [esp + 0x64], edi
neg edi
mov dword [esp + 0x60], eax
lea eax, [ecx + ecx]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], esi
mov dword [esp + 0x58], edi
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x28]
movzx edi, byte [ebx]
movzx ecx, byte [ebx + eax]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], edi
movzx edx, byte [ebx + eax]
mov eax, dword [esp + 0x9c]
mov dword [esp + 4], ecx
sub ecx, edx
movzx eax, byte [ebx + eax]
mov dword [esp], edx
mov esi, ecx
sar esi, 0x1f
mov dword [esp + 0xc], eax
mov edx, esi
xor edx, ecx
sub edx, esi
cmp edx, dword [esp + 0x14]
jg 0x684a25d0
mov esi, eax
sub esi, edi
mov ebp, esi
sar ebp, 0x1f
xor esi, ebp
sub esi, ebp
cmp esi, dword [esp + 0x14]
jg 0x684a25d0
mov esi, dword [esp]
sub esi, dword [esp + 0x10]
mov edi, esi
sar esi, 0x1f
xor edi, esi
sub edi, esi
mov esi, dword [esp + 4]
mov ebp, edi
sub esi, eax
mov edi, esi
sar edi, 0x1f
xor esi, edi
sub esi, edi
sar esi, 1
lea esi, [esi + ebp*2]
cmp esi, dword [esp + 0x7c]
jg 0x684a25d0
cmp dword [esp + 0xa0], 4
jne 0x684a2c80
lea esi, [esi]
lea edi, [edi]
movzx ecx, byte [esp + 0x34]
and ecx, 1
cmp dword [esp + 0xa0], 6
jne 0x684a29f8
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x684a29f8
mov edi, dword [esp + 4]
mov eax, dword [esp]
mov dword [esp + 0x34], 1
mov ebp, dword [esp + 0x10]
lea ecx, [edi + edi]
mov edi, dword [esp + 8]
lea edx, [eax + eax]
lea esi, [edi + edi*2]
add esi, ecx
add ecx, edi
mov edi, dword [esp + 0x20]
add esi, edx
add ecx, edx
add edx, dword [esp + 4]
lea esi, [ebp + esi + 4]
sar esi, 3
mov eax, esi
mov esi, dword [esp + 0x28]
mov byte [ebx + esi], al
lea esi, [ebp + ebp]
mov eax, dword [esp + 0xc]
add ecx, esi
add edx, esi
lea ecx, [eax + ecx + 4]
sar ecx, 3
mov byte [ebx + edi], cl
lea ecx, [eax + eax]
mov eax, dword [esp]
mov edi, dword [esp + 0x18]
add edx, ecx
add eax, esi
add eax, ecx
lea edx, [edi + edx + 4]
lea eax, [eax + edi*2]
sar edx, 3
lea eax, [edi + eax + 4]
mov edi, dword [esp + 0x9c]
mov byte [ebx], dl
sar eax, 3
mov byte [ebx + edi], al
nop
lea esi, [esi]
add ebx, dword [esp + 0x98]
sub dword [esp + 0x38], 1
jne 0x684a245d
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esp + 0xa0], 4
je 0x684a25b0
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
movzx eax, byte [ebx + eax]
movzx ebp, byte [ebx + edi]
mov dword [esp + 8], eax
sub eax, dword [esp + 4]
mov edi, eax
mov esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
sar edi, 0x1f
xor esi, edi
sub esi, edi
cmp esi, eax
jg 0x684a2b00
mov esi, ebp
sub esi, dword [esp + 0xc]
mov edi, esi
sar edi, 0x1f
xor esi, edi
sub esi, edi
mov edi, dword [esp + 0x50]
cmp esi, eax
setle al
movzx eax, al
and edi, eax
cmp dword [esp + 0xa0], 6
mov dword [esp + 0x50], edi
jg 0x684a2b16
mov eax, dword [esp + 0x50]
test eax, eax
je 0x684a25b0
cmp dword [esp + 0xa0], 0x10
jne 0x684a2a90
mov esi, dword [esp + 0x60]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x68], 0
movzx ebp, byte [ebx + esi]
mov esi, dword [esp + 0x58]
movzx eax, byte [ebx + eax]
movzx esi, byte [ebx + esi]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x44], eax
sub eax, dword [esp]
mov edi, esi
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x5c]
movzx esi, byte [ebx + esi]
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x64]
movzx esi, byte [ebx + esi]
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x78]
movzx esi, byte [ebx + esi]
mov dword [esp + 0x2c], esi
mov esi, eax
add esi, 1
cmp esi, 2
ja 0x684a26d0
mov eax, dword [esp]
mov esi, ebp
sub esi, eax
add esi, 1
cmp esi, 2
jbe 0x684a2b63
mov esi, dword [esp + 8]
sub esi, dword [esp]
add esi, 1
cmp esi, 2
jbe 0x684a2ab0
xor esi, esi
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp]
add ecx, 1
cmp ecx, 2
ja 0x684a29e0
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x10]
add ecx, 1
cmp ecx, 2
ja 0x684a29e0
cmp dword [esp + 0xa0], 0x10
jne 0x684a2c8d
mov eax, dword [esp + 0x68]
and eax, esi
mov dword [esp + 0x34], eax
je 0x684a2c8d
mov ebp, dword [esp + 0x44]
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x1c]
lea edx, [ebp*8]
sub edx, ebp
lea edx, [edx + eax*2]
mov eax, dword [esp + 0x30]
lea ecx, [eax + eax]
mov eax, dword [esp + 0x10]
lea esi, [edx + ecx]
add esi, edi
add esi, dword [esp + 8]
add esi, dword [esp + 4]
add esi, dword [esp]
lea esi, [eax + esi + 8]
sar esi, 4
mov eax, esi
mov esi, dword [esp + 0x60]
mov byte [ebx + esi], al
lea esi, [edi + edi]
lea edi, [ebp + ebp]
mov eax, dword [esp + 0x10]
sub edx, edi
mov edi, dword [esp + 0xc]
mov dword [esp + 0x50], esi
add edx, ecx
add edx, esi
add edx, dword [esp + 8]
add edx, dword [esp + 4]
add edx, dword [esp]
mov esi, dword [esp + 0x58]
add edx, eax
lea edx, [edi + edx + 8]
sar edx, 4
mov byte [ebx + esi], dl
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x6c]
lea edx, [edx + ebp*4]
mov ebp, dword [esp + 8]
add ecx, edx
add ecx, dword [esp + 0x50]
sub edx, dword [esp + 0x44]
add ebp, ebp
add ecx, ebp
add ecx, dword [esp + 4]
add ecx, dword [esp]
mov dword [esp + 0x10], ebp
add ecx, eax
mov ebp, dword [esp + 0x18]
add ecx, edi
mov edi, dword [esp + 4]
lea ecx, [ebp + ecx + 8]
sar ecx, 4
add edi, edi
mov byte [ebx + esi], cl
mov ecx, dword [esp + 0x30]
add ecx, edx
add ecx, dword [esp + 0x50]
add ecx, dword [esp + 0x10]
add ecx, edi
add ecx, dword [esp]
mov esi, dword [esp + 0x24]
add ecx, eax
add ecx, dword [esp + 0xc]
add ecx, ebp
sub edx, dword [esp + 0x44]
lea ecx, [esi + ecx + 8]
mov esi, dword [esp + 0x4c]
sar ecx, 4
mov byte [ebx + esi], cl
mov ecx, dword [esp]
lea esi, [ecx + ecx]
mov ecx, dword [esp + 0x30]
add ecx, edx
add ecx, dword [esp + 0x1c]
add ecx, dword [esp + 0x10]
add ecx, edi
sub edx, dword [esp + 0x44]
add edx, dword [esp + 0x30]
add ecx, esi
add edx, dword [esp + 0x1c]
add edx, dword [esp + 8]
add ecx, eax
add ecx, dword [esp + 0xc]
add edx, edi
mov edi, dword [esp + 0xc]
add ecx, ebp
mov ebp, dword [esp + 0x3c]
add ecx, dword [esp + 0x24]
add edx, esi
lea ecx, [ebp + ecx + 8]
mov ebp, dword [esp + 0x28]
sar ecx, 4
mov byte [ebx + ebp], cl
lea ecx, [eax + eax]
mov ebp, dword [esp + 0x40]
add edx, ecx
add edx, edi
add edx, dword [esp + 0x18]
add edx, dword [esp + 0x24]
add edi, edi
add edx, dword [esp + 0x3c]
lea edx, [ebp + edx + 8]
mov ebp, dword [esp + 0x20]
sar edx, 4
mov byte [ebx + ebp], dl
mov edx, dword [esp + 0x30]
add edx, dword [esp + 0x54]
add edx, dword [esp + 0x1c]
add edx, dword [esp + 8]
add edx, dword [esp + 4]
add edx, esi
mov ebp, dword [esp + 0x18]
add edx, ecx
add edx, edi
add edx, ebp
add edx, dword [esp + 0x24]
mov esi, dword [esp + 0x2c]
add edx, dword [esp + 0x3c]
add edx, dword [esp + 0x40]
lea edx, [esi + edx + 8]
mov esi, ebp
mov ebp, dword [esp + 0x24]
sar edx, 4
add esi, esi
mov byte [ebx], dl
mov edx, dword [esp + 0x30]
add edx, dword [esp + 0x1c]
add edx, dword [esp + 8]
add edx, dword [esp + 4]
add edx, dword [esp]
add edx, ecx
mov ecx, dword [esp + 0x2c]
add edx, edi
add edx, esi
add edx, ebp
add edx, dword [esp + 0x3c]
add edx, dword [esp + 0x40]
lea edx, [edx + ecx*2 + 8]
mov ecx, dword [esp + 0x9c]
sar edx, 4
mov byte [ebx + ecx], dl
mov edx, dword [esp + 0x1c]
mov ecx, ebp
add edx, dword [esp + 8]
add edx, dword [esp + 4]
add ecx, ecx
add edx, dword [esp]
mov ebp, dword [esp + 0x3c]
add edx, eax
add edx, edi
mov edi, dword [esp + 0x2c]
add edx, esi
add edx, ecx
add edx, ebp
add edx, dword [esp + 0x40]
lea edx, [edx + edi*2]
lea edx, [edi + edx + 8]
mov edi, dword [esp + 0x48]
sar edx, 4
mov byte [ebx + edi], dl
lea edi, [ebp + ebp]
mov edx, dword [esp + 4]
mov ebp, dword [esp + 8]
add edx, ebp
add edx, dword [esp]
mov ebp, dword [esp + 0x40]
add edx, eax
add edx, dword [esp + 0xc]
add edx, esi
mov esi, dword [esp + 0x2c]
add edx, ecx
add edx, edi
add edx, ebp
lea edx, [edx + esi*4 + 8]
mov esi, dword [esp + 0x70]
sar edx, 4
mov byte [ebx + esi], dl
lea esi, [ebp + ebp]
mov ebp, dword [esp + 0xc]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 4]
add esi, dword [esp]
mov edx, dword [esp + 0x5c]
add esi, eax
add eax, dword [esp]
add esi, ebp
add esi, dword [esp + 0x18]
add eax, ebp
add eax, dword [esp + 0x18]
add ecx, esi
add eax, dword [esp + 0x24]
mov esi, dword [esp + 0x2c]
add ecx, edi
add edi, eax
add edi, dword [esp + 0x10]
add ecx, dword [esp + 0x10]
lea eax, [edi + esi*4]
lea ecx, [ecx + esi*4]
mov edi, dword [esp + 0x64]
lea eax, [eax + esi*2]
lea ecx, [esi + ecx + 8]
lea eax, [esi + eax + 8]
sar ecx, 4
sar eax, 4
mov byte [ebx + edx], cl
mov byte [ebx + edi], al
mov eax, dword [esp + 0x34]
mov dword [esp + 0x68], eax
jmp 0x684a25b0
xor ecx, ecx
cmp dword [esp + 0xa0], 6
mov dword [esp + 0x34], 0
je 0x684a2520
mov edi, dword [esp + 0x10]
mov ecx, edi
sub ecx, dword [esp]
lea ecx, [ecx + ecx*2]
cmp edx, dword [esp + 0x94]
jle 0x684a2bb5
mov edx, dword [esp + 4]
sub edx, dword [esp + 0xc]
mov edi, 0x7f
mov eax, 0xffffff80
cmp edx, 0x7f
mov esi, 0xff
mov ebp, dword [esp + 0x20]
cmovg edx, edi
cmp edx, 0xffffff80
cmovl edx, eax
add ecx, edx
cmp ecx, 0x7f
cmovg ecx, edi
cmp ecx, 0xffffff80
cmovl ecx, eax
mov eax, dword [esp]
lea edx, [ecx + 3]
cmp edx, 0x7f
cmovg edx, edi
sar edx, 3
add eax, edx
cmp eax, 0xff
cmovg eax, esi
xor edx, edx
test eax, eax
cmovs eax, edx
add ecx, 4
cmp ecx, 0x7f
cmovg ecx, edi
mov byte [ebx + ebp], al
mov eax, dword [esp + 0x10]
sar ecx, 3
sub eax, ecx
cmp eax, 0xff
cmovg eax, esi
test eax, eax
cmovs eax, edx
mov byte [ebx], al
jmp 0x684a25b0
cmp dword [esp + 0xa0], 5
je 0x684a2500
mov esi, dword [esp + 8]
sub esi, dword [esp]
lea eax, [esi + 1]
xor esi, esi
cmp eax, 2
ja 0x684a2adf
nop
add ecx, 1
xor esi, esi
cmp ecx, 2
ja 0x684a2adf
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, eax
add ecx, 1
cmp ecx, 2
ja 0x684a2adf
mov ecx, dword [esp + 0x18]
sub ecx, eax
xor eax, eax
add ecx, 1
cmp ecx, 2
setbe al
mov esi, eax
cmp dword [esp + 0xa0], 7
jg 0x684a26e5
mov ecx, esi
mov dword [esp + 0x34], esi
and ecx, 1
jmp 0x684a2508
cmp dword [esp + 0xa0], 6
jle 0x684a25b0
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x70]
movzx eax, byte [ebx + eax]
movzx ebp, byte [ebx + edi]
mov dword [esp + 0x1c], eax
sub eax, dword [esp + 8]
mov esi, eax
sar eax, 0x1f
mov dword [esp + 0x24], ebp
xor esi, eax
sub esi, eax
mov eax, dword [esp + 0x14]
cmp esi, eax
jg 0x684a25b0
mov esi, ebp
sub esi, dword [esp + 0x18]
mov edi, esi
sar edi, 0x1f
xor esi, edi
sub esi, edi
cmp esi, eax
jg 0x684a25b0
jmp 0x684a2644
mov esi, edi
sub esi, eax
add esi, 1
cmp esi, 2
ja 0x684a26d0
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
sub esi, eax
add esi, 1
cmp esi, 2
ja 0x684a26d0
mov esi, dword [esp + 0x40]
sub esi, eax
add esi, 1
cmp esi, 2
ja 0x684a26d0
mov esi, dword [esp + 0x2c]
sub esi, eax
xor eax, eax
add esi, 1
cmp esi, 2
setbe al
mov dword [esp + 0x68], eax
jmp 0x684a26d0
mov ebp, dword [esp + 0xc]
mov edx, ebp
sub edx, edi
mov esi, edx
sar esi, 0x1f
xor edx, esi
sub edx, esi
cmp edx, dword [esp + 0x94]
jg 0x684a2a11
mov eax, 0x7f
cmp ecx, 0x7f
mov edx, 0xffffff80
mov esi, 0xff
cmovg ecx, eax
cmp ecx, 0xffffff80
cmovl ecx, edx
lea edx, [ecx + 4]
cmp edx, 0x7f
cmovg edx, eax
add ecx, 3
sar edx, 3
cmp ecx, 0x7f
cmovg ecx, eax
mov eax, dword [esp]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x20]
sar ecx, 3
add eax, ecx
cmp eax, 0xff
cmovg eax, esi
xor ecx, ecx
test eax, eax
cmovs eax, ecx
mov byte [ebx + edx], al
mov eax, edi
mov edi, dword [esp + 0xc]
sub eax, edi
cmp eax, 0xff
cmovg eax, esi
test eax, eax
cmovs eax, ecx
add edi, 1
mov edx, edi
mov edi, dword [esp + 0x28]
mov byte [ebx], al
mov eax, dword [esp + 4]
sar edx, 1
add eax, edx
cmp eax, 0xff
cmovg eax, esi
test eax, eax
cmovs eax, ecx
mov byte [ebx + edi], al
mov eax, ebp
mov edi, dword [esp + 0x9c]
sub eax, edx
cmp eax, 0xff
cmovg eax, esi
test eax, eax
cmovs eax, ecx
mov byte [ebx + edi], al
jmp 0x684a25b0
mov dword [esp + 0x50], 1
jmp 0x684a25e2
mov ecx, esi
and ecx, 1
test cl, cl
je 0x684a2d6d
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x4c]
lea edx, [ebp + ebp]
lea ecx, [edx + ebp]
add edx, esi
lea ecx, [ecx + esi*2]
add ecx, dword [esp + 4]
add ecx, dword [esp]
lea ecx, [eax + ecx + 4]
mov esi, dword [esp + 0xc]
sar ecx, 3
mov byte [ebx + edi], cl
mov ecx, dword [esp + 4]
mov edi, dword [esp + 0x28]
lea ecx, [edx + ecx*2]
sub edx, ebp
add ecx, dword [esp]
mov ebp, dword [esp]
add ecx, eax
add edx, dword [esp + 4]
lea ecx, [esi + ecx + 4]
lea edx, [edx + ebp*2]
sar ecx, 3
add edx, eax
mov byte [ebx + edi], cl
add edx, esi
mov ecx, esi
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
lea edx, [esi + edx + 4]
sar edx, 3
mov byte [ebx + edi], dl
mov edx, dword [esp + 8]
mov edi, ebp
add edx, dword [esp + 4]
add edx, ebp
mov ebp, dword [esp + 0x24]
lea edx, [edx + eax*2]
add edx, ecx
add edx, esi
lea edx, [ebp + edx + 4]
sar edx, 3
mov byte [ebx], dl
mov edx, dword [esp + 4]
add edx, edi
mov edi, dword [esp + 0x9c]
add edx, eax
add eax, dword [esp]
lea edx, [edx + ecx*2]
add eax, ecx
add edx, esi
lea eax, [eax + esi*2]
lea edx, [edx + ebp*2 + 4]
lea eax, [eax + ebp*2]
sar edx, 3
lea eax, [ebp + eax + 4]
mov byte [ebx + edi], dl
mov edi, dword [esp + 0x48]
sar eax, 3
mov byte [ebx + edi], al
mov eax, dword [esp + 0x50]
mov dword [esp + 0x34], eax
jmp 0x684a25b0
mov dword [esp + 0x34], esi
jmp 0x684a2508