Function at 0x46a8f0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4eb781
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx + 0x48]
lea ebx, [ecx + 0x40]
dec edi
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], ecx
push edi
push eax
mov ecx, ebx
mov dword [esp + 0x30], edi
call fcn.00416560
mov eax, dword [esp + 0x3c]
cmp eax, 3
je 0x46ae3b
cmp eax, 4
je 0x46ae3b
lea ecx, [esp + 0x30]
mov dword [esp + 0xa0], 0xffffffff
call fcn.004ba050
lea ecx, [esp + 0x30]
push edi
push ecx
mov ecx, ebx
call fcn.00416560
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xa0], 1
cmp eax, 2
je 0x46a9ad
cmp eax, 4
je 0x46a9ad
lea edx, [esp + 0x44]
push edi
push edx
mov ecx, ebx
call fcn.00416560
xor ebp, ebp
cmp eax, ebp
je 0x46a993
add eax, 4
jmp 0x46a995
xor eax, eax
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x5c], edx
call fcn.004ba050
jmp 0x46a9de
lea eax, [esp + 0x44]
push 0
push eax
mov ecx, ebx
call fcn.00416560
test eax, eax
je 0x46a9c4
add eax, 4
jmp 0x46a9c6
xor eax, eax
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x5c], edx
call fcn.004ba050
xor ebp, ebp
sub esp, 0x14
lea esi, [edi - 1]
mov eax, esp
mov dword [esp + 0x38], esp
push esi
push eax
mov ecx, ebx
call fcn.00416560
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x48]
call fcn.004ba0a0
lea ecx, [esp + 0x44]
call fcn.004ba050
cmp dword [esp + 0x3c], 0xa
jne 0x46aa12
dec esi
lea edx, [esp + 0x44]
push esi
push edx
mov ecx, ebx
call fcn.00416560
cmp eax, ebp
je 0x46aa28
add eax, 4
jmp 0x46aa2a
xor eax, eax
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x64], edx
call fcn.004ba050
sub esp, 0x14
dec esi
mov eax, esp
mov dword [esp + 0x38], esp
push esi
push eax
mov ecx, ebx
call fcn.00416560
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x48]
call fcn.004ba0a0
lea ecx, [esp + 0x44]
call fcn.004ba050
cmp dword [esp + 0x3c], 0xa
jne 0x46aa72
dec esi
lea edx, [esp + 0x84]
push esi
push edx
mov ecx, ebx
call fcn.00416560
cmp eax, ebp
je 0x46aa8b
add eax, 4
jmp 0x46aa8d
xor eax, eax
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x84]
mov dword [esp + 0x6c], edx
call fcn.004ba050
lea ecx, [esp + 0x30]
mov dword [esp + 0xa0], 0xffffffff
call fcn.004ba050
mov dword [esp + 0x10], 0x4f5b18
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0xa8], 2
call fcn.00425190
mov eax, dword [esp + 0x14]
cmp eax, ebp
jne 0x46ab1c
push 0x30
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, 6
mov dword [esp + 0x14], eax
push esi
push eax
call fcn.00425400
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
jmp 0x46abfb
mov ecx, dword [esp + 0x1c]
mov esi, 6
cmp ecx, esi
jl 0x46ab4c
mov ecx, dword [esp + 0x18]
cmp ecx, esi
jge 0x46ab43
mov edx, esi
lea eax, [eax + ecx*8]
sub edx, ecx
push edx
push eax
call fcn.00425400
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], esi
jmp 0x46abfb
mov eax, dword [esp + 0x20]
cmp eax, ebp
jne 0x46ab79
mov eax, dword [esp + 0x18]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x46ab6d
mov eax, 4
jmp 0x46ab79
cmp eax, 0x400
jle 0x46ab79
mov eax, 0x400
add eax, ecx
cmp eax, esi
mov dword [esp + 0x24], eax
jg 0x46ab87
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x24]
lea edx, [ecx*8]
push edx
call sub.MFC42.DLL_operatornew
mov ebp, eax
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov edi, ebp
lea ecx, [eax*8]
add esp, 4
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov ecx, 6
sub ecx, eax
lea edx, [ebp + eax*8]
push ecx
push edx
call fcn.00425400
mov eax, dword [esp + 0x14]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov eax, ebp
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 6
mov dword [esp + 0x1c], ecx
xor ebp, ebp
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x14]
xor eax, eax
mov esi, dword [esp + 0x60]
xor ecx, ecx
mov dword [edx + 8], eax
mov edx, dword [esp + 0x14]
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x14]
mov dword [edx + 0x10], esi
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x64]
mov dword [edx + 0x14], esi
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x58]
mov dword [edx + 0x18], eax
mov edx, dword [esp + 0x14]
mov dword [edx + 0x1c], ecx
mov edx, dword [esp + 0x14]
mov dword [edx + 0x20], esi
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x5c]
mov dword [edx + 0x24], esi
mov edx, dword [esp + 0x14]
mov dword [edx + 0x28], eax
mov eax, dword [esp + 0x14]
mov dword [eax + 0x2c], ecx
lea ecx, [esp + 0x10]
push ecx
call fcn.00424930
add esp, 4
cmp eax, ebp
jge 0x46aca0
mov dword [esp + 0x10], 0x4f5b18
mov eax, dword [esp + 0x14]
mov dword [esp + 0xa0], 3
cmp eax, ebp
je 0x46ae4f
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x46ae4f
lea ecx, [esp + 0x30]
call fcn.004ba030
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0xa
mov byte [esp + 0xa4], 4
mov edx, dword [ecx + eax*8 - 4]
mov eax, dword [ecx + eax*8 - 8]
push edx
push eax
lea ecx, [esp + 0x3c]
call fcn.004ba080
lea ecx, [esp + 0x44]
push edi
push ecx
mov ecx, ebx
call fcn.00416560
mov eax, dword [esp + 0x50]
mov byte [esp + 0xa0], 5
cmp eax, 2
mov eax, dword [esp + 0x2c]
mov ebp, 8
lea edx, [edi + edi*4]
mov ecx, dword [eax + 0x44]
jne 0x46ad01
mov dword [ecx + edx*4 + 0xc], ebp
jmp 0x46ad09
mov dword [ecx + edx*4 + 0xc], 6
lea eax, [esp + 0x30]
sub esp, 0x14
neg eax
sbb eax, eax
lea edx, [esp + 0x48]
and eax, edx
mov ecx, esp
mov dword [esp + 0x3c], esp
mov edx, dword [eax]
mov dword [ecx + 4], edx
mov eax, dword [eax + 4]
mov dword [ecx + 8], eax
mov edx, dword [esp + 0x50]
mov dword [ecx + 0xc], edx
mov eax, dword [esp + 0x54]
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x4f57e8
mov ecx, ebx
call fcn.00416650
lea ecx, [esp + 0x44]
mov byte [esp + 0xa0], 4
call fcn.004ba050
lea ecx, [esp + 0x30]
mov byte [esp + 0xa0], 2
call fcn.004ba050
lea esi, [edi - 1]
lea ecx, [esp + 0x70]
push esi
push ecx
mov ecx, ebx
call fcn.00416560
mov eax, dword [esp + 0x7c]
mov byte [esp + 0xa0], 6
cmp eax, 0xa
je 0x46ae03
mov ecx, dword [esp + 0x2c]
mov ax, word [ecx + 0xc]
movsx edx, ax
cmp edx, esi
jle 0x46ad9d
inc eax
mov word [ecx + 0xc], ax
mov ax, word [ecx + 0xe]
movsx edx, ax
cmp edx, esi
jle 0x46adad
inc eax
mov word [ecx + 0xe], ax
lea ecx, [esp + 0x44]
call fcn.004ba030
mov eax, dword [esp + 0x14]
push 0xa
mov byte [esp + 0xa4], 7
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x18]
push ecx
push edx
lea ecx, [esp + 0x50]
call fcn.004ba080
push 1
lea eax, [esp + 0x48]
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call fcn.00448ec0
push edi
mov ecx, ebx
call fcn.004499c0
lea ecx, [esp + 0x44]
mov byte [esp + 0xa0], 6
call fcn.004ba050
lea ecx, [esp + 0x70]
mov byte [esp + 0xa0], 2
call fcn.004ba050
mov dword [esp + 0x10], 0x4f5b18
mov eax, dword [esp + 0x14]
mov dword [esp + 0xa0], ebp
test eax, eax
je 0x46ae34
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
jmp 0x46ae51
lea ecx, [esp + 0x30]
mov dword [esp + 0xa0], 0xffffffff
call fcn.004ba050
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x94
ret