Function at 0x415390
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4e5404
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1d8
mov eax, dword [ecx + 0x20]
push ebx
mov ebx, dword [esp + 0x1f0]
push ebp
mov ebp, dword [eax + 0x40]
push esi
mov esi, dword [esp + 0x1fc]
xor eax, eax
cmp ebx, esi
push edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], eax
jle 0x4153e2
mov eax, ebx
mov ebx, esi
mov dword [esp + 0x1fc], ebx
mov esi, eax
mov eax, dword [esp + 0x208]
lea ecx, [esp + 0x118]
mov edi, dword [eax + 0x48]
dec edi
push edi
push ecx
lea ecx, [eax + 0x40]
call fcn.00416560
mov eax, dword [esp + 0x124]
mov dword [esp + 0x1f0], 0
cmp eax, 0xa
jne 0x415416
dec edi
cmp esi, edi
je 0x41581e
xor edi, edi
mov dword [esp + 0x14], 0x4f57c0
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
lea edx, [esp + 0x14]
mov byte [esp + 0x1f0], 1
push edx
push esi
mov esi, dword [esp + 0x210]
mov ecx, esi
call fcn.00468530
lea ecx, [esp + 0x48]
call fcn.0045a2d0
sub esp, 0xbc
mov byte [esp + 0x2ac], 2
mov ecx, esp
mov dword [esp + 0xe4], esp
push esi
call fcn.0045a3a0
lea eax, [esp + 0x1e8]
lea ecx, [esp + 0x104]
push eax
call fcn.0045a950
lea ecx, [esp + 0x12c]
call fcn.0045ae80
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x90]
call fcn.004163d0
mov ecx, dword [esp + 0x1c]
mov ebx, ecx
cmp ecx, edi
mov dword [esp + 0x10], ebx
jne 0x415511
mov esi, dword [esp + 0x8c]
cmp esi, edi
je 0x4154fe
mov eax, dword [esp + 0x90]
cmp eax, edi
je 0x4154e4
lea edi, [eax]
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx]
add esi, 0x14
dec edi
jne 0x4154cf
mov esi, dword [esp + 0x8c]
push esi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x8c], 0
xor edi, edi
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], edi
jmp 0x415672
mov edx, dword [esp + 0x8c]
cmp edx, edi
jne 0x415550
lea eax, [ecx + ecx*4]
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x8c], eax
push ebx
push eax
call fcn.00416ff0
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x94], ebx
mov dword [esp + 0x90], ebx
jmp 0x415672
mov esi, dword [esp + 0x94]
cmp ecx, esi
jg 0x4155b7
mov eax, dword [esp + 0x90]
cmp eax, ecx
jge 0x415585
sub ecx, eax
push ecx
lea ecx, [eax + eax*4]
lea edx, [edx + ecx*4]
push edx
call fcn.00416ff0
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x90], ebx
jmp 0x415672
jle 0x4155ab
lea esi, [ecx + ecx*4]
sub eax, ecx
lea esi, [edx + esi*4]
mov edx, eax
dec eax
test edx, edx
je 0x4155ab
lea edi, [eax + 1]
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax]
add esi, 0x14
dec edi
jne 0x415599
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x90], ebx
jmp 0x415672
mov eax, dword [esp + 0x98]
cmp eax, edi
jne 0x4155ea
mov eax, dword [esp + 0x90]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4155de
mov eax, 4
jmp 0x4155ea
cmp eax, 0x400
jle 0x4155ea
mov eax, 0x400
lea ebx, [esi + eax]
cmp ecx, ebx
jl 0x4155f3
mov ebx, ecx
lea ecx, [ebx + ebx*4]
shl ecx, 2
push ecx
call sub.MFC42.DLL_operatornew
mov ebp, eax
mov eax, dword [esp + 0x94]
mov esi, dword [esp + 0x90]
mov edi, ebp
lea ecx, [eax + eax*4]
add esp, 4
shl ecx, 2
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 + 0x90]
mov esi, dword [esp + 0x10]
mov ecx, esi
lea edx, [eax + eax*4]
sub ecx, eax
push ecx
lea eax, [ebp + edx*4]
push eax
call fcn.00416ff0
mov ecx, dword [esp + 0x8c]
push ecx
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x90], ebp
mov ebp, dword [esp + 0x34]
add esp, 4
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], ebx
xor edi, edi
xor esi, esi
cmp ecx, edi
jle 0x4156ee
lea edx, [esp + 0x34]
push esi
push edx
lea ecx, [esp + 0x1c]
call fcn.00416560
lea eax, [esp + 0x34]
sub esp, 0x14
neg eax
sbb eax, eax
lea edx, [esp + 0x4c]
and eax, edx
mov ecx, esp
mov dword [esp + 0x3c], esp
push esi
mov edx, dword [eax]
mov byte [esp + 0x208], 3
mov dword [ecx + 4], edx
mov eax, dword [eax + 4]
mov dword [ecx + 8], eax
mov edx, dword [esp + 0x58]
mov dword [ecx + 0xc], edx
mov eax, dword [esp + 0x5c]
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x4f57e8
lea ecx, [esp + 0xa0]
call fcn.004165b0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1f0], 2
call fcn.004ba050
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x41567a
mov ecx, dword [esp + 0x90]
mov word [esp + 0x54], di
lea eax, [ecx - 1]
lea ecx, [esp + 0x88]
movsx edx, ax
mov word [esp + 0x56], ax
lea eax, [esp + 0x104]
push edx
push eax
call fcn.00416560
mov eax, dword [esp + 0x110]
mov byte [esp + 0x1f0], 4
cmp eax, 0xa
jne 0x415733
dec word [esp + 0x56]
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0xa4]
mov word [esp + 0x84], di
mov word [esp + 0x5a], 2
call fcn.00417070
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ebp + 0x58]
mov eax, dword [ebp + 0xd4]
push ecx
mov ecx, dword [ebp + 0xd0]
push edx
mov edx, dword [ebp + 0xcc]
push eax
mov eax, dword [ebp + 0xc8]
push ecx
push edx
push eax
lea ecx, [esp + 0x60]
call fcn.0045b0e0
cmp ax, di
jge 0x415787
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x48]
call fcn.0045afe0
mov edx, dword [esp + 0x1f8]
lea ecx, [esp + 0x48]
inc edx
push ecx
push edx
mov ecx, ebp
call fcn.0048b5b0
lea ecx, [esp + 0x104]
mov dword [esp + 0x10], 1
mov byte [esp + 0x1f0], 2
call fcn.004ba050
lea ecx, [esp + 0x48]
mov byte [esp + 0x1f0], 1
call fcn.0045ae80
mov dword [esp + 0x14], 0x4f57c0
mov esi, dword [esp + 0x18]
mov byte [esp + 0x1f0], 5
cmp esi, edi
je 0x41580f
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x415806
lea edi, [eax]
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax]
add esi, 0x14
dec edi
jne 0x4157f4
mov esi, dword [esp + 0x18]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ebx, dword [esp + 0x1fc]
mov byte [esp + 0x1f0], 0
test ebx, ebx
je 0x415c80
xor edi, edi
mov dword [esp + 0x14], 0x4f57c0
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
mov esi, dword [esp + 0x208]
lea ecx, [esp + 0x14]
push ecx
push ebx
mov ecx, esi
mov byte [esp + 0x1f8], 6
call fcn.00468530
lea ecx, [esp + 0x48]
call fcn.0045a2d0
sub esp, 0xbc
mov byte [esp + 0x2ac], 7
mov ecx, esp
mov dword [esp + 0xe4], esp
push esi
call fcn.0045a3a0
lea edx, [esp + 0x1e8]
lea ecx, [esp + 0x104]
push edx
call fcn.0045a950
lea ecx, [esp + 0x12c]
call fcn.0045ae80
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x90]
call fcn.004163d0
mov ecx, dword [esp + 0x1c]
mov ebx, ecx
cmp ecx, edi
mov dword [esp + 0x28], ebx
jne 0x415919
mov esi, dword [esp + 0x8c]
cmp esi, edi
je 0x415906
mov eax, dword [esp + 0x90]
cmp eax, edi
je 0x4158ec
lea edi, [eax]
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax]
add esi, 0x14
dec edi
jne 0x4158d7
mov esi, dword [esp + 0x8c]
push esi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x8c], 0
xor edi, edi
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], edi
jmp 0x415a7a
mov edx, dword [esp + 0x8c]
cmp edx, edi
jne 0x415958
lea ecx, [ecx + ecx*4]
shl ecx, 2
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x8c], eax
push ebx
push eax
call fcn.00416ff0
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x94], ebx
mov dword [esp + 0x90], ebx
jmp 0x415a7a
mov esi, dword [esp + 0x94]
cmp ecx, esi
jg 0x4159bf
mov eax, dword [esp + 0x90]
cmp eax, ecx
jge 0x41598d
sub ecx, eax
lea eax, [eax + eax*4]
push ecx
lea ecx, [edx + eax*4]
push ecx
call fcn.00416ff0
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x90], ebx
jmp 0x415a7a
jle 0x4159b3
lea esi, [ecx + ecx*4]
sub eax, ecx
lea esi, [edx + esi*4]
mov edx, eax
dec eax
test edx, edx
je 0x4159b3
lea edi, [eax + 1]
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax]
add esi, 0x14
dec edi
jne 0x4159a1
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x90], ebx
jmp 0x415a7a
mov eax, dword [esp + 0x98]
cmp eax, edi
jne 0x4159f2
mov eax, dword [esp + 0x90]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4159e6
mov eax, 4
jmp 0x4159f2
cmp eax, 0x400
jle 0x4159f2
mov eax, 0x400
lea ebx, [esi + eax]
cmp ecx, ebx
jl 0x4159fb
mov ebx, ecx
lea ecx, [ebx + ebx*4]
shl ecx, 2
push ecx
call sub.MFC42.DLL_operatornew
mov ebp, eax
mov eax, dword [esp + 0x94]
mov esi, dword [esp + 0x90]
mov edi, ebp
lea ecx, [eax + eax*4]
add esp, 4
shl ecx, 2
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 + 0x90]
mov esi, dword [esp + 0x28]
mov ecx, esi
lea edx, [eax + eax*4]
sub ecx, eax
push ecx
lea eax, [ebp + edx*4]
push eax
call fcn.00416ff0
mov ecx, dword [esp + 0x8c]
push ecx
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x90], ebp
mov ebp, dword [esp + 0x34]
add esp, 4
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], ebx
xor edi, edi
xor esi, esi
cmp ecx, edi
jle 0x415af7
mov bl, 8
lea edx, [esp + 0x34]
push esi
push edx
lea ecx, [esp + 0x1c]
call fcn.00416560
lea eax, [esp + 0x34]
sub esp, 0x14
neg eax
sbb eax, eax
lea edx, [esp + 0x4c]
and eax, edx
mov ecx, esp
mov dword [esp + 0x3c], esp
push esi
mov edx, dword [eax]
mov byte [esp + 0x208], bl
mov dword [ecx + 4], edx
mov eax, dword [eax + 4]
mov dword [ecx + 8], eax
mov edx, dword [esp + 0x58]
mov dword [ecx + 0xc], edx
mov eax, dword [esp + 0x5c]
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x4f57e8
lea ecx, [esp + 0xa0]
call fcn.004165b0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1f0], 7
call fcn.004ba050
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x415a84
mov ecx, dword [esp + 0x90]
mov word [esp + 0x54], di
lea eax, [ecx - 1]
lea ecx, [esp + 0x88]
movsx edx, ax
mov word [esp + 0x56], ax
lea eax, [esp + 0x104]
push edx
push eax
call fcn.00416560
mov eax, dword [esp + 0x110]
mov byte [esp + 0x1f0], 9
cmp eax, 0xa
jne 0x415b3c
dec word [esp + 0x56]
mov eax, dword [esp + 0x10]
mov word [esp + 0x7c], di
cmp eax, edi
mov word [esp + 0x52], 2
je 0x415b58
mov word [esp + 0x80], di
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0xa4]
call fcn.00417070
mov ecx, dword [esp + 0x204]
mov edx, dword [ebp + 0x5c]
mov eax, dword [ebp + 0x58]
push ecx
mov ecx, dword [ebp + 0xd4]
push edx
mov edx, dword [ebp + 0xd0]
push eax
mov eax, dword [ebp + 0xcc]
push ecx
mov ecx, dword [ebp + 0xc8]
push edx
push eax
push ecx
lea ecx, [esp + 0x64]
call fcn.0045b4b0
cmp ax, di
mov ebx, eax
jl 0x415ba7
mov ebx, dword [esp + 0x2c]
lea ecx, [esp + 0x48]
call fcn.0045afe0
mov eax, dword [esp + 0x1f8]
lea edx, [esp + 0x48]
inc eax
push edx
push eax
mov ecx, ebp
call fcn.0048b5b0
mov esi, dword [esp + 0x208]
push 0xffffffffffffffff
push edi
lea ecx, [esi + 0x54]
mov word [esi + 0x38], di
call fcn.00417070
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ebp + 0x58]
mov eax, dword [ebp + 0xd4]
push ecx
mov ecx, dword [ebp + 0xd0]
push edx
mov edx, dword [ebp + 0xdc]
push eax
mov eax, dword [ebp + 0xd8]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0045b0e0
cmp ax, di
jge 0x415c0d
mov ebx, eax
mov ecx, esi
call fcn.0045afe0
lea ecx, [esp + 0x104]
mov byte [esp + 0x1f0], 7
call fcn.004ba050
lea ecx, [esp + 0x48]
mov byte [esp + 0x1f0], 6
call fcn.0045ae80
mov dword [esp + 0x14], 0x4f57c0
mov esi, dword [esp + 0x18]
mov byte [esp + 0x1f0], 0xa
cmp esi, edi
je 0x415c76
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x415c6b
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx]
add esi, 0x14
dec edi
jne 0x415c59
mov esi, dword [esp + 0x18]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor edi, edi
mov byte [esp + 0x1f0], 0
jmp 0x415cf1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x415c95
mov eax, dword [esp + 0x208]
mov word [eax + 0x38], 0
mov esi, dword [esp + 0x208]
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x54]
call fcn.00417070
mov ecx, dword [esp + 0x204]
mov edx, dword [ebp + 0x5c]
mov eax, dword [ebp + 0x58]
push ecx
mov ecx, dword [ebp + 0xd4]
push edx
mov edx, dword [ebp + 0xd0]
push eax
mov eax, dword [ebp + 0xcc]
push ecx
mov ecx, dword [ebp + 0xc8]
push edx
push eax
push ecx
mov ecx, esi
call fcn.0045b4b0
test ax, ax
jge 0x415ce4
mov dword [esp + 0x2c], eax
mov ecx, esi
call fcn.0045afe0
mov ebx, dword [esp + 0x2c]
xor edi, edi
cmp bx, di
jge 0x415d32
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
push 0xa293
lea ecx, [esp + 0x14]
mov byte [esp + 0x1f4], 0xb
call sub.MFC42.DLL_CString::LoadStringA
mov edx, dword [esp + 0x10]
push edi
push edi
push edx
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x10]
mov byte [esp + 0x1f0], 0
call fcn.004e2712
lea ecx, [esp + 0x118]
mov dword [esp + 0x1f0], 0xffffffff
call fcn.004ba050
mov ecx, dword [esp + 0x1e8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1e4
ret 0x14