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

Disassembly:
sub esp, 0x60
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x60], esi
mov dl, byte [esi + 8]
mov dh, byte [esi + 9]
mov al, dl
mov bl, byte [esi + 0xa]
or al, dh
mov cl, byte [esi + 7]
or al, bl
and al, 0x1f
mov byte [esp + 0xb], bl
not cl
or al, cl
test al, 0x3f
je 0x10047260
test cl, 1
je 0x100467d7
cmp dword [esi + 0x2c], 0x1000000
ja 0x100467d7
mov dword [esp + 0x28], 1
mov dword [esp + 0x1c], 1
mov dword [esp + 0x10], 1
jmp 0x100467ef
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 0
test cl, 2
je 0x10046817
cmp dword [esi + 0x30], 0x1000000
ja 0x10046817
mov dword [esp + 0x30], 1
mov dword [esp + 0x20], 1
mov dword [esp + 0x14], 1
jmp 0x1004682f
mov dword [esp + 0x30], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 0
test cl, 4
je 0x10046857
cmp dword [esi + 0x34], 0x1000000
ja 0x10046857
mov dword [esp + 0x38], 1
mov dword [esp + 0x24], 1
mov dword [esp + 0x18], 1
jmp 0x1004686f
mov dword [esp + 0x38], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], 0
mov al, cl
mov ch, cl
shr al, 4
and al, 1
shr ch, 3
mov byte [esp + 9], al
and ch, 1
mov al, cl
shr al, 5
and al, 1
mov byte [esp + 0xa], al
mov eax, dword [esi + 0x58]
test al, 1
je 0x1004689d
lea ebx, [esp + 0xc]
test dl, 0x10
jne 0x100468a0
lea ebx, [esi + 0x14]
mov dword [esp + 0x2c], ebx
test al, 2
je 0x100468b1
test dh, 0x10
lea edx, [esp + 0xc]
jne 0x100468b4
lea edx, [esi + 0x18]
mov dword [esp + 0x34], edx
test al, 4
je 0x100468c7
test byte [esp + 0xb], 0x10
lea eax, [esp + 0xc]
jne 0x100468ca
lea eax, [esi + 0x1c]
push ebp
push edi
lea edi, [esp + 0x14]
mov dword [esp + 0x44], eax
cmp ebx, edi
je 0x10046e3e
cmp edx, edi
je 0x10046e3e
mov edx, edi
cmp eax, edx
je 0x10046e3e
mov eax, dword [esp + 0x78]
and cl, 0x38
test eax, eax
jle 0x10046e00
test cl, cl
jne 0x10046abe
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
mov ebp, dword [esi + 0x1c]
shr eax, 0x1a
and eax, dword [esp + 0x20]
mov edi, dword [esi + 0x20]
dec eax
add ebp, eax
shr edx, 0x1a
and edx, dword [esp + 0x1c]
xor ebp, eax
mov eax, dword [esi + 0x18]
dec edx
add eax, edx
mov ecx, dword [esi + 0x2c]
xor eax, edx
add ecx, dword [esi + 0x20]
add ebp, eax
mov ebx, dword [esi + 0x30]
mov eax, dword [esi + 0x14]
add ebx, dword [esi + 0x24]
shr edi, 0x1a
mov edx, ebx
and edi, dword [esp + 0x18]
dec edi
mov dword [esp + 0x4c], ecx
add eax, edi
shr edx, 0x1a
xor eax, edi
and edx, dword [esp + 0x1c]
add ebp, eax
mov dword [esp + 0x54], ebx
mov ebx, dword [esi + 0x14]
mov edi, ecx
mov ecx, dword [esi + 0x1c]
dec edx
mov dword [esp + 0x58], ebp
mov ebp, dword [esi + 0x34]
add ebp, dword [esi + 0x28]
mov eax, ebp
shr edi, 0x1a
and edi, dword [esp + 0x18]
shr eax, 0x1a
dec edi
and eax, dword [esp + 0x20]
add ebx, edi
dec eax
add ebp, dword [esi + 0x34]
add ecx, eax
xor ebx, edi
xor ecx, eax
add ebx, dword [esp + 0x58]
mov eax, dword [esi + 0x18]
add eax, edx
xor eax, edx
add ecx, eax
mov eax, dword [esp + 0x4c]
add eax, dword [esi + 0x2c]
add ebx, ecx
mov ecx, dword [esi + 0x1c]
mov edi, eax
add eax, dword [esi + 0x2c]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x54]
add eax, dword [esi + 0x30]
mov edx, eax
shr edi, 0x1a
add eax, dword [esi + 0x30]
and edi, dword [esp + 0x18]
mov dword [esp + 0x5c], eax
dec edi
mov eax, ebp
shr edx, 0x1a
and edx, dword [esp + 0x1c]
shr eax, 0x1a
dec edx
and eax, dword [esp + 0x20]
dec eax
add ecx, eax
xor ecx, eax
mov eax, dword [esi + 0x18]
add eax, edx
add ebp, dword [esi + 0x34]
xor eax, edx
add ecx, eax
mov eax, dword [esi + 0x14]
add eax, edi
xor eax, edi
add ebx, eax
mov eax, dword [esp + 0x60]
mov edi, eax
add ebx, ecx
add eax, dword [esi + 0x2c]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x5c]
mov edx, eax
add eax, dword [esi + 0x30]
mov dword [esi + 0x24], eax
mov eax, ebp
mov ecx, dword [esi + 0x1c]
shr eax, 0x1a
and eax, dword [esp + 0x20]
dec eax
shr edx, 0x1a
and edx, dword [esp + 0x1c]
add ecx, eax
xor ecx, eax
shr edi, 0x1a
mov eax, dword [esi + 0x18]
dec edx
and edi, dword [esp + 0x18]
add eax, edx
xor eax, edx
dec edi
add ecx, eax
mov eax, dword [esi + 0x14]
add eax, edi
xor eax, edi
add eax, ebx
mov ebx, 0xffff8000
add eax, ecx
mov ecx, dword [esi + 0x34]
cdq
add ecx, ebp
and edx, 3
mov dword [esi + 0x28], ecx
lea edi, [edx + eax]
mov edx, dword [esp + 0x48]
sar edi, 2
movsx ecx, word [edx]
add ecx, edi
cmp ecx, 0x7fff
jle 0x10046a7b
mov ecx, 0x7fff
jmp 0x10046a84
cmp ecx, 0xffff8000
cmovl ecx, ebx
mov word [edx], cx
movsx eax, word [edx + 2]
add eax, edi
cmp eax, 0x7fff
jle 0x10046a9b
mov eax, 0x7fff
jmp 0x10046aa3
cmp eax, 0xffff8000
cmovl eax, ebx
mov word [edx + 2], ax
add edx, 4
sub dword [esp + 0x3c], 1
mov dword [esp + 0x48], edx
jne 0x10046911
jmp 0x10046dfc
movzx ecx, ch
mov dword [esp + 0x44], ecx
movzx ecx, byte [esp + 0x11]
mov dword [esp + 0x40], ecx
movzx ecx, byte [esp + 0x12]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x40]
mov ecx, edx
mov dword [esp + 0x74], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x44]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x30], eax
mov eax, edx
shr eax, 0x16
mov edi, dword [esi + 0x2c]
shr ecx, 0x11
mov ebp, dword [eax*4 + 0x10158118]
lea eax, [ebx + edx]
mov dword [esi + 0x40], eax
shr ebp, cl
mov ecx, dword [esi + 0x20]
mov ebx, ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x44]
and eax, ebp
mov edx, dword [esi + 0x28]
shr ebx, 0x1a
and ebx, dword [esp + 0x24]
or ebx, eax
lea eax, [edi + ecx]
mov edi, dword [esi + 0x24]
mov ecx, edx
mov dword [esp + 0x20], eax
dec ebx
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x40]
and eax, ebp
shr edi, 0x1a
and edi, dword [esp + 0x28]
or edi, eax
add edx, dword [esi + 0x34]
mov eax, dword [esp + 0x74]
dec edi
add eax, dword [esi + 0x24]
mov dword [esi + 0x24], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
and eax, ebp
shr ecx, 0x1a
and ecx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x38]
or ecx, eax
mov eax, dword [esp + 0x34]
add ebp, ebx
add eax, edi
mov dword [esi + 0x28], edx
xor eax, edi
mov dword [esp + 0x58], edx
xor ebp, ebx
dec ecx
mov ebx, dword [esp + 0x4c]
add ebp, eax
mov eax, dword [esp + 0x30]
add eax, ecx
xor eax, ecx
mov ecx, ebx
add ebp, eax
shr ecx, 0x11
mov eax, ebx
mov dword [esp + 0x5c], ebp
shr eax, 0x16
mov ebp, dword [eax*4 + 0x10158118]
mov eax, dword [esi + 0x44]
add eax, ebx
shr ebp, cl
mov ebx, dword [esp + 0x20]
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x44]
shr ebx, 0x1a
and eax, ebp
and ebx, dword [esp + 0x24]
or ebx, eax
mov eax, dword [esi + 0x2c]
dec ebx
add eax, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x40]
and eax, ebp
mov ecx, dword [esp + 0x38]
shr edi, 0x1a
add ecx, ebx
and edi, dword [esp + 0x28]
xor ecx, ebx
or edi, eax
shr edx, 0x1a
and edx, dword [esp + 0x2c]
dec edi
mov eax, dword [esp + 0x74]
add eax, dword [esp + 0x18]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x3c]
and eax, ebp
mov ebx, dword [esi + 0x44]
or edx, eax
mov eax, dword [esp + 0x34]
add eax, edi
dec edx
xor eax, edi
add ecx, eax
mov eax, dword [esp + 0x30]
add eax, edx
xor eax, edx
mov edx, dword [esp + 0x4c]
add eax, dword [esp + 0x5c]
add edx, ebx
add eax, ecx
mov ecx, edx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x58]
add eax, dword [esi + 0x34]
mov dword [esp + 0x48], eax
mov dword [esi + 0x28], eax
mov eax, edx
shr eax, 0x16
shr ecx, 0x11
mov ebp, dword [eax*4 + 0x10158118]
lea eax, [ebx + edx]
mov edx, dword [esi + 0x2c]
shr ebp, cl
mov ecx, dword [esp + 0x20]
add ecx, edx
mov dword [esp + 0x5c], eax
mov dword [esi + 0x40], eax
mov ebx, ecx
mov eax, dword [esp + 0x44]
and eax, ebp
shr ebx, 0x1a
and ebx, dword [esp + 0x24]
or ebx, eax
lea eax, [edx + ecx]
mov edx, dword [esp + 0x74]
dec ebx
mov ecx, dword [esp + 0x18]
add ecx, edx
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x40]
mov edi, ecx
shr edi, 0x1a
and eax, ebp
and edi, dword [esp + 0x28]
or edi, eax
lea eax, [edx + ecx]
mov edx, dword [esp + 0x48]
dec edi
mov ecx, dword [esp + 0x38]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x3c]
shr edx, 0x1a
and eax, ebp
and edx, dword [esp + 0x2c]
or edx, eax
dec edx
mov eax, dword [esp + 0x34]
add ecx, ebx
add eax, edi
xor ecx, ebx
xor eax, edi
mov edi, dword [esp + 0x5c]
add ecx, eax
mov eax, dword [esp + 0x30]
add eax, edx
xor eax, edx
mov edx, dword [esi + 0x34]
add eax, dword [esp + 0x60]
add eax, ecx
add edx, dword [esp + 0x48]
mov dword [esp + 0x60], eax
mov ecx, edi
mov eax, edi
shr ecx, 0x11
shr eax, 0x16
mov dword [esi + 0x28], edx
shr edx, 0x1a
and edx, dword [esp + 0x2c]
mov ebp, dword [eax*4 + 0x10158118]
mov eax, dword [esi + 0x44]
add eax, edi
shr ebp, cl
mov edi, dword [esi + 0x2c]
mov ecx, dword [esp + 0x20]
add ecx, edi
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x44]
add ecx, edi
and eax, ebp
mov ebx, ecx
shr ebx, 0x1a
and ebx, dword [esp + 0x24]
or ebx, eax
lea eax, [edi + ecx]
mov ecx, dword [esp + 0x18]
dec ebx
add ecx, dword [esp + 0x74]
add ecx, dword [esp + 0x74]
mov dword [esi + 0x20], eax
mov edi, ecx
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x68]
and eax, ebp
shr edi, 0x1a
and edi, dword [esp + 0x28]
or edi, eax
mov eax, dword [esp + 0x74]
add eax, ecx
dec edi
mov ecx, dword [esp + 0x38]
mov dword [esi + 0x24], eax
add ecx, ebx
mov eax, dword [esp + 0x3c]
xor ecx, ebx
and eax, ebp
or edx, eax
mov eax, dword [esp + 0x34]
add eax, edi
dec edx
xor eax, edi
add ecx, eax
mov eax, dword [esp + 0x30]
add eax, edx
xor eax, edx
add eax, dword [esp + 0x60]
add eax, ecx
mov ecx, dword [esp + 0x48]
add ecx, dword [esi + 0x34]
add ecx, dword [esi + 0x34]
cdq
and edx, 3
mov dword [esi + 0x28], ecx
lea ebx, [edx + eax]
mov edx, dword [esp + 0x50]
sar ebx, 2
movsx edi, word [edx]
add edi, ebx
mov ecx, 0xffff8000
cmp edi, 0x7fff
jle 0x10046dbe
mov edi, 0x7fff
jmp 0x10046dc7
cmp edi, 0xffff8000
cmovl edi, ecx
mov word [edx], di
movsx eax, word [edx + 2]
add eax, ebx
cmp eax, 0x7fff
jle 0x10046dde
mov eax, 0x7fff
jmp 0x10046de6
cmp eax, 0xffff8000
cmovl eax, ecx
mov word [edx + 2], ax
add edx, 4
sub dword [esp + 0x54], 1
mov dword [esp + 0x50], edx
jne 0x10046ae3
mov eax, dword [esp + 0x78]
mov ecx, dword [esi + 0x3c]
shr ecx, 6
imul ecx, eax
mov eax, dword [esi + 0x38]
shr eax, 8
add ecx, eax
cmp ecx, 0x400000
jb 0x10046e2e
mov al, byte [esi + 0xd]
and al, 0xb
cmp al, 0xa
je 0x10046e28
or ecx, 0x200000
and ecx, 0x3fffff
pop edi
shl ecx, 8
pop ebp
mov dword [esi + 0x38], ecx
pop esi
pop ebx
add esp, 0x60
ret 8
cmp dword [esp + 0x78], 0
jle 0x1004725e
movzx eax, ch
mov dword [esp + 0x2c], eax
movzx eax, byte [esp + 0x11]
mov dword [esp + 0x24], eax
movzx eax, byte [esp + 0x12]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x60], eax
nop word [eax + eax]
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x38]
mov ebx, dword [esi + 0x3c]
mov edx, dword [esi + 0x10]
mov dword [esp + 0x74], eax
mov eax, ecx
shr eax, 0x18
lea ebp, [ebx + ecx]
mov dword [esp + 0x48], ebx
mov eax, dword [edx + eax*4]
mov dword [esp + 0x14], eax
mov dword [esi + 0x38], ebp
cmp ebp, 0x40000000
jb 0x10046eb6
mov al, byte [esi + 0xd]
and al, 0xb
cmp al, 0xa
je 0x10046ead
or ebp, 0x20000000
and ebp, 0x3fffffff
mov dword [esi + 0x38], ebp
mov edx, dword [esi + 0x40]
mov eax, edx
shr eax, 0x16
mov ecx, edx
mov ebx, dword [esp + 0x34]
shr ecx, 0x11
mov edi, dword [eax*4 + 0x10158118]
mov eax, dword [esp + 0x74]
add eax, edx
shr edi, cl
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x40], eax
mov ebx, dword [ebx]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x2c]
and eax, edi
shr ecx, 0x1a
and ecx, dword [esp + 0x30]
or ecx, eax
mov eax, dword [esi + 0x2c]
add eax, dword [esi + 0x20]
dec ecx
mov dword [esi + 0x20], eax
add ebx, ecx
mov dword [esp + 0x64], eax
xor ebx, ecx
mov ecx, dword [esi + 0x24]
mov eax, dword [esp + 0x24]
and eax, edi
shr ecx, 0x1a
and ecx, dword [esp + 0x38]
or ecx, eax
mov eax, dword [esp + 0x3c]
dec ecx
mov eax, dword [eax]
add eax, ecx
xor eax, ecx
mov ecx, dword [esi + 0x28]
add ebx, eax
shr ecx, 0x1a
mov eax, dword [esi + 0x30]
add eax, dword [esi + 0x24]
and ecx, dword [esp + 0x40]
mov dword [esi + 0x24], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x1c]
and eax, edi
mov edi, dword [esp + 0x48]
or ecx, eax
add edi, ebp
mov eax, dword [esp + 0x44]
dec ecx
mov eax, dword [eax]
add eax, ecx
xor eax, ecx
add ebx, eax
mov eax, dword [esi + 0x34]
add eax, dword [esi + 0x28]
mov dword [esi + 0x28], eax
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x6c], eax
mov eax, ebp
shr eax, 0x18
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x14], eax
mov dword [esi + 0x38], edi
cmp edi, 0x40000000
jb 0x10046f93
mov al, byte [esi + 0xd]
and al, 0xb
cmp al, 0xa
je 0x10046f8a
or edi, 0x20000000
and edi, 0x3fffffff
mov dword [esi + 0x38], edi
mov ebp, dword [esp + 0x68]
mov eax, ebp
shr eax, 0x16
mov ecx, ebp
shr ecx, 0x11
mov edx, dword [eax*4 + 0x10158118]
mov eax, dword [esp + 0x74]
add eax, ebp
shr edx, cl
mov ecx, dword [esp + 0x64]
mov dword [esi + 0x40], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x2c]
and eax, edx
shr ecx, 0x1a
and ecx, dword [esp + 0x30]
or ecx, eax
mov eax, dword [esp + 0x34]
dec ecx
mov eax, dword [eax]
add eax, ecx
xor eax, ecx
mov ecx, dword [esp + 0x5c]
add ebx, eax
shr ecx, 0x1a
mov eax, dword [esi + 0x2c]
add eax, dword [esp + 0x64]
and ecx, dword [esp + 0x38]
mov dword [esi + 0x20], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x24]
and eax, edx
or ecx, eax
mov eax, dword [esp + 0x3c]
dec ecx
mov eax, dword [eax]
add eax, ecx
xor eax, ecx
mov ecx, dword [esp + 0x6c]
add ebx, eax
shr ecx, 0x1a
mov eax, dword [esi + 0x30]
add eax, dword [esp + 0x5c]
and ecx, dword [esp + 0x40]
mov dword [esi + 0x24], eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x1c]
and eax, edx
or ecx, eax
mov eax, dword [esp + 0x44]
dec ecx
mov eax, dword [eax]
add eax, ecx
xor eax, ecx
add ebx, eax
mov eax, dword [esi + 0x34]
add eax, dword [esp + 0x6c]
mov dword [esi + 0x28], eax
mov ebp, dword [esi + 0x10]
mov dword [esp + 0x5c], eax
mov eax, edi
add edi, dword [esp + 0x48]
shr eax, 0x18
mov eax, dword [ebp + eax*4]
mov dword [esp + 0x14], eax
mov dword [esi + 0x38], edi
cmp edi, 0x40000000
jb 0x10047078
mov al, byte [esi + 0xd]
and al, 0xb
cmp al, 0xa
je 0x1004706f
or edi, 0x20000000
and edi, 0x3fffffff
mov dword [esi + 0x38], edi
mov ecx, dword [esp + 0x4c]
mov eax, ecx
shr eax, 0x16
shr ecx, 0x11
mov edx, dword [eax*4 + 0x10158118]
mov eax, dword [esp + 0x4c]
add eax, dword [esp + 0x74]
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x2c]
shr edx, cl
mov ecx, dword [esp + 0x50]
and eax, edx
shr ecx, 0x1a
and ecx, dword [esp + 0x30]
or ecx, eax
mov eax, dword [esp + 0x34]
dec ecx
mov eax, dword [eax]
add eax, ecx
xor eax, ecx
mov ecx, dword [esp + 0x58]
add ebx, eax
shr ecx, 0x1a
mov eax, dword [esi + 0x2c]
add eax, dword [esp + 0x50]
and ecx, dword [esp + 0x38]
mov dword [esp + 0x6c], eax
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x24]
and eax, edx
or ecx, eax
mov eax, dword [esp + 0x3c]
dec ecx
mov eax, dword [eax]
add eax, ecx
xor eax, ecx
mov ecx, dword [esp + 0x5c]
add ebx, eax
shr ecx, 0x1a
mov eax, dword [esi + 0x30]
add eax, dword [esp + 0x58]
and ecx, dword [esp + 0x40]
mov dword [esp + 0x68], eax
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x1c]
and eax, edx
or ecx, eax
mov eax, dword [esp + 0x44]
dec ecx
mov eax, dword [eax]
add eax, ecx
xor eax, ecx
mov ecx, dword [esp + 0x48]
add ebx, eax
add ecx, edi
mov eax, dword [esi + 0x34]
add eax, dword [esp + 0x5c]
mov dword [esp + 0x64], eax
mov dword [esi + 0x28], eax
mov eax, edi
shr eax, 0x18
mov eax, dword [ebp + eax*4]
mov dword [esp + 0x14], eax
mov dword [esi + 0x38], ecx
cmp ecx, 0x40000000
jb 0x10047158
mov al, byte [esi + 0xd]
and al, 0xb
cmp al, 0xa
je 0x1004714f
or ecx, 0x20000000
and ecx, 0x3fffffff
mov dword [esi + 0x38], ecx
mov edx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x74]
add edx, ebp
mov eax, edx
mov ecx, edx
shr eax, 0x16
shr ecx, 0x11
mov edi, dword [eax*4 + 0x10158118]
lea eax, [edx + ebp]
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x2c]
shr edi, cl
mov ecx, dword [esp + 0x6c]
and eax, edi
shr ecx, 0x1a
and ecx, dword [esp + 0x30]
or ecx, eax
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x34]
dec ecx
shr edx, 0x1a
and edx, dword [esp + 0x40]
mov eax, dword [eax]
add eax, ecx
xor eax, ecx
mov ecx, dword [esp + 0x68]
add ebx, eax
shr ecx, 0x1a
mov eax, dword [esi + 0x2c]
add eax, dword [esp + 0x6c]
and ecx, dword [esp + 0x38]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x24]
and eax, edi
or ecx, eax
mov eax, dword [esp + 0x3c]
dec ecx
mov eax, dword [eax]
add eax, ecx
xor eax, ecx
mov ecx, dword [esp + 0x1c]
add ebx, eax
and ecx, edi
mov eax, dword [esi + 0x30]
or edx, ecx
add eax, dword [esp + 0x68]
dec edx
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esi + 0x34]
add ecx, dword [esp + 0x64]
mov eax, dword [eax]
add eax, edx
mov dword [esi + 0x28], ecx
xor eax, edx
add eax, ebx
mov ebx, dword [esp + 0x60]
cdq
and edx, 3
movsx ecx, word [ebx]
lea edi, [edx + eax]
mov edx, 0xffff8000
sar edi, 2
add ecx, edi
cmp ecx, 0x7fff
jle 0x10047220
mov ecx, 0x7fff
jmp 0x10047229
cmp ecx, 0xffff8000
cmovl ecx, edx
mov word [ebx], cx
movsx eax, word [ebx + 2]
add eax, edi
cmp eax, 0x7fff
jle 0x10047240
mov eax, 0x7fff
jmp 0x10047248
cmp eax, 0xffff8000
cmovl eax, edx
mov word [ebx + 2], ax
add ebx, 4
sub dword [esp + 0x78], 1
mov dword [esp + 0x60], ebx
jne 0x10046e70
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x60
ret 8