Function at 0x516190
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x6534ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd4
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x34], ebp
call fcn.00643d62
mov eax, dword [ebp + 0x20]
xor esi, esi
push eax
mov dword [esp + 0xf0], esi
call dword [fcn.0065f5fc]
mov ecx, dword [ebp + 0x284]
push 0xffff0000
push esi
push 0x1101
push ecx
call dword [fcn.0065f498]
mov dword [esp + 0x30], esi
add ebp, 0x264
mov eax, dword [esi*4 + 0x6baa70]
push 0xffff0002
push 0xffff0000
push 0
push 0
push 0
push 2
push 2
push eax
push 0x23
mov ecx, ebp
call fcn.00643e9a
mov edx, esi
mov edi, eax
and edx, 0xffff
mov ecx, ebp
shl edx, 0x10
or edx, 0xffff
mov dword [esp + 0x2c], edi
push edx
push 0
push 0
push 0
push 0
push 0
push 4
push edi
call fcn.00643e94
mov edx, dword [esi*4 + 0x6baa70]
mov esi, 0x6bab48
mov eax, edx
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x516276
test cl, cl
je 0x516272
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x516276
add eax, 2
add esi, 2
test cl, cl
jne 0x516252
xor eax, eax
jmp 0x51627b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x516641
mov ecx, dword [0x8267e8]
push 0xffffffffffffffff
push eax
push eax
call dword [sym.imp.TCalc.dll_public:_long_int___thiscall_CalcInterface::GetTreeInfo_void___int__int_]
mov ebx, eax
mov dword [esp + 0x20], ebx
lea eax, [ebx + ebx*4]
lea esi, [ebx + eax*2]
shl esi, 2
push esi
call fcn.00643b70
mov edi, eax
lea eax, [ebx + ebx*4]
mov dword [esp + 0x20], edi
lea ebx, [eax + eax*4]
push ebx
call fcn.00643b70
mov ecx, esi
mov edx, eax
xor eax, eax
mov dword [esp + 0x20], edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
add esp, 8
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, ebx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0xffffffffffffffff
and ecx, 3
push 0
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x24]
mov ecx, dword [0x8267e8]
push eax
call dword [sym.imp.TCalc.dll_public:_long_int___thiscall_CalcInterface::GetTreeInfo_void___int__int_]
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x516375
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, eax
mov dword [esp + 0x10], ecx
mov al, byte [edx]
lea edi, [edx + 8]
mov byte [esp + 0x88], al
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x89]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
add edx, 0x2c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 6
lea esi, [esp + 0x88]
mov edi, ebx
mov dword [esp + 0x9d], 0
rep movsd dword es:[edi], dword [esi]
add ebx, 0x19
dec eax
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], eax
jne 0x516312
cmp dword [esp + 0xf4], 1
je 0x516482
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x516482
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], eax
lea edi, [ecx + 8]
mov eax, dword [edi - 4]
test eax, eax
jne 0x5163ed
mov edx, dword [esp + 0x2c]
push 0xffff0002
push edx
push 0
push 0
push 0
push 1
push 1
push edi
push 0x23
mov ecx, ebp
call fcn.00643e9a
xor ecx, ecx
mov dword [esi + 0x15], eax
mov cl, byte [esi]
shl ecx, 0x10
or ecx, 0x2710
push ecx
push 0
push 0
push 0
push 0
push 0
push 4
push eax
mov ecx, ebp
call fcn.00643e94
jmp 0x51646d
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
lea ebx, [ecx + 0x15]
mov dword [esp + 0x24], edx
mov ecx, dword [esp + 0x10]
mov eax, dword [edi - 4]
cmp eax, dword [ecx]
jne 0x516454
mov eax, dword [ebx]
test eax, eax
je 0x516454
push 0xffff0002
push eax
push 0
push 0
push 0
push 1
push 1
push edi
push 0x23
mov ecx, ebp
call fcn.00643e9a
xor ecx, ecx
mov dword [esi + 0x15], eax
mov cl, byte [esi]
shl ecx, 0x10
or ecx, 0x2710
push ecx
push 0
push 0
push 0
push 0
push 0
push 4
push eax
mov ecx, ebp
call fcn.00643e94
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
add edx, 0x2c
add ebx, 0x19
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], eax
jne 0x516404
mov eax, dword [esp + 0x14]
add edi, 0x2c
add esi, 0x19
dec eax
mov dword [esp + 0x14], eax
jne 0x51639e
mov ecx, dword [0x8267e8]
push 0
call dword [sym.imp.TCalc.dll_public:_long_int___thiscall_CalcInterface::GetIndexNum_unsigned_char_const]
xor edi, edi
mov dword [esp + 0x24], eax
test eax, eax
jle 0x516616
xor ebx, ebx
mov esi, dword [sym.imp.TCalc.dll_public:_struct_tag_INDEXINFO____thiscall_CalcInterface::operator___unsigned_char_const]
mov ecx, dword [0x8267e8]
push 0
call esi
mov ecx, dword [0x8267e8]
lea edx, [eax + ebx + 0x11]
push edx
push 0
call esi
lea eax, [eax + ebx + 3]
lea ecx, [esp + 0x2c]
push eax
push 0x69a744
push ecx
call fcn.00643d50
mov eax, dword [esp + 0x30]
add esp, 0x10
test eax, eax
je 0x5165c1
cmp dword [esp + 0xf4], 1
je 0x5165c1
test eax, eax
jle 0x516603
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
lea esi, [eax + 0x15]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x8267e8]
push 0
call dword [sym.imp.TCalc.dll_public:_struct_tag_INDEXINFO____thiscall_CalcInterface::operator___unsigned_char_const]
xor edx, edx
mov dl, byte [eax + ebx + 0x43]
mov eax, dword [esp + 0x10]
cmp edx, dword [eax]
jne 0x5165a2
mov ecx, dword [0x8267e8]
push 0
call dword [sym.imp.TCalc.dll_public:_struct_tag_INDEXINFO____thiscall_CalcInterface::operator___unsigned_char_const]
mov eax, dword [eax + ebx + 0xb14]
mov ecx, dword [esp + 0xf4]
and eax, 1
test ecx, ecx
je 0x516562
cmp ecx, 2
jne 0x516559
test eax, eax
jne 0x516562
jmp 0x5165a2
cmp ecx, 3
jne 0x5165a2
test eax, eax
jne 0x5165a2
mov eax, dword [esi]
mov ecx, dword [esp + 0x28]
push 0xffff0002
push eax
push 0
push 0
push 0
push 0
push 0
push ecx
push 0x23
mov ecx, ebp
call fcn.00643e9a
mov edx, edi
mov ecx, ebp
and edx, 0xffff
shl edx, 0x10
push edx
push 0
push 0
push 0
push 0
push 0
push 4
push eax
call fcn.00643e94
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add edx, 0x2c
add esi, 0x19
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
jne 0x51650f
jmp 0x516603
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push 0xffff0002
push eax
push 0
push 0
push 0
push 0
push 0
push ecx
push 0x23
mov ecx, ebp
call fcn.00643e9a
mov edx, edi
mov ecx, ebp
and edx, 0xffff
shl edx, 0x10
push edx
push 0
push 0
push 0
push 0
push 0
push 4
push eax
call fcn.00643e94
mov eax, dword [esp + 0x24]
inc edi
add ebx, 0xb18
cmp edi, eax
jl 0x5164a0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x516627
push eax
call fcn.00643cfc
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x516d95
push eax
call fcn.00643cfc
add esp, 4
jmp 0x516d95
mov eax, dword [esp + 0x30]
cmp eax, 1
jne 0x5166bd
mov ebx, dword [esp + 0xf4]
cmp ebx, 3
je 0x516731
mov al, byte [0x6c2948]
test al, al
je 0x516d95
mov esi, 0x6c2948
cmp word [esi + 0x20], 0
jne 0x5166ae
push 0xffff0002
push edi
push 0
push 0
push 0
push 0
push 0
push esi
push 0x23
mov ecx, ebp
call fcn.00643e9a
xor ecx, ecx
mov cx, word [esi + 0x1e]
shl ecx, 0x10
or ecx, 2
push ecx
push 0
push 0
push 0
push 0
push 0
push 4
push eax
mov ecx, ebp
call fcn.00643e94
mov al, byte [esi + 0x2e]
add esi, 0x2e
test al, al
jne 0x51666c
jmp 0x516d95
mov ebx, dword [esp + 0xf4]
cmp eax, 2
jne 0x516731
cmp ebx, 3
je 0x516731
mov al, byte [0x6c2948]
test al, al
je 0x516d95
mov esi, 0x6c2948
cmp word [esi + 0x20], 1
jne 0x516722
push 0xffff0002
push edi
push 0
push 0
push 0
push 0
push 0
push esi
push 0x23
mov ecx, ebp
call fcn.00643e9a
xor ecx, ecx
mov cx, word [esi + 0x1e]
shl ecx, 0x10
or ecx, 2
push ecx
push 0
push 0
push 0
push 0
push 0
push 4
push eax
mov ecx, ebp
call fcn.00643e94
mov al, byte [esi + 0x2e]
add esi, 0x2e
test al, al
jne 0x5166e0
jmp 0x516d95
mov esi, 0x6bab1c
mov eax, edx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x51675c
test cl, cl
je 0x516758
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x51675c
add eax, 2
add esi, 2
test cl, cl
jne 0x516738
xor eax, eax
jmp 0x516761
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x516b13
mov ecx, dword [0x8267e8]
push 0xffffffffffffffff
push 1
push eax
call dword [sym.imp.TCalc.dll_public:_long_int___thiscall_CalcInterface::GetTreeInfo_void___int__int_]
mov ebx, eax
mov dword [esp + 0x1c], ebx
lea eax, [ebx + ebx*4]
lea esi, [ebx + eax*2]
shl esi, 2
push esi
call fcn.00643b70
mov edi, eax
lea eax, [ebx + ebx*4]
mov dword [esp + 0x24], edi
lea ebx, [eax + eax*4]
push ebx
call fcn.00643b70
mov ecx, esi
mov edx, eax
xor eax, eax
mov dword [esp + 0x20], edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
add esp, 8
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, ebx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0xffffffffffffffff
and ecx, 3
push 1
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
mov ecx, dword [0x8267e8]
push eax
call dword [sym.imp.TCalc.dll_public:_long_int___thiscall_CalcInterface::GetTreeInfo_void___int__int_]
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x516853
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ecx, eax
mov dword [esp + 0x14], ecx
mov al, byte [edx]
lea edi, [edx + 8]
mov byte [esp + 0x6c], al
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x6d]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x24], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x24]
add edx, 0x2c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 6
lea esi, [esp + 0x6c]
mov edi, ebx
mov dword [esp + 0x81], 0
rep movsd dword es:[edi], dword [esi]
add ebx, 0x19
dec eax
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x14], eax
jne 0x5167f9
cmp dword [esp + 0xf4], 1
je 0x51695f
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x51695f
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x24], eax
lea edi, [ecx + 8]
cmp dword [edi - 4], 1
jne 0x5168ca
mov edx, dword [esp + 0x2c]
push 0xffff0002
push edx
push 0
push 0
push 0
push 1
push 1
push edi
push 0x23
mov ecx, ebp
call fcn.00643e9a
xor ecx, ecx
mov dword [esi + 0x15], eax
mov cl, byte [esi]
shl ecx, 0x10
or ecx, 0x2711
push ecx
push 0
push 0
push 0
push 0
push 0
push 4
push eax
mov ecx, ebp
call fcn.00643e94
jmp 0x51694a
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
lea ebx, [ecx + 0x15]
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x10]
mov eax, dword [edi - 4]
cmp eax, dword [ecx]
jne 0x516931
mov eax, dword [ebx]
test eax, eax
je 0x516931
push 0xffff0002
push eax
push 0
push 0
push 0
push 1
push 1
push edi
push 0x23
mov ecx, ebp
call fcn.00643e9a
xor ecx, ecx
mov dword [esi + 0x15], eax
mov cl, byte [esi]
shl ecx, 0x10
or ecx, 0x2711
push ecx
push 0
push 0
push 0
push 0
push 0
push 4
push eax
mov ecx, ebp
call fcn.00643e94
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add edx, 0x2c
add ebx, 0x19
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
jne 0x5168e1
mov eax, dword [esp + 0x24]
add edi, 0x2c
add esi, 0x19
dec eax
mov dword [esp + 0x24], eax
jne 0x51687c
mov ecx, dword [0x8267e8]
push 1
call dword [sym.imp.TCalc.dll_public:_long_int___thiscall_CalcInterface::GetIndexNum_unsigned_char_const]
xor edi, edi
mov dword [esp + 0x24], eax
test eax, eax
jle 0x516af9
xor ebx, ebx
mov ecx, dword [0x8267e8]
mov esi, dword [sym.imp.TCalc.dll_public:_struct_tag_INDEXINFO____thiscall_CalcInterface::operator___unsigned_char_const]
push 1
call esi
mov ecx, dword [0x8267e8]
lea edx, [eax + ebx + 0x11]
push edx
push 1
call esi
lea eax, [eax + ebx + 3]
lea ecx, [esp + 0x2c]
push eax
push 0x69a744
push ecx
call fcn.00643d50
mov eax, dword [esp + 0x2c]
add esp, 0x10
test eax, eax
je 0x516aa1
cmp dword [esp + 0xf4], 1
je 0x516aa1
test eax, eax
jle 0x516ae6
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], edx
lea esi, [eax + 0x15]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x8267e8]
push 1
call dword [sym.imp.TCalc.dll_public:_struct_tag_INDEXINFO____thiscall_CalcInterface::operator___unsigned_char_const]
xor edx, edx
mov dl, byte [eax + ebx + 0x43]
mov eax, dword [esp + 0x10]
cmp edx, dword [eax]
jne 0x516a82
mov ecx, dword [0x8267e8]
push 1
call dword [sym.imp.TCalc.dll_public:_struct_tag_INDEXINFO____thiscall_CalcInterface::operator___unsigned_char_const]
mov eax, dword [eax + ebx + 0xb14]
mov ecx, dword [esp + 0xf4]
and eax, 1
test ecx, ecx
je 0x516a3f
cmp ecx, 2
jne 0x516a36
test eax, eax
jne 0x516a3f
jmp 0x516a82
cmp ecx, 3
jne 0x516a82
test eax, eax
jne 0x516a82
mov eax, dword [esi]
mov ecx, dword [esp + 0x28]
push 0xffff0002
push eax
push 0
push 0
push 0
push 0
push 0
push ecx
push 0x23
mov ecx, ebp
call fcn.00643e9a
mov edx, edi
mov ecx, ebp
and edx, 0xffff
shl edx, 0x10
or edx, 1
push edx
push 0
push 0
push 0
push 0
push 0
push 4
push eax
call fcn.00643e94
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add edx, 0x2c
add esi, 0x19
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
jne 0x5169ec
jmp 0x516ae6
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push 0xffff0002
push eax
push 0
push 0
push 0
push 0
push 0
push ecx
push 0x23
mov ecx, ebp
call fcn.00643e9a
mov edx, edi
mov ecx, ebp
and edx, 0xffff
shl edx, 0x10
or edx, 1
push edx
push 0
push 0
push 0
push 0
push 0
push 4
push eax
call fcn.00643e94
mov eax, dword [esp + 0x24]
inc edi
add ebx, 0xb18
cmp edi, eax
jl 0x51697d
mov eax, dword [esp + 0x20]
test eax, eax
je 0x516b0a
push eax
call fcn.00643cfc
add esp, 4
mov eax, dword [esp + 0x18]
jmp 0x51662b
mov eax, dword [esp + 0x30]
cmp eax, 4
jne 0x516c5e
cmp ebx, 3
je 0x516d95
mov ecx, dword [0x8267e8]
push 3
call dword [sym.imp.TCalc.dll_public:_long_int___thiscall_CalcInterface::GetIndexNum_unsigned_char_const]
xor ebx, ebx
mov dword [esp + 0x14], eax
test eax, eax
jle 0x516d95
mov dword [esp + 0x18], ebx
mov ecx, dword [0x8267e8]
push 3
call dword [sym.imp.TCalc.dll_public:_struct_tag_INDEXINFO____thiscall_CalcInterface::operator___unsigned_char_const]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xa4]
push 3
lea edi, [eax + ecx + 3]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xa8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x6bab54
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x8267e8]
call dword [sym.imp.TCalc.dll_public:_struct_tag_INDEXINFO____thiscall_CalcInterface::operator___unsigned_char_const]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xa4]
push 0xffff0002
lea edi, [eax + ecx + 0x11]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x30]
mov ecx, edx
and ecx, 3
push eax
push 0
push 0
rep movsb byte es:[edi], byte [esi]
push 0
push 0
lea ecx, [esp + 0xbc]
push 0
push ecx
push 0x23
mov ecx, ebp
call fcn.00643e9a
mov edx, ebx
and edx, 0xffff
shl edx, 0x10
or edx, 3
push edx
push 0
push 0
push 0
push 0
push 0
push 4
push eax
mov ecx, ebp
call fcn.00643e94
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
inc ebx
add ecx, 0xb18
cmp ebx, eax
mov dword [esp + 0x18], ecx
jl 0x516b49
jmp 0x516d95
cmp eax, 5
jne 0x516d95
cmp ebx, 3
je 0x516d95
mov eax, dword [0x6baab8]
xor edi, edi
test eax, eax
je 0x516d95
mov eax, 0x6baab8
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax]
push 0xffff0002
push ecx
push 0
push 0
push 0
push 1
push 1
push eax
push 0x23
mov ecx, ebp
call fcn.00643e9a
mov edx, edi
mov esi, eax
and edx, 0xffff
mov ecx, ebp
shl edx, 0x10
or edx, 0xffec
push edx
push 0
push 0
push 0
push 0
push 0
push 4
push esi
call fcn.00643e94
cmp edi, 4
ja case.default.0x516cd1
jmp dword [edi*4 + 0x516de0]
mov ebx, 0x6c39c0
jmp 0x516cfd
mov ebx, 0x6c3f80
jmp 0x516cfd
mov ebx, 0x6c4488
jmp 0x516cfd
mov ebx, 0x6c4b00
jmp 0x516cfd
mov ebx, 0x6c5038
jmp 0x516cfd
xor ebx, ebx
mov dword [esp + 0x38], esi
xor esi, esi
cmp ebx, esi
mov dword [esp + 0x3c], 0xffff0002
mov dword [esp + 0x40], 0x23
mov dword [esp + 0x64], esi
je 0x516d7e
cmp byte [ebx], 0
je 0x516d7e
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x38]
xor eax, eax
push ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
push eax
mov eax, dword [edx + 0x284]
push 0x1100
push eax
mov dword [esp + 0x60], ebx
call dword [fcn.0065f498]
lea ecx, [edi + edi*4]
lea ecx, [ecx + ecx*4]
lea edx, [esi + ecx*4]
mov ecx, ebp
and edx, 0xffff
shl edx, 0x10
or edx, 4
push edx
push 0
push 0
push 0
push 0
push 0
push 4
push eax
call fcn.00643e94
inc esi
add ebx, 0x2e
mov dword [esp + 0x64], esi
jmp 0x516d1b
inc edi
mov ecx, dword [edi*4 + 0x6baab8]
lea eax, [edi*4 + 0x6baab8]
test ecx, ecx
jne 0x516c84
mov esi, dword [esp + 0x30]
inc esi
cmp esi, 5
mov dword [esp + 0x30], esi
jl 0x5161f3
push 0
call dword [fcn.0065f5fc]
lea ecx, [esp + 0x28]
mov dword [esp + 0xec], 0xffffffff
call fcn.00643d26
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xe0
ret 4