Function at 0x407550
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42c23e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe98
push ebx
push esi
push edi
lea eax, [esp + 0x508]
push eax
push 2
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x4075b2
xor ebx, ebx
push ebx
push str.Error
push str.WSAStartup_failed_
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [esp + 0xea4]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
xor ebx, ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0xeac], ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
xor eax, eax
mov byte [esp + 0x100], bl
mov ecx, 0x100
lea edi, [esp + 0x101]
rep stosd dword es:[edi], eax
mov word [esp + 0x698], bx
mov ecx, 0x200
lea edi, [esp + 0x69a]
rep stosd dword es:[edi], eax
push 0x400
lea ecx, [esp + 0x69c]
push ecx
push ebx
mov byte [esp + 0xeb8], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
push ebx
push 0x400
lea edx, [esp + 0x10c]
push edx
push 0xffffffffffffffff
mov word [esp + eax*2 + 0x6ac], bx
lea eax, [esp + 0x6ac]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [esp + 0x100]
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + eax + 0x104], bl
call dword [0x42e160]
mov edx, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [edx]
push 1
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x18], 0x5c
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::rfind_char_const___unsigned_int__unsigned_int_const]
push eax
push ebx
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x1c]
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__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xeb0], 2
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__]
lea ecx, [esp + 0x4c]
mov byte [esp + 0xeac], 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 edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x30]
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 str.CLMSSchema.ini
lea ecx, [esp + 0x30]
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 [esp + 0x28]
mov esi, 0x10
cmp eax, esi
mov eax, dword [esp + 0x14]
jae 0x4076e2
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.MSVCR71.dll__chdir]
push 8
call fcn.0042abe2
add esp, 8
mov dword [esp + 0x48], eax
cmp eax, ebx
mov byte [esp + 0xeac], 3
je 0x40770c
mov ecx, eax
call fcn.0040e280
jmp 0x40770e
xor eax, eax
mov dword [0x44303c], eax
cmp dword [esp + 0x44], esi
mov eax, dword [esp + 0x30]
mov byte [esp + 0xeac], 1
jae 0x407729
lea eax, [esp + 0x30]
push 1
push 0x1b6
push 1
push eax
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::constructor_char_const___int__int_]
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 4]
test byte [esp + ecx + 0x70], 6
mov byte [esp + 0xeac], 4
jne 0x4077b5
push 0x3e800
call fcn.0042ad1c
mov esi, eax
add esp, 4
xor eax, eax
mov ecx, 0xfa00
mov edi, esi
push 0x3e800
rep stosd dword es:[edi], eax
push esi
lea ecx, [esp + 0x70]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___int_]
lea ecx, [esp + 0x68]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::close_void_]
push 0x443038
push esi
call fcn.004074a0
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
mov ecx, dword [0x443038]
add esp, 0xc
cmp ecx, ebx
jne 0x407804
mov ecx, dword [0x44303c]
cmp ecx, ebx
je 0x4077b5
mov edx, dword [ecx]
push 1
call dword [edx]
lea ecx, [esp + 0x68]
mov byte [esp + 0xeac], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::vbase_dtor_void_]
lea ecx, [esp + 0x2c]
mov byte [esp + 0xeac], bl
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 + 0x10]
mov dword [esp + 0xeac], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0xea4]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx]
push ebx
call dword [eax]
mov ecx, dword [0x443038]
mov edx, dword [ecx]
call dword [edx + 0x2c]
lea ecx, [esp + 0x68]
mov byte [esp + 0xeac], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::vbase_dtor_void_]
lea ecx, [esp + 0x2c]
mov byte [esp + 0xeac], bl
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 + 0x10]
mov dword [esp + 0xeac], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0xea4]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret