Function at 0x470f80
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x48ece3
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x4b0b28]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b0b28]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
xor esi, esi
xor edi, edi
mov dword [esp + 0x2c], esi
cmp dword [ebp + 0xc], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], edi
jle 0x47131d
jmp 0x470ff2
xor esi, esi
lea ecx, [esp + 0x5c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0x78]
mov dword [esp + 0xa0], esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov bl, 1
mov byte [esp + 0xa0], bl
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + edi*4]
mov eax, dword [eax + 8]
push eax
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov edx, dword [ebp + 8]
mov eax, dword [edx + edi*4]
mov eax, dword [eax + 0xc]
push eax
lea ecx, [esp + 0x7c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa4], 4
call fcn.0046e230
call fcn.00413550
mov dword [esp + 0x48], eax
mov byte [eax + 0x45], bl
mov eax, dword [esp + 0x48]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x48]
mov dword [eax], eax
mov eax, dword [esp + 0x48]
mov dword [eax + 8], eax
mov dword [esp + 0x4c], esi
mov byte [esp + 0xa0], 5
mov ebx, dword [esp + 0x60]
or esi, 0xffffffff
cmp dword [esp + 0x74], 0x10
mov dword [esp + 0x34], esi
jae 0x4710a2
lea ebx, [esp + 0x60]
lea ecx, [esp + 0x34]
push ecx
call fcn.00480890
add esp, 4
test al, al
je 0x4712b0
xor ebx, ebx
xor ebp, ebp
jmp 0x4710c0
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x471139
mov edi, dword [esp + 0x20]
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x471139
test esi, esi
lea edx, [esi + ebp]
mov dword [esp + 0x2c], edx
je 0x47110b
sub edi, esi
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x471115
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
add eax, 0x1c
push eax
add esi, ebp
push esi
lea ecx, [esp + 0x4c]
call fcn.00410500
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add ebx, 1
add ebp, 0x38
jmp 0x4710c0
mov eax, dword [esp + 0x34]
or ebp, 0xffffffff
cmp eax, ebp
jne 0x47118f
lea eax, [esp + 0x44]
mov byte [esp + 0xa0], 4
call fcn.004130d0
mov byte [esp + 0xa0], 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x471181
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
push ecx
push eax
call fcn.0041fcc0
mov edx, dword [esp + 0x24]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 0xc
xor eax, eax
mov byte [esp + 0xa0], al
jmp 0x47126f
add eax, 0xffffffff
cmp eax, 5
ja case.default.0x47119b
jmp dword [eax*4 + 0x47134c]
mov esi, dword [esp + 0x14]
add esi, 8
lea ebx, [esp + 0x34]
call fcn.0041c0c0
jmp case.default.0x47119b
mov esi, dword [esp + 0x14]
add esi, 0x18
lea ebx, [esp + 0x34]
call fcn.0041c0c0
jmp case.default.0x47119b
mov esi, dword [esp + 0x14]
add esi, 0x28
lea ebx, [esp + 0x34]
call fcn.0041c0c0
jmp case.default.0x47119b
mov esi, dword [esp + 0x14]
add esi, 0x38
lea ebx, [esp + 0x34]
call fcn.0041c0c0
jmp case.default.0x47119b
mov ecx, dword [esp + 0x14]
lea edi, [esp + 0x44]
call fcn.0046e410
jmp case.default.0x47119b
mov edi, dword [esp + 0x14]
add edi, 0x80
lea eax, [esp + 0x44]
cmp edi, eax
je case.default.0x47119b
mov eax, dword [edi + 4]
mov ecx, dword [eax]
push eax
push edi
push ecx
push edi
lea ecx, [esp + 0x64]
push ecx
call fcn.00413160
lea ebx, [esp + 0x44]
mov eax, edi
call fcn.0041c780
lea eax, [esp + 0x44]
mov byte [esp + 0xa0], 4
call fcn.004130d0
mov byte [esp + 0xa0], 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x471266
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
push edx
push eax
call fcn.0041fcc0
mov eax, dword [esp + 0x24]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 0xc
xor eax, eax
mov byte [esp + 0xa0], al
lea ecx, [esp + 0x78]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x5c]
mov dword [esp + 0xa0], ebp
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x28]
add edi, 1
cmp edi, dword [ebp + 0xc]
mov dword [esp + 0x30], edi
jl 0x470ff0
jmp 0x47131d
lea eax, [esp + 0x44]
mov byte [esp + 0xa0], 4
call fcn.004130d0
mov byte [esp + 0xa0], 1
mov eax, dword [esp + 0x1c]
xor ebx, ebx
cmp eax, ebx
je 0x4712ef
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
push ecx
push eax
call fcn.0041fcc0
mov edx, dword [esp + 0x24]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 0xc
lea ecx, [esp + 0x78]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0xa0], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x5c]
mov dword [esp + 0xa0], esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, 1
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0046b7d6
add esp, 0x90
ret 8