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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [esp + 0x90], eax
movzx esi, byte [ecx + 0x2c]
xor edi, edi
inc edi
xor eax, eax
mov dword [esp + 0x18], esi
cmp esi, 2
setne al
lea eax, [eax + eax*4 + 5]
mov dword [esp + 0x28], edi
cmovb eax, edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], ecx
mov eax, dword [ecx]
mov dword [esp + 0x64], eax
mov eax, dword [eax]
mov dword [esp + 0x30], eax
xor ecx, ecx
mov esi, 0
mov dword [esp + 0x44], edx
test dx, dx
je 0x10045d11
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
mov esi, 0
test eax, eax
je 0x10045d11
mov esi, dword [eax]
mov eax, dword [esp + 0x18]
lea edx, [eax*4 + 0x20]
imul edx, dword [esp + 0x34]
mov dword [esp + 0x40], esi
add edx, esi
add edx, edx
mov eax, edx
sar eax, 0x1f
mov esi, dword [esp + 0x30]
movzx esi, word [esi + 0x11c]
cmp esi, edx
sbb ecx, eax
jb 0x10045d69
cmp edx, 0x80
ja 0x10045d93
mov ecx, dword [esp + 0x30]
mov esi, dword [ecx + 0x140]
test esi, esi
je 0x10045d85
mov edx, esi
mov eax, dword [esi]
mov dword [ecx + 0x140], eax
inc dword [ecx + 0x128]
mov eax, edx
jmp 0x10045dca
mov ecx, dword [esp + 0x30]
cmp dword [ecx + 0x118], 0
je 0x10046664
cmp byte [ecx + 0x53], 0
je 0x10045db9
jmp 0x10046398
mov ecx, dword [ecx + 0x13c]
test ecx, ecx
jne 0x100464a8
mov ecx, dword [esp + 0x30]
mov esi, dword [ecx + 0x138]
test esi, esi
jne 0x10046420
mov esi, dword [ecx + 0x134]
test esi, esi
jne 0x1004663d
inc dword [ecx + 0x130]
push eax
call fcn.10143c10
add esp, 4
test eax, eax
je 0x10046398
mov ecx, dword [esp + 0x40]
add ecx, ecx
mov dword [esp + 0xc], ecx
mov edi, dword [esp + 0x34]
mov esi, edi
shl esi, 5
lea ecx, [eax + esi]
mov dword [esp + 8], ecx
xorps xmm0, xmm0
movups xmmword [eax + esi + 0x10], xmm0
movups xmmword [eax + esi], xmm0
lea ecx, [edi + edi]
inc ecx
shl edi, 6
add edi, eax
mov edx, dword [esp + 0x18]
lea edx, [edx*4]
mov dword [esp + 0x3c], eax
lea ebx, [eax + 0x18]
mov dword [ebx], edi
dec ecx
add edi, edx
add ebx, 0x20
cmp ecx, 1
jg 0x10045e0b
mov dword [esp + 0x54], 0
mov ebx, dword [esp + 0x40]
test ebx, ebx
jne 0x100463ae
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0x84]
cmp eax, 0x30
mov ecx, 0x30
cmovb ecx, eax
mov eax, dword [esp + 0x3c]
mov word [eax + esi + 0x10], cx
test ebx, ebx
jne 0x100463c6
mov eax, dword [esp + 0x18]
test al, al
je 0x1004629d
mov esi, eax
neg esi
xor ecx, ecx
mov dword [esp + 0x38], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x74], esi
lea edi, [ecx + 1]
shl ecx, 2
mov dword [esp + 0x58], ecx
mov eax, edx
mov ecx, dword [esp + 8]
mov dword [esp + 0x50], ecx
mov ebx, dword [esp + 0x28]
mov edx, eax
mov dword [esp + 0x78], ebx
test ebx, ebx
jg 0x10045ec4
add dword [esp + 0x58], 4
lea ecx, [esi + edi]
inc ecx
inc edi
xor ebx, ebx
mov eax, dword [esp + 0x50]
mov dword [esp + 0x50], edx
cmp ecx, 1
jne 0x10045e9c
jmp 0x100463e2
mov dword [esp + 0x68], edi
lea eax, [edi - 1]
mov dword [esp + 0x70], eax
mov dword [esp + 8], edx
lea eax, [edx + 0x34]
mov dword [esp + 0x6c], eax
xor eax, eax
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x50]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x40]
test eax, eax
je 0x100461e3
mov ebx, eax
mov ecx, dword [esp + 0xc]
mov al, byte [ecx + 0x16]
mov byte [esp + 7], al
xor eax, eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], eax
mov esi, dword [ecx + 4]
mov edi, dword [ecx]
mov eax, edi
mov edx, esi
not edx
and edx, dword [ebx + 4]
not eax
and eax, dword [ebx]
or eax, edx
mov dword [esp + 0x20], ebx
jne 0x10046126
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov eax, ecx
mov dword [esp + 0x84], esi
and eax, esi
mov esi, edx
mov dword [esp + 0x80], edi
and edx, edi
or edx, eax
jne 0x10046126
test byte [ebx + 0x25], 0x40
mov eax, dword [esp + 0xc]
movzx eax, word [eax + 0x10]
je 0x10045f76
cmp ax, 3
jl 0x10046126
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], esi
mov ecx, dword [esp + 0x20]
movzx ebx, word [ecx + 0x14]
mov word [esp + 0x26], ax
add bx, ax
movzx eax, word [ecx + 0x12]
mov ecx, eax
cwde
movsx edx, bx
cmp ax, dx
jl 0x10045fc0
lea ebx, [edx + 0x31]
cmp ebx, eax
jl 0x10045fcd
lea ebx, [edx + 0x1f]
cmp ebx, eax
jl 0x10046499
mov ebx, eax
sub ebx, edx
movzx edx, byte [ebx + str._n_n_t_t_b_b_a_a_a]
add eax, edx
mov ecx, eax
jmp 0x10045fcd
lea ecx, [eax + 0x31]
cmp ecx, edx
jge 0x1004642f
mov ecx, ebx
mov eax, dword [esp + 0xc]
movzx ebx, word [eax + 0x14]
mov dword [esp + 0x14], ecx
movsx eax, cx
movsx edx, bx
cmp ax, dx
jl 0x10046009
lea ecx, [edx + 0x31]
cmp ecx, eax
jl 0x10046018
lea ecx, [edx + 0x1f]
cmp ecx, eax
jl 0x1004649f
mov ecx, eax
sub ecx, edx
movzx ecx, byte [ecx + str._n_n_t_t_b_b_a_a_a]
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x10046018
lea ecx, [eax + 0x31]
cmp ecx, edx
jge 0x1004644e
mov dword [esp + 0x14], ebx
movzx eax, word [esp + 0x26]
mov ecx, dword [esp + 0x20]
add ax, word [ecx + 0x16]
mov word [esp + 0x26], ax
cmp byte [esp + 7], 0
js 0x10046180
mov eax, dword [esp + 0xc]
movsd xmm0, qword [eax + 8]
movsd qword [esp + 0x88], xmm0
mov al, byte [esp + 7]
test al, al
js 0x1004605e
movsx edi, al
mov edx, dword [esp + 0x40]
sub edx, edi
jg 0x10046201
mov eax, dword [esp + 0x14]
mov edi, eax
lea ecx, [eax - 2]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x28]
test ecx, ecx
jg 0x1004613a
mov ebx, ecx
mov edx, dword [esp + 0x34]
cmp ecx, edx
jge 0x100466a0
xor eax, eax
cmp ecx, edx
setl al
add ecx, eax
mov dword [esp + 0x28], ecx
shl ebx, 5
add ebx, dword [esp + 8]
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0xc]
or eax, dword [edx + 4]
mov ecx, dword [esi + 8]
or ecx, dword [edx]
mov dword [ebx], ecx
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
mov dword [ebx + 0xc], ecx
mov dword [ebx + 8], eax
movzx eax, word [esp + 0x26]
mov word [ebx + 0x10], ax
mov word [ebx + 0x12], di
mov eax, dword [esp + 0x14]
mov word [ebx + 0x14], ax
mov al, byte [esp + 7]
mov byte [ebx + 0x16], al
cmp dword [esp + 0x58], 0
jne 0x100461c8
mov eax, dword [ebx + 0x18]
mov ecx, dword [esp + 0x68]
mov dword [eax + ecx*4 - 4], esi
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x28], ecx
jl 0x10046126
mov dword [esp + 0x38], 0
mov eax, dword [esp + 8]
movzx edx, word [eax + 0x10]
mov dword [esp + 0x4c], edx
movzx eax, word [eax + 0x12]
mov dword [esp + 0x48], eax
cmp ecx, 2
jae 0x100466d7
mov ebx, dword [esp + 0x20]
mov ebx, dword [ebx + 0x34]
test ebx, ebx
jne 0x10045f01
jmp 0x100461e3
mov eax, dword [esp + 0x80]
or dword [esp + 0x60], eax
mov eax, dword [esp + 0x84]
or dword [esp + 0x5c], eax
mov edx, ecx
mov ebx, dword [esp + 8]
mov ecx, dword [ebx]
xor ecx, dword [esp + 0x60]
mov eax, dword [ebx + 4]
xor eax, dword [esp + 0x5c]
or eax, ecx
jne 0x10046170
mov al, byte [ebx + 0x16]
xor al, byte [esp + 7]
jns 0x100461b3
add ebx, 0x20
dec edx
mov ecx, dword [esp + 0x28]
je 0x10046077
jmp 0x10046156
mov ecx, dword [esp + 0x10]
movzx esi, word [ecx + 0x28]
mov edx, dword [ecx + 8]
movzx ebx, word [esp + 0x70]
lea eax, [esp + 0x88]
push eax
push dword [esp + 0x24]
push ebx
push esi
push dword [esp + 0x1c]
call fcn.1004c180
add esp, 0x14
mov byte [esp + 7], al
jmp 0x10046047
cmp word [ebx + 0x12], di
jl 0x10046126
jne 0x10046099
jmp 0x10046615
push dword [esp + 0x58]
mov eax, dword [esp + 0x10]
push dword [eax + 0x18]
push dword [ebx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x100460ec
mov eax, dword [esp + 0x7c]
inc eax
add dword [esp + 0xc], 0x20
cmp eax, dword [esp + 0x78]
jne 0x10045eec
jmp 0x1004622a
add edi, 5
jmp 0x1004606b
mov eax, dword [esp + 0x54]
movzx ecx, word [eax + edi*2]
test cx, cx
je 0x100464e7
mov eax, dword [esp + 0x14]
movsx ebx, ax
movsx edx, cx
cmp ax, dx
jge 0x1004646f
jmp 0x100464bb
mov esi, dword [esp + 0x74]
mov eax, esi
mov ecx, dword [esp + 0x68]
add eax, ecx
mov edx, dword [esp + 0x50]
jne 0x10045e84
mov esi, dword [esp + 0x28]
test esi, esi
je 0x100463e2
cmp esi, 2
jge 0x10046815
mov edi, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
mov dword [esp + 0xc], eax
add edx, 0x338
xor esi, esi
mov eax, dword [esp + 0x18]
mov ecx, edi
mov edi, dword [edi + 0x18]
mov edi, dword [edi + esi*4]
mov dword [edx], edi
movzx ebx, byte [edi + 0x10]
mov byte [edx - 0x14], bl
lea edi, [ebx + ebx*8]
mov ebx, dword [esp + 0xc]
mov edi, dword [ebx + edi*8 + 0x34]
mov dword [edx - 0x44], edi
mov edi, ecx
inc esi
add edx, 0x58
cmp eax, esi
jne 0x10046270
mov dword [esp + 8], edi
mov esi, dword [esp + 0x10]
movzx eax, word [esi + 0x28]
and eax, 0x180
cmp eax, 0x100
je 0x100466e8
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x30]
mov eax, ecx
and eax, 0xfffffffb
mov dword [esi + 0x30], eax
test edx, edx
je 0x1004637f
movzx eax, word [esi + 0x28]
mov edi, dword [esp + 8]
mov bl, byte [edi + 0x16]
test al, al
js 0x10046682
mov byte [esi + 0x2d], bl
movsd xmm0, qword [edi + 8]
movsd qword [esi + 0x48], xmm0
test bl, bl
jg 0x100463f5
mov byte [esi + 0x2d], 0
mov ebx, dword [esp + 0x18]
test bl, bl
je 0x10046371
mov ecx, dword [esp + 8]
mov ecx, dword [ecx + 0x18]
mov esi, dword [ecx + ebx*4 - 4]
mov ecx, dword [esi + 0x24]
bt ecx, 0xc
jb 0x10046371
and ecx, 0x104
cmp ecx, 0x104
je 0x10046371
mov eax, dword [esp + 0x18]
dec eax
xor ecx, ecx
lea edi, [esp + 0x88]
mov dword [edi + 4], ecx
mov dword [edi], ecx
movzx eax, ax
mov ebx, dword [esp + 0x10]
mov ecx, ebx
push edi
push esi
push eax
push 0x800
push dword [esp + 0x18]
call fcn.1004c180
add esp, 0x14
movsx eax, al
mov edx, dword [ebx + 8]
cmp dword [edx], eax
jne 0x1004636d
or byte [ebx + 0x30], 4
movsd xmm0, qword [esp + 0x88]
movsd qword [ebx + 0x48], xmm0
movzx eax, word [ebx + 0x28]
bt eax, 9
mov esi, dword [esp + 0x10]
jb 0x10046791
mov eax, dword [esp + 8]
movzx eax, word [eax + 0x10]
mov word [esi + 0x34], ax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
call fcn.10139000
mov ecx, dword [esp + 0x90]
xor ecx, ebp
call fcn.1014dc80
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [esp + 0xc]
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x54], edi
jmp 0x10045e2c
xor eax, eax
cmp byte [esp + 0x18], 1
sbb eax, eax
not al
or al, byte [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov byte [ecx + esi + 0x16], al
jmp 0x10045e52
push str.no_query_solution
push dword [esp + 0x68]
call fcn.100394d0
add esp, 8
jmp 0x1004638b
test al, 3
je 0x10046371
cmp byte [esp + 0x18], 0
je 0x10046371
cmp bl, 1
jne 0x10046371
or ecx, 4
mov esi, dword [esp + 0x10]
mov dword [esi + 0x30], ecx
jmp 0x10046371
mov edx, esi
mov eax, dword [esi]
mov dword [ecx + 0x138], eax
jmp 0x10045d5f
lea ecx, [eax + 0x1f]
cmp ecx, edx
jl 0x10046609
mov ecx, edx
sub ecx, eax
movzx eax, byte [ecx + str._n_n_t_t_b_b_a_a_a]
add edx, eax
mov ecx, edx
jmp 0x10045fcd
lea ecx, [eax + 0x1f]
cmp ecx, edx
jl 0x1004660f
mov ecx, edx
sub ecx, eax
movzx eax, byte [ecx + str._n_n_t_t_b_b_a_a_a]
add edx, eax
mov dword [esp + 0x14], edx
jmp 0x10046018
lea ecx, [edx + 0x31]
mov edi, eax
cmp ecx, ebx
jl 0x100461f9
lea eax, [edx + 0x1f]
cmp eax, ebx
jl 0x10046676
sub ebx, edx
movzx edi, byte [ebx + str._n_n_t_t_b_b_a_a_a]
add edi, dword [esp + 0x14]
jmp 0x100461f9
inc ecx
jmp 0x10045fcd
inc dword [esp + 0x14]
jmp 0x10046018
mov edx, ecx
mov eax, dword [ecx]
mov ecx, dword [esp + 0x30]
mov dword [ecx + 0x13c], eax
jmp 0x10045d5f
mov edi, ecx
lea ecx, [ebx + 0x31]
cmp ecx, edx
jl 0x100461f9
lea ecx, [ebx + 0x1f]
cmp ecx, edx
jl 0x1004669a
mov eax, edx
sub eax, ebx
movzx eax, byte [eax + str._n_n_t_t_b_b_a_a_a]
add edx, eax
mov edi, edx
jmp 0x100461f9
imul eax, edx, 0x64
cdq
idiv dword [esp + 0x40]
cmp eax, 8
jb 0x10046843
mov ecx, eax
sar ecx, 0x1f
cmp eax, 0x100
jae 0x1004687a
mov bx, 0x28
cmp eax, 0x10
mov esi, ecx
sbb ecx, 0
jb 0x10046545
mov edx, ebx
mov ebx, esi
mov ecx, esi
mov esi, ecx
mov dword [esp + 0x1c], ecx
mov ecx, eax
add edx, 0xa
mov eax, esi
shld eax, ecx, 0x1f
shr ebx, 1
mov esi, 0x1f
cmp esi, ecx
mov ecx, 0
sbb ecx, dword [esp + 0x1c]
mov ecx, ebx
jb 0x1004651c
mov ebx, edx
and eax, 7
add bx, word [eax + eax + 0x1019d512]
add ebx, 0xffffffb4
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x28]
bt eax, 0xe
jb 0x1004664c
mov ecx, dword [esp + 0x44]
lea edx, [ecx - 0xa]
test eax, 0x100
cmove edx, ecx
cmp cx, 0xa
cmovle edx, ecx
xor eax, eax
cmp dx, 0xb
jl 0x1004666f
mov dword [esp + 0x2c], ebx
movzx ebx, dx
mov cx, 0x28
mov dword [esp + 0x1c], ecx
cmp ebx, 0x100
jae 0x100468a7
cmp ebx, 0x10
mov ecx, eax
sbb ecx, 0
jb 0x100465dc
mov edx, eax
mov ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov esi, ebx
add eax, 0xa
mov ebx, ecx
shld ebx, esi, 0x1f
shr edx, 1
mov ecx, 0x1f
cmp ecx, esi
mov ecx, 0
sbb ecx, dword [esp + 0x1c]
mov ecx, edx
jb 0x100465b3
mov dword [esp + 0x1c], eax
and ebx, 7
mov eax, dword [esp + 0x1c]
add ax, word [ebx + ebx + 0x1019d512]
add eax, 0xffffffd5
mov ebx, dword [esp + 0x2c]
add ebx, dword [esp + 0x44]
lea ecx, [eax + ebx]
add ecx, 0x10
mov eax, dword [esp + 0x54]
mov word [eax + edi*2], cx
jmp 0x10046212
inc ebx
jmp 0x10045fcb
inc ebx
jmp 0x10046014
movzx eax, word [esp + 0x26]
cmp word [ebx + 0x10], ax
jl 0x10046126
jne 0x10046099
mov eax, dword [esp + 0x14]
cmp word [ebx + 0x14], ax
jle 0x10046126
jmp 0x10046099
mov edx, esi
mov eax, dword [esi]
mov dword [ecx + 0x134], eax
jmp 0x10045d5f
mov ecx, dword [esp + 0x10]
movzx edx, word [ecx + 0x2a]
cmp dx, word [esp + 0x44]
jge 0x10046564
jmp 0x1004657a
inc dword [ecx + 0x12c]
jmp 0x10045db9
xor eax, eax
jmp 0x100465f2
mov eax, dword [esp + 0x14]
lea edi, [eax + 1]
jmp 0x100461f9
movsx ecx, bl
cmp dword [edx], ecx
jne 0x10046371
mov ecx, dword [esp + 0x10]
mov byte [ecx + 0x2f], 2
jmp 0x10046371
inc edi
jmp 0x100461f9
cmp di, word [esp + 0x48]
jg 0x10046126
mov eax, edi
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
jne 0x10046085
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
cmp ax, word [esp + 0x4c]
jge 0x10046126
jmp 0x10046085
mov dword [esp + 0x38], 0
xor eax, eax
inc eax
mov ecx, dword [esp + 0x6c]
jmp 0x10046767
cmp word [esp + 0x44], 0
je 0x100462b5
cmp byte [esi + 0x2f], 0
jne 0x100462b5
mov edi, dword [esp + 8]
mov eax, dword [edi + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
lea ecx, [eax - 1]
mov edx, dword [esi + 0xc]
lea ebx, [esp + 0x88]
movzx ecx, cx
mov dword [esp + 0x20], ecx
mov ecx, esi
push ebx
mov ebx, dword [esp + 0x10]
push dword [ebx + eax*4 - 4]
push dword [esp + 0x28]
push 0x80
push edi
call fcn.1004c180
add esp, 0x14
movsx eax, al
mov ecx, dword [esi + 0xc]
cmp dword [ecx], eax
jne 0x10046750
mov eax, dword [esp + 0x10]
mov byte [eax + 0x2f], 2
mov esi, dword [esp + 0x10]
jmp 0x100462b5
jne 0x10046781
movzx ebx, word [ecx]
cmp bx, word [esp + 0x4c]
jg 0x10046775
jmp 0x10046781
movzx edx, word [ecx - 2]
cmp dx, word [esp + 0x48]
jle 0x10046759
movzx ebx, word [ecx]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], edx
mov dword [esp + 0x38], eax
inc eax
add ecx, 0x20
cmp dword [esp + 0x34], eax
je 0x10046126
jmp 0x10046767
cmp byte [esp + 0x18], 0
je 0x1004637f
movsx eax, byte [esi + 0x2d]
cmp dword [edx], eax
jne 0x1004637f
xor eax, eax
lea ecx, [esp + 0x88]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov ebx, ecx
mov edi, dword [esp + 8]
mov eax, dword [edi + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
lea ecx, [eax - 1]
movzx ecx, cx
mov dword [esp + 0x20], ecx
mov ecx, esi
push ebx
mov ebx, dword [esp + 0x10]
push dword [ebx + eax*4 - 4]
push dword [esp + 0x28]
xor eax, eax
push eax
push edi
call fcn.1004c180
add esp, 0x14
movsx eax, al
mov ecx, dword [esi + 8]
cmp dword [ecx], eax
jne 0x1004680c
mov eax, dword [esp + 0x10]
or byte [eax + 0x30], 8
movsd xmm0, qword [esp + 0x88]
movsd qword [eax + 0x48], xmm0
mov esi, dword [esp + 0x10]
jmp 0x1004637f
dec esi
mov eax, dword [esp + 8]
lea ecx, [eax + 0x20]
mov eax, dword [esp + 8]
movzx edx, word [eax + 0x12]
mov eax, ecx
cmp dx, word [ecx + 0x12]
jg 0x10046831
mov eax, dword [esp + 8]
add ecx, 0x20
mov edi, eax
mov dword [esp + 8], eax
dec esi
je 0x10046259
jmp 0x1004681d
mov bx, 0xffbe
cmp eax, 2
jb 0x10046553
mov esi, eax
sar esi, 0x1f
mov cx, 0x1e
mov dword [esp + 0x2c], ecx
lea ebx, [eax + eax]
xor ecx, ecx
mov edx, 3
cmp edx, eax
sbb ecx, esi
jb 0x100468d7
shld esi, eax, 1
add dword [esp + 0x2c], 0xfffffff6
mov eax, ebx
jmp 0x1004685d
mov edx, ecx
mov cx, 0x50
mov dword [esp + 0x2c], ecx
mov ecx, edx
mov ebx, eax
mov eax, edx
shld eax, ebx, 0x1c
shr edx, 4
cmp ebx, 0x1000
sbb ecx, 0
jae 0x100468e2
mov ebx, dword [esp + 0x2c]
mov ecx, edx
jmp 0x1004650c
movzx ebx, dx
xor eax, eax
mov cx, 0x50
mov dword [esp + 0x1c], ecx
mov ecx, eax
mov edx, ebx
mov ebx, eax
shld ebx, edx, 0x1c
shr eax, 4
cmp edx, 0x1000
sbb ecx, 0
jb 0x100465a1
add dword [esp + 0x1c], 0x28
jmp 0x100468b4
mov eax, ebx
mov ebx, dword [esp + 0x2c]
jmp 0x10046545
add dword [esp + 0x2c], 0x28
jmp 0x10046884