Function at 0x458fd0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x49c35b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c8
mov eax, dword [0x4bc410]
xor eax, esp
push esi
mov esi, dword [esp + 0x4e4]
push edi
mov edi, ecx
push 0xa
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4d0], eax
mov dword [esp + 0x10], edi
call fcn.00496750
lea ecx, [esp + 0x60]
mov dword [esp + 0x4d8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0x44]
mov byte [esp + 0x4d8], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
push 0x2c
push 0xffffffffffffffff
lea eax, [esp + 0x30]
push eax
push esi
mov byte [esp + 0x4e8], 2
call fcn.0048f630
mov eax, dword [esp + 0x44]
add esp, 0x10
cmp eax, 6
jge 0x45909a
lea ecx, [esp + 0x44]
mov byte [esp + 0x4d8], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x60]
mov byte [esp + 0x4d8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x28]
mov dword [esp + 0x4d8], 0xffffffff
call sub.MFC71.DLL_CPtrList::CPtrList
jmp 0x459782
push 0
lea ecx, [esp + 0x2c]
call sub.MFC71.DLL_CPtrList::FindIndex
test eax, eax
jne 0x4590ae
call fcn.0049641a
mov ecx, dword [eax + 8]
mov esi, dword [sym.imp.MSVCR71.dll_atoi]
push ecx
call esi
add esp, 4
push 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], eax
call sub.MFC71.DLL_CPtrList::FindIndex
test eax, eax
jne 0x4590d5
call fcn.0049641a
mov edx, dword [eax + 8]
push edx
call esi
add esp, 4
push 2
lea ecx, [esp + 0x2c]
mov dword [esp + 0xc], eax
call sub.MFC71.DLL_CPtrList::FindIndex
test eax, eax
jne 0x4590f6
call fcn.0049641a
mov eax, dword [eax + 8]
push eax
call esi
add esp, 4
push 3
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], eax
call sub.MFC71.DLL_CPtrList::FindIndex
test eax, eax
jne 0x459117
call fcn.0049641a
mov ecx, dword [eax + 8]
push ecx
call esi
add esp, 4
push 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], eax
call sub.MFC71.DLL_CPtrList::FindIndex
test eax, eax
jne 0x459138
call fcn.0049641a
mov edx, dword [eax + 8]
push edx
call esi
add esp, 4
push 5
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], eax
call sub.MFC71.DLL_CPtrList::FindIndex
test eax, eax
jne 0x459159
call fcn.0049641a
push ebx
mov ebx, dword [eax + 8]
cmp dword [esp + 0x38], 7
mov dword [esp + 0x1c], ebx
jl 0x459181
push 6
lea ecx, [esp + 0x30]
call sub.MFC71.DLL_CPtrList::FindIndex
test eax, eax
jne 0x45917c
call fcn.0049641a
mov esi, dword [eax + 8]
jmp 0x459183
xor esi, esi
push ebp
mov ebp, dword [esp + 0x4e8]
push ebx
push ebp
mov ecx, edi
call fcn.004569f0
test eax, eax
jne 0x459748
test esi, esi
lea ecx, [esp + 0x4c]
je 0x4591a7
push esi
jmp 0x4591ac
push 0x4a095c
call dword [sym.imp.MSVCP71.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_char_const__]
mov eax, dword [edi]
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x50]
push edx
push ebp
mov ecx, edi
call dword [eax + 0x1c]
test eax, eax
je 0x459215
push 0xa
lea ecx, [esp + 0xd8]
push ecx
push eax
call dword [sym.imp.MSVCR71.dll__itoa]
lea eax, [esp + 0xe0]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4591e6
mov ecx, dword [0x4bd2c0]
push 0
sub eax, edx
push eax
mov eax, dword [esp + 0x4f4]
lea edx, [esp + 0xdc]
push edx
push eax
push ebp
push 0x68
call fcn.0045b780
jmp 0x459748
mov eax, dword [0x4bd2c0]
mov edx, dword [eax + 0x47c]
mov ecx, 2
cmp edx, ecx
jle 0x459240
cmp dword [esp + 0x24], ecx
jle 0x459240
mov ecx, dword [esp + 0x10]
cmp dword [eax + 0x480], ecx
mov edi, 5
jne 0x459245
mov edi, 4
push 0x319c
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x4e0], 3
je 0x459279
mov edx, dword [esp + 0x4ec]
push 0
push edx
push ebp
push edi
mov ecx, eax
call fcn.0046faf0
mov ebp, eax
jmp 0x45927b
xor ebp, ebp
test ebp, ebp
mov byte [esp + 0x4e0], 2
je 0x459748
push 0x2c
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x4e0], 4
je 0x4592b1
push ebp
mov ecx, eax
call fcn.00475770
mov esi, eax
jmp 0x4592b3
xor esi, esi
test esi, esi
mov byte [esp + 0x4e0], 2
jne 0x4592cf
mov eax, dword [ebp + 4]
lea ecx, [ebp + 4]
push 1
call dword [eax + 0x10]
jmp 0x459748
mov ecx, dword [esp + 0x10]
mov dx, word [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [ebp + 0x70], ecx
mov cx, word [esp + 0x1c]
mov word [ebp + 0x7a], cx
mov word [ebp + 0x78], dx
mov edx, dword [esp + 0x24]
lea ecx, [ebp + 0x18]
mov dword [ebp + 0x74], eax
mov byte [ebp + 0x4a], 1
mov dword [ebp + 0x6c], edx
mov eax, ebx
sub ecx, ebx
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x459301
lea ecx, [esp + 0x68]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea ecx, [esi + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_3]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esi + 8]
call dword [sym.imp.MSVCP71.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__]
push esi
mov ecx, ebp
call fcn.0046ea50
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x1c], ebp
call fcn.00424c90
cmp di, 4
jne 0x4596c5
mov ebx, dword [sym.imp.MSVCR71.dll__itoa]
push 0xa
lea edx, [esp + 0xd8]
push edx
push 0
call ebx
lea edi, [esp + 0xe0]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x459373
mov ax, word [0x4a3ffc]
mov edx, dword [0x4bd2c0]
push 0xa
lea ecx, [esp + 0xa4]
mov word [edi], ax
mov eax, dword [edx + 0x47c]
push ecx
push eax
call ebx
lea eax, [esp + 0xac]
add esp, 0xc
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4593b0
lea edi, [esp + 0xd4]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4593c1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xd4]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4593e1
mov cx, word [0x4a3ffc]
mov eax, dword [0x4bd2c0]
push 0xa
lea edx, [esp + 0xa4]
mov word [edi], cx
mov ecx, dword [eax + 0x480]
push edx
push ecx
call ebx
lea eax, [esp + 0xac]
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x459417
lea edi, [esp + 0xd4]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x459428
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xd4]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x459448
mov dx, word [0x4a3ffc]
mov ecx, dword [0x4bd2c0]
mov word [edi], dx
movzx edx, word [ecx + 0x48a]
push 0xa
lea eax, [esp + 0xa4]
push eax
push edx
call ebx
lea eax, [esp + 0xac]
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x459480
lea edi, [esp + 0xd4]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x459491
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xd4]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4594b1
mov ax, word [0x4a3ffc]
mov edx, dword [0x4bd2c0]
push 0xa
lea ecx, [esp + 0xa4]
mov word [edi], ax
mov eax, dword [edx + 0x484]
push ecx
push eax
call ebx
lea eax, [esp + 0xac]
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4594e7
lea edi, [esp + 0xd4]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4594f8
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xd4]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x459518
mov cx, word [0x4a3ffc]
mov eax, dword [0x4bd2c0]
mov word [edi], cx
movzx ecx, word [eax + 0x488]
push 0xa
lea edx, [esp + 0xa4]
push edx
push ecx
call ebx
lea eax, [esp + 0xac]
add esp, 0xc
mov edx, eax
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x459550
lea edi, [esp + 0xd4]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x459561
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xd4]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x459581
mov bx, word [0x4a3ffc]
mov eax, dword [esp + 0x20]
mov word [edi], bx
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4595a0
lea edi, [esp + 0xd4]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4595b1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xd4]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4595d1
lea ecx, [esp + 0x4c]
mov word [edi], bx
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4595e8
lea edi, [esp + 0xd4]
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x459600
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0xd4]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x459622
mov ecx, dword [esp + 0x4e8]
push 0
sub eax, edx
push eax
mov eax, dword [esp + 0x4f4]
lea edx, [esp + 0xdc]
push edx
push eax
push ecx
mov ecx, dword [0x4bd2c0]
push 0x68
call fcn.0045b780
mov edx, dword [esp + 0x24]
cmp edx, 2
mov eax, dword [0x4bd2c0]
mov ecx, dword [esp + 0x10]
jle 0x459671
cmp dword [eax + 0x480], ecx
jne 0x459748
cmp dword [eax + 0x480], ecx
jne 0x459694
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
push 1
push edx
push eax
push ebp
call fcn.004566f0
jmp 0x459748
cmp edx, 2
push 0
jne 0x4596b0
mov edx, dword [esp + 0x20]
push edx
push ecx
mov ecx, dword [esp + 0x20]
push ebp
call fcn.004566f0
jmp 0x459748
mov eax, dword [esp + 0x2c]
push eax
push ecx
mov ecx, dword [esp + 0x20]
push ebp
call fcn.004566f0
jmp 0x459748
lea ecx, [esp + 0x84]
mov word [ebp + 0x82], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [0x4bd2c0]
lea edx, [esp + 0x88]
push edx
mov byte [esp + 0x4e8], 5
call fcn.00459f70
lea ecx, [esp + 0x84]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [esp + 0x20]
push 0
push ecx
push eax
mov word [ebp + 0x90], cx
push ebp
mov ecx, esi
mov dword [ebp + 0x8c], eax
call fcn.004566f0
lea ecx, [esp + 0x84]
mov byte [esp + 0x4e0], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x4e0], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x68]
mov byte [esp + 0x4e0], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x30]
mov dword [esp + 0x4e0], 0xffffffff
call sub.MFC71.DLL_CPtrList::CPtrList
pop ebp
pop ebx
mov ecx, dword [esp + 0x4d0]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x4c8]
pop esi
xor ecx, esp
call fcn.00496ace
add esp, 0x4d4
ret 0xc