Function at 0x406350
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x44c8fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x338
push ebx
push ebp
mov ebx, ecx
push esi
mov dword [esp + 0xc], 0
cmp dword [ebx + 0x60], 0
push edi
mov dword [esp + 0x2c], ebx
je 0x40756c
mov edi, dword [ebx + 0x5c]
mov eax, dword [ebx + 0x60]
add eax, edi
cmp edi, eax
jbe 0x406399
call dword [sym.imp.MSVCR80.DLL__invalid_parameter_noinfo]
mov ecx, dword [ebx + 0x60]
add ecx, dword [ebx + 0x5c]
mov esi, edi
mov ebp, edi
shr esi, 2
and ebp, 3
cmp edi, ecx
jb 0x4063b3
call dword [sym.imp.MSVCR80.DLL__invalid_parameter_noinfo]
mov eax, dword [ebx + 0x58]
cmp eax, esi
ja 0x4063bc
sub esi, eax
mov edx, dword [ebx + 0x54]
mov eax, dword [edx + esi*4]
mov edi, dword [eax + ebp*4]
mov eax, dword [ebx + 0x60]
xor ebp, ebp
mov dword [esp + 0x20], edi
cmp eax, ebp
je 0x4063ef
mov edx, dword [ebx + 0x58]
inc dword [ebx + 0x5c]
add edx, edx
add edx, edx
cmp edx, dword [ebx + 0x5c]
ja 0x4063e4
mov dword [ebx + 0x5c], ebp
dec eax
mov dword [ebx + 0x60], eax
cmp eax, ebp
jne 0x4063ef
mov dword [ebx + 0x5c], ebp
mov al, byte [edi + 0x14]
cmp al, 0xf7
jne 0x4069fa
mov eax, dword [edi]
add eax, 0xfffffffc
cmp eax, 0x44
ja case.0x40640f.5
movzx eax, byte [eax + 0x4075a4]
jmp dword [eax*4 + 0x407588]
mov ecx, dword [0x45c5c4]
cmp byte [ecx + 0x89a], 0
mov ecx, dword [edi + 8]
lea esi, [edi + 4]
je 0x406561
test ecx, ecx
je case.0x40640f.5
mov eax, dword [esi + 8]
sub eax, ecx
cmp eax, 0x1e
jb case.0x40640f.5
push 4
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call fcn.00401f90
call fcn.00403d10
mov ecx, dword [esi + 4]
add esp, 0x14
movzx edi, ax
test ecx, ecx
jne 0x40646c
xor eax, eax
jmp 0x406471
mov eax, dword [esi + 8]
sub eax, ecx
sub eax, edi
cmp eax, 0x17
jb case.0x40640f.5
lea ebp, [edi + 0xf]
push ebp
mov ecx, esi
call fcn.00401150
cmp byte [eax], 2
jb case.0x40640f.5
lea edx, [edi + 6]
push edx
mov ecx, esi
mov byte [ebx + 0xb3], 1
call fcn.00401150
mov al, byte [eax]
lea ecx, [edi + 0x10]
push ecx
mov ecx, esi
mov byte [ebx + 0xb4], al
call fcn.00401150
movzx edx, byte [eax]
lea eax, [edi + 0x11]
push eax
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
mov dword [ebx + 0xbc], edx
call fcn.00401f90
call fcn.00403d10
add esp, 0x14
push eax
call dword [sym.imp.WS2_32.DLL_htons]
add edi, 0x13
push edi
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
mov word [ebx + 0xb6], ax
call fcn.00401f90
call fcn.00403e90
add esp, 0x14
push ebp
mov ecx, esi
mov dword [ebx + 0xb8], eax
call fcn.00401150
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, dword [0x45c5c4]
mov byte [ecx + 0xc], 1
mov edx, dword [0x45c5c4]
mov byte [edx + 9], 0xff
mov eax, dword [0x45c5c4]
mov byte [eax + 0xb], 0xff
mov ecx, dword [0x45c5c4]
mov byte [ecx + 0xd], 0xff
mov ecx, dword [ebx + 0x38]
call fcn.0040a010
mov edi, dword [esp + 0x20]
mov ecx, dword [ebx + 0x30]
lea eax, [edi + 4]
push eax
call fcn.00409310
jmp case.default.0x406a0e
test ecx, ecx
je 0x4065b5
mov eax, dword [esi + 8]
sub eax, ecx
cmp eax, 6
jb 0x4065b5
push 4
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call fcn.00401f90
call fcn.00403d10
movzx edx, ax
mov eax, dword [esi + 4]
add esp, 0x14
test eax, eax
jne 0x406596
xor ecx, ecx
jmp 0x40659b
mov ecx, dword [esi + 8]
sub ecx, eax
lea eax, [edx + 7]
cmp ecx, eax
jb 0x4065b5
add edx, 6
push edx
mov ecx, esi
call fcn.00401150
mov cl, byte [eax]
mov byte [ebx + 0xb4], cl
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x406625
cmp byte [ecx + 0x78], 0
mov eax, 4
je 0x4065cc
mov eax, 6
cmp byte [ecx + 0xc4], 0
je 0x4065d8
or eax, 1
push eax
lea edx, [esp + 0x74]
push 2
push edx
call fcn.00405cf0
add esp, 0xc
mov ecx, dword [ebx + 0x34]
push eax
mov dword [esp + 0x354], 0
call fcn.00409310
mov dword [esp + 0x350], 0xffffffff
lea ecx, [esp + 0x70]
call fcn.00401670
mov edi, dword [esp + 0x20]
mov ecx, dword [ebx + 0x30]
lea eax, [edi + 4]
push eax
call fcn.00409310
jmp case.default.0x406a0e
lea eax, [esp + 0x60]
push 1
push eax
call fcn.00405b70
add esp, 8
mov ecx, dword [ebx + 0x34]
push eax
mov dword [esp + 0x354], 1
call fcn.00409310
mov dword [esp + 0x350], 0xffffffff
lea ecx, [esp + 0x60]
jmp 0x40660b
cmp word [ebx + 0xb6], bp
je 0x406731
mov esi, 0x450f34
mov byte [ebx + 0xae], 1
cmp dword [ebx], ebp
jne 0x40668c
push str.Warcraft_III
push str.Warcraft_III
call dword [sym.imp.USER32.DLL_FindWindowA]
mov dword [ebx], eax
test eax, eax
je 0x4066a9
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.USER32.DLL_IsIconic]
test eax, eax
je 0x4066a9
mov edx, dword [ebx]
push 9
push edx
call dword [sym.imp.USER32.DLL_ShowWindow]
mov esi, 0x450f20
push 0x104
lea eax, [esp + 0x244]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea ecx, [esp + 0x240]
push 0x5c
push ecx
call dword [sym.imp.MSVCR80.DLL_strrchr]
add esp, 8
test eax, eax
je 0x4066d8
mov byte [eax], 0
push esi
lea edx, [esp + 0x244]
push edx
push str._sGameStarted_s.wav
mov eax, edx
push 0x104
push eax
mov byte [esp + 0x358], 0
call dword [sym.imp.MSVCR80.DLL__snprintf]
add esp, 0x14
push 0x20003
push 0
lea ecx, [esp + 0x248]
push ecx
mov byte [esp + 0x350], 0
call dword [sym.imp.WINMM.DLL_PlaySoundA]
mov edi, dword [esp + 0x20]
mov ecx, dword [ebx + 0x30]
lea eax, [edi + 4]
push eax
call fcn.00409310
jmp case.default.0x406a0e
mov edx, dword [ebx + 0x30]
mov edi, dword [esp + 0x20]
lea eax, [edi + 4]
mov byte [edx + 0x18], 1
mov ecx, dword [ebx + 0x30]
push eax
call fcn.00409310
jmp case.default.0x406a0e
mov esi, dword [ebx + 0xc0]
cmp esi, dword [ebx + 0xbc]
jae 0x406773
lea edi, [ebx + 0x88]
mov ecx, dword [ebx + 0x30]
push edi
call fcn.00409310
inc esi
cmp esi, dword [ebx + 0xbc]
jb 0x406761
mov edi, dword [esp + 0x20]
mov ecx, dword [ebx + 0x30]
mov dword [ebx + 0xc0], ebp
mov byte [ebx + 0xb0], 1
mov eax, dword [0x45c5c0]
mov dword [ebx + 0xc8], eax
lea eax, [edi + 4]
push eax
call fcn.00409310
jmp case.default.0x406a0e
mov esi, dword [ebx + 0xc0]
cmp esi, dword [ebx + 0xbc]
jae 0x4067c6
lea edi, [ebx + 0x88]
mov ecx, dword [ebx + 0x30]
push edi
call fcn.00409310
inc esi
cmp esi, dword [ebx + 0xbc]
jb 0x4067b4
mov ecx, dword [ebx + 0xbc]
mov edi, dword [esp + 0x20]
lea eax, [edi + 4]
mov dword [ebx + 0xc0], ecx
mov ecx, dword [ebx + 0x30]
push eax
call fcn.00409310
jmp case.default.0x406a0e
mov ecx, dword [edi + 8]
test ecx, ecx
je case.0x40640f.5
mov eax, dword [edi + 0xc]
sub eax, ecx
cmp eax, 5
jb case.0x40640f.5
cmp eax, 4
ja 0x40680b
call dword [sym.imp.MSVCR80.DLL__invalid_parameter_noinfo]
mov eax, dword [edi + 8]
mov dl, byte [eax + 4]
test eax, eax
jne 0x406819
xor ecx, ecx
jmp 0x40681e
mov ecx, dword [edi + 0xc]
sub ecx, eax
movzx eax, dl
lea esi, [eax + eax*4 + 5]
cmp ecx, esi
jne case.0x40640f.5
test dl, dl
je case.0x40640f.5
lea esi, [ebx + 0x78]
mov dword [esp + 0x18], 5
mov dword [esp + 0x24], eax
mov edi, dword [esi + 4]
mov byte [esp + 0x17], 0
cmp edi, dword [esi + 8]
jbe 0x406857
call dword [sym.imp.MSVCR80.DLL__invalid_parameter_noinfo]
mov ebp, edi
lea esp, [esp]
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
jbe 0x40686e
call dword [sym.imp.MSVCR80.DLL__invalid_parameter_noinfo]
test esi, esi
jne 0x406878
call dword [sym.imp.MSVCR80.DLL__invalid_parameter_noinfo]
cmp ebp, edi
je 0x4068d3
test esi, esi
jne 0x406886
call dword [sym.imp.MSVCR80.DLL__invalid_parameter_noinfo]
cmp ebp, dword [esi + 8]
jb 0x406891
call dword [sym.imp.MSVCR80.DLL__invalid_parameter_noinfo]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4068a7
mov eax, dword [eax + 0xc]
sub eax, ecx
cmp dword [esp + 0x18], eax
jb 0x4068ad
call dword [sym.imp.MSVCR80.DLL__invalid_parameter_noinfo]
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 8]
mov cl, byte [ebp]
mov edx, dword [esp + 0x18]
cmp cl, byte [edx + eax]
jne 0x4068c5
mov byte [esp + 0x17], 1
cmp ebp, dword [esi + 8]
jb 0x4068d0
call dword [sym.imp.MSVCR80.DLL__invalid_parameter_noinfo]
inc ebp
jmp 0x406860
cmp byte [esp + 0x17], 0
jne 0x406909
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4068f0
mov eax, dword [eax + 0xc]
sub eax, ecx
cmp dword [esp + 0x18], eax
jb 0x4068f6
call dword [sym.imp.MSVCR80.DLL__invalid_parameter_noinfo]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 8]
add ecx, dword [esp + 0x18]
push ecx
mov ecx, esi
call fcn.004039f0
add dword [esp + 0x18], 5
dec dword [esp + 0x24]
jne 0x406844
mov edi, dword [esp + 0x20]
mov ecx, dword [ebx + 0x30]
lea eax, [edi + 4]
push eax
call fcn.00409310
jmp case.default.0x406a0e
mov ecx, dword [edi + 8]
test ecx, ecx
je case.0x40640f.5
mov eax, dword [edi + 0xc]
sub eax, ecx
cmp eax, 9
jne case.0x40640f.5
mov esi, dword [ebx + 0x7c]
cmp esi, dword [ebx + 0x80]
lea edi, [ebx + 0x78]
jbe 0x40695a
call dword [sym.imp.MSVCR80.DLL__invalid_parameter_noinfo]
mov ebp, edi
lea esp, [esp]
mov eax, dword [edi + 8]
mov dword [esp + 0x24], eax
cmp dword [edi + 4], eax
jbe 0x406972
call dword [sym.imp.MSVCR80.DLL__invalid_parameter_noinfo]
test ebp, ebp
je 0x40697a
cmp ebp, edi
je 0x406980
call dword [sym.imp.MSVCR80.DLL__invalid_parameter_noinfo]
cmp esi, dword [esp + 0x24]
je case.0x40640f.5
test ebp, ebp
jne 0x406994
call dword [sym.imp.MSVCR80.DLL__invalid_parameter_noinfo]
cmp esi, dword [ebp + 8]
jb 0x40699f
call dword [sym.imp.MSVCR80.DLL__invalid_parameter_noinfo]
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x4069b4
mov eax, dword [edx + 0xc]
sub eax, ecx
cmp eax, 4
ja 0x4069be
call dword [sym.imp.MSVCR80.DLL__invalid_parameter_noinfo]
mov edx, dword [esp + 0x20]
mov edx, dword [edx + 8]
mov al, byte [esi]
cmp al, byte [edx + 4]
jne 0x4069e9
mov eax, dword [edi + 8]
lea ecx, [esi + 1]
sub eax, ecx
test eax, eax
jle 0x4069e1
push eax
push ecx
push eax
push esi
call dword [sym.imp.MSVCR80.DLL_memmove_s]
add esp, 0x10
dec dword [edi + 8]
jmp 0x406960
cmp esi, dword [ebp + 8]
jb 0x4069f4
call dword [sym.imp.MSVCR80.DLL__invalid_parameter_noinfo]
inc esi
jmp 0x406960
cmp al, 0xf8
jne case.default.0x406a0e
mov eax, dword [edi]
dec eax
cmp eax, 8
ja case.default.0x406a0e
jmp dword [eax*4 + 0x4075ec]
mov ecx, dword [edi + 8]
lea esi, [edi + 4]
cmp ecx, ebp
je case.default.0x406a0e
mov eax, dword [esi + 8]
sub eax, ecx
cmp eax, 0xc
jne case.default.0x406a0e
push 4
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call fcn.00401f90
call fcn.00403d10
add esp, 0x14
push eax
call dword [sym.imp.WS2_32.DLL_htons]
push 7
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
mov word [ebx + 0xb6], ax
call fcn.00401f90
call fcn.00403e90
add esp, 0x14
push 0xb
mov ecx, esi
mov dword [ebx + 0xb8], eax
call fcn.00401150
movzx eax, byte [eax]
mov dword [ebx + 0xbc], eax
mov ecx, dword [0x45c5c4]
inc eax
cmp byte [ecx + 0x898], 0
je 0x406b17
mov edx, eax
shl edx, 4
sub edx, eax
add edx, edx
add edx, edx
push edx
lea eax, [esp + 0x180]
push eax
call fcn.004010a0
push eax
lea ecx, [esp + 0x8c]
push 0x450ed8
push ecx
mov dword [esp + 0x364], 2
call dword [sym.imp.MSVCP80.DLL_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
sub esp, 8
mov edx, esp
mov dword [esp + 0x38], esp
push str.___.
push eax
push edx
mov byte [esp + 0x378], 3
call dword [sym.imp.MSVCP80.DLL_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0xc
mov ecx, ebx
call fcn.004061d0
lea ecx, [esp + 0x80]
mov byte [esp + 0x350], 2
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 + 0x17c]
jmp 0x406b93
mov ecx, eax
shl ecx, 4
sub ecx, eax
add ecx, ecx
add ecx, ecx
push ecx
lea edx, [esp + 0x1f0]
push edx
call fcn.004010a0
push eax
lea eax, [esp + 0xe0]
push 0x450e88
push eax
mov dword [esp + 0x364], 4
call dword [sym.imp.MSVCP80.DLL_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
sub esp, 8
mov ecx, esp
mov dword [esp + 0x38], esp
push str._seconds_.
push eax
push ecx
mov byte [esp + 0x378], 5
call dword [sym.imp.MSVCP80.DLL_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0xc
mov ecx, ebx
call fcn.004061d0
lea ecx, [esp + 0xd4]
mov byte [esp + 0x350], 4
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 + 0x1ec]
mov dword [esp + 0x350], 0xffffffff
call dword [sym.imp.MSVCP80.DLL_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [ebx + 0x38], 0
je case.default.0x406a0e
cmp dword [edi], 5
jne case.default.0x406a0e
mov byte [ebx + 0xb3], 1
mov eax, dword [0x45c5c4]
mov dl, 1
add eax, 0xc
xchg byte [eax], dl
mov edx, dword [0x45c5c4]
or cl, 0xff
add edx, 9
xchg byte [edx], cl
mov ecx, dword [0x45c5c4]
or al, 0xff
add ecx, 0xb
xchg byte [ecx], al
mov eax, dword [0x45c5c4]
or dl, 0xff
add eax, 0xd
xchg byte [eax], dl
mov ecx, dword [ebx + 0x38]
call fcn.0040a010
mov ecx, dword [0x45c5c4]
xor al, al
mov byte [esp + 0x17], 0
cmp byte [ecx + 8], al
je 0x406c19
mov edx, dword [ebx + 0x38]
cmp byte [edx + 0x78], al
je 0x406c19
mov byte [esp + 0x17], 1
cmp byte [ecx + 0xa], 0
je 0x406c2d
mov edx, dword [ebx + 0x38]
cmp byte [edx + 0xc4], 0
je 0x406c2d
mov al, 1
cmp byte [ecx + 0x898], 0
je 0x406dee
test al, al
je 0x406c64
push 0x450e58
lea ecx, [esp + 0xbc]
call dword [sym.imp.MSVCP80.DLL_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov esi, eax
or dword [esp + 0x10], 1
mov dword [esp + 0x350], 6
jmp 0x406c88
push 0x450e38
lea ecx, [esp + 0xa0]
call dword [sym.imp.MSVCP80.DLL_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov esi, eax
or dword [esp + 0x10], 2
mov dword [esp + 0x350], 7
cmp byte [esp + 0x17], 0
je 0x406cb4
push 0x450e1c
lea ecx, [esp + 0x228]
call dword [sym.imp.MSVCP80.DLL_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
or dword [esp + 0x10], 4
mov ebp, 8
mov dword [esp + 0x350], ebp
jmp 0x406cda
push 0x450dfc
lea ecx, [esp + 0x148]
call dword [sym.imp.MSVCP80.DLL_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ebp, 8
or dword [esp + 0x10], ebp
mov dword [esp + 0x350], 9
push eax
lea eax, [esp + 0x1b8]
push str._:_
push eax
call dword [sym.imp.MSVCP80.DLL_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 0x450db8
push eax
lea ecx, [esp + 0x120]
push ecx
mov dword [esp + 0x368], 0xa
call dword [sym.imp.MSVCP80.DLL_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
push ecx
mov edx, esp
mov dword [esp + 0x38], esp
push esi
push eax
push edx
mov byte [esp + 0x378], 0xb
call dword [sym.imp.MSVCP80.DLL_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 0xc
mov ecx, ebx
call fcn.004061d0
lea ecx, [esp + 0x10c]
mov byte [esp + 0x350], 0xa
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 + 0x1b4]
mov byte [esp + 0x350], 9
call dword [sym.imp.MSVCP80.DLL_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test byte [esp + 0x10], 8
mov dword [esp + 0x350], ebp
je 0x406d79
and dword [esp + 0x10], 0xfffffff7
lea ecx, [esp + 0x144]
call dword [sym.imp.MSVCP80.DLL_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test byte [esp + 0x10], 4
mov dword [esp + 0x350], 7
je 0x406d9d
and dword [esp + 0x10], 0xfffffffb
lea ecx, [esp + 0x224]
call dword [sym.imp.MSVCP80.DLL_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test byte [esp + 0x10], 2
mov dword [esp + 0x350], 6
je 0x406dc1
and dword [esp + 0x10], 0xfffffffd
lea ecx, [esp + 0x9c]
call dword [sym.imp.MSVCP80.DLL_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test byte [esp + 0x10], 1
mov dword [esp + 0x350], 0xffffffff
je case.default.0x406a0e
and dword [esp + 0x10], 0xfffffffe
lea ecx, [esp + 0xb8]
call dword [sym.imp.MSVCP80.DLL_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp case.default.0x406a0e
test al, al
je 0x406e18
push 0x450da8
lea ecx, [esp + 0x20c]
call dword [sym.imp.MSVCP80.DLL_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov esi, eax
or dword [esp + 0x10], 0x10
mov dword [esp + 0x350], 0xc
jmp 0x406e3c
push 0x450d98
lea ecx, [esp + 0x1d4]
call dword [sym.imp.MSVCP80.DLL_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov esi, eax
or dword [esp + 0x10], 0x20
mov dword [esp + 0x350], 0xd
cmp byte [esp + 0x17], 0
je 0x406e67
push 0x450da8
lea ecx, [esp + 0x19c]
call dword [sym.imp.MSVCP80.DLL_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
or dword [esp + 0x10], 0x40
mov dword [esp + 0x350], 0xe
jmp 0x406e8c
push 0x450d98
lea ecx, [esp + 0x164]
call dword [sym.imp.MSVCP80.DLL_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
or dword [esp + 0x10], 0x80
mov dword [esp + 0x350], 0xf
push eax
lea eax, [esp + 0x12c]
push str.Voice_chat_microphone
push eax
call dword [sym.imp.MSVCP80.DLL_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push str.__speaker
push eax
lea ecx, [esp + 0x104]
push ecx
mov dword [esp + 0x368], 0x10
call dword [sym.imp.MSVCP80.DLL_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
push ecx
mov edx, esp
mov dword [esp + 0x38], esp
push esi
push eax
push edx
mov byte [esp + 0x378], 0x11
call dword [sym.imp.MSVCP80.DLL_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 0xc
mov ecx, ebx
call fcn.004061d0
lea ecx, [esp + 0xf0]
mov byte [esp + 0x350], 0x10
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 + 0x128]
mov byte [esp + 0x350], 0xf
call dword [sym.imp.MSVCP80.DLL_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test byte [esp + 0x10], 0x80
mov dword [esp + 0x350], 0xe
je 0x406f32
and dword [esp + 0x10], 0xffffff7f
lea ecx, [esp + 0x160]
call dword [sym.imp.MSVCP80.DLL_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test byte [esp + 0x10], 0x40
mov dword [esp + 0x350], 0xd
je 0x406f56
and dword [esp + 0x10], 0xffffffbf
lea ecx, [esp + 0x198]
call dword [sym.imp.MSVCP80.DLL_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test byte [esp + 0x10], 0x20
mov dword [esp + 0x350], 0xc
je 0x406f7a
and dword [esp + 0x10], 0xffffffdf
lea ecx, [esp + 0x1d0]
call dword [sym.imp.MSVCP80.DLL_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test byte [esp + 0x10], 0x10
mov dword [esp + 0x350], 0xffffffff
je case.default.0x406a0e
and dword [esp + 0x10], 0xffffffef
lea ecx, [esp + 0x208]
call dword [sym.imp.MSVCP80.DLL_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp case.default.0x406a0e
mov edx, dword [edi + 8]
lea eax, [edi + 4]
cmp edx, ebp
je case.default.0x406a0e
mov ecx, dword [eax + 8]
sub ecx, edx
cmp ecx, 8
jne case.default.0x406a0e
push 4
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00401f90
call fcn.00403e90
mov edx, dword [ebx + 0x74]
mov ecx, dword [ebx + 0x9c]
sub ecx, edx
add esp, 0x14
cmp eax, ecx
jbe 0x407061
sub eax, ecx
mov dword [esp + 0x18], eax
cmp eax, edx
jbe 0x406ffb
mov eax, edx
mov dword [esp + 0x18], edx
xor ebp, ebp
cmp eax, ebp
jbe 0x407063
lea ecx, [ebx + 0x64]
call fcn.004016d0
mov edi, dword [eax]
cmp edi, ebp
je 0x407031
mov eax, dword [edi + 8]
cmp eax, ebp
je 0x40701f
push eax
call sub.MSVCR80.DLL_void___cdecl_operator_delete_void__
add esp, 4
push edi
mov dword [edi + 8], ebp
mov dword [edi + 0xc], ebp
mov dword [edi + 0x10], ebp
call sub.MSVCR80.DLL_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebx + 0x74]
cmp eax, ebp
je 0x407055
mov edx, dword [ebx + 0x6c]
inc dword [ebx + 0x70]
add edx, edx
add edx, edx
cmp edx, dword [ebx + 0x70]
ja 0x40704a
mov dword [ebx + 0x70], ebp
dec eax
mov dword [ebx + 0x74], eax
cmp eax, ebp
jne 0x407055
mov dword [ebx + 0x70], ebp
dec dword [esp + 0x18]
jne 0x407001
mov edi, dword [esp + 0x20]
jmp 0x407063
xor ebp, ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x350], 0x12
cmp dword [ebx + 0x74], ebp
je 0x4070dc
mov eax, dword [ebx + 0x74]
cmp eax, dword [ebx + 0x4c]
jbe 0x4070a1
lea ecx, [ebx + 0x64]
call fcn.004016d0
mov eax, dword [eax]
mov ecx, dword [ebx + 0x34]
add eax, 4
push eax
call fcn.00409310
lea ecx, [ebx + 0x64]
call fcn.004016d0
push eax
lea ecx, [esp + 0x40]
call fcn.00402fc0
mov eax, dword [ebx + 0x74]
cmp eax, ebp
je 0x4070d7
mov edx, dword [ebx + 0x6c]
inc dword [ebx + 0x70]
add edx, edx
add edx, edx
cmp edx, dword [ebx + 0x70]
ja 0x4070cc
mov dword [ebx + 0x70], ebp
dec eax
mov dword [ebx + 0x74], eax
cmp eax, ebp
jne 0x4070d7
mov dword [ebx + 0x70], ebp
cmp dword [ebx + 0x74], ebp
jne 0x407083
lea eax, [esp + 0x3c]
lea ecx, [ebx + 0x64]
push eax
call fcn.00405760
lea ecx, [esp + 0x3c]
mov byte [ebx + 0xb1], 1
mov dword [esp + 0x350], 0xffffffff
call fcn.00401720
jmp case.default.0x406a0e
mov edx, dword [edi + 8]
lea eax, [edi + 4]
cmp edx, ebp
je case.default.0x406a0e
mov ecx, dword [eax + 8]
sub ecx, edx
cmp ecx, 8
jne case.default.0x406a0e
push 4
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00401f90
call fcn.00403e90
mov edx, dword [ebx + 0x74]
mov ecx, dword [ebx + 0x9c]
sub ecx, edx
add esp, 0x14
cmp eax, ecx
jbe case.default.0x406a0e
sub eax, ecx
mov dword [esp + 0x18], eax
cmp eax, edx
jbe 0x407161
mov dword [esp + 0x18], edx
mov eax, edx
test eax, eax
je case.default.0x406a0e
xor ebp, ebp
jmp 0x407170
lea ecx, [ebx + 0x64]
call fcn.004016d0
mov edi, dword [eax]
cmp edi, ebp
je 0x4071a0
mov eax, dword [edi + 8]
cmp eax, ebp
je 0x40718e
push eax
call sub.MSVCR80.DLL_void___cdecl_operator_delete_void__
add esp, 4
push edi
mov dword [edi + 8], ebp
mov dword [edi + 0xc], ebp
mov dword [edi + 0x10], ebp
call sub.MSVCR80.DLL_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebx + 0x74]
cmp eax, ebp
je 0x4071c4
mov edx, dword [ebx + 0x6c]
inc dword [ebx + 0x70]
add edx, edx
add edx, edx
cmp edx, dword [ebx + 0x70]
ja 0x4071b9
mov dword [ebx + 0x70], ebp
dec eax
mov dword [ebx + 0x74], eax
cmp eax, ebp
jne 0x4071c4
mov dword [ebx + 0x70], ebp
dec dword [esp + 0x18]
jne 0x407170
jmp 0x40753a
mov ecx, dword [edi + 8]
lea edx, [edi + 4]
cmp ecx, ebp
je case.default.0x406a0e
mov eax, dword [edx + 8]
sub eax, ecx
cmp eax, 8
jne case.default.0x406a0e
push 4
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00401f90
call fcn.00403e90
add esp, 0x14
sub esp, 0x1c
mov dword [esp + 0x38], esp
cmp eax, 2
jne 0x40722e
mov eax, dword [0x45c5c4]
cmp byte [eax + 0x898], 0
mov ecx, esp
je 0x407227
push 0x450d18
jmp 0x40724b
push 0x450cc8
jmp 0x40724b
mov ecx, dword [0x45c5c4]
cmp byte [ecx + 0x898], 0
mov ecx, esp
je 0x407246
push 0x450c88
jmp 0x40724b
push 0x450c54
call dword [sym.imp.MSVCP80.DLL_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, ebx
call fcn.004061d0
mov ecx, dword [ebx + 0x30]
call fcn.00408d50
mov ecx, dword [ebx + 0x30]
call fcn.00408e50
jmp case.default.0x406a0e
mov ecx, dword [ebx + 0x38]
cmp ecx, ebp
je case.default.0x406a0e
push edi
call fcn.0040ab20
test al, al
jne 0x407562
jmp case.default.0x406a0e
mov ecx, dword [edi + 8]
cmp ecx, ebp
je case.default.0x406a0e
mov eax, dword [edi + 0xc]
sub eax, ecx
cmp eax, 4
jne case.default.0x406a0e
mov byte [ebx + 0xb2], 1
jmp case.default.0x406a0e
cmp byte [ebx + 0xb3], 0
je case.default.0x406a0e
mov edx, dword [0x45c5c4]
cmp byte [edx + 0x899], 0
jne case.default.0x406a0e
mov eax, dword [edi + 8]
lea ecx, [edi + 4]
cmp eax, ebp
je case.default.0x406a0e
mov esi, dword [ecx + 8]
sub esi, eax
lea eax, [esi - 0xf]
cmp eax, 0x44
ja case.default.0x406a0e
lea edx, [esi - 4]
push edx
push 4
call fcn.00401150
push eax
push 0x45c570
call dword [sym.imp.MSVCR80.DLL_strncpy]
add esp, 0xc
mov byte [esi + 0x45c56c], 0
xor eax, eax
mov edx, dword [0x45c5c4]
xor cl, cl
lea edx, [eax + edx + 0x1a]
xchg byte [edx], cl
add eax, 0xb6
cmp eax, 0x888
jl 0x407312
mov ecx, dword [0x45c5c4]
mov al, 1
add ecx, 0x899
xchg byte [ecx], al
jmp case.default.0x406a0e
cmp byte [ebx + 0xb3], 0
je case.default.0x406a0e
mov edx, dword [0x45c5c4]
cmp byte [edx + 0x899], 0
je case.default.0x406a0e
mov ecx, dword [edi + 8]
lea esi, [edi + 4]
cmp ecx, ebp
je case.default.0x406a0e
mov eax, dword [esi + 8]
sub eax, ecx
add eax, 0xffffffdd
cmp eax, 0xd
ja case.default.0x406a0e
push 4
mov ecx, esi
call fcn.00401150
mov eax, dword [eax]
push 8
mov ecx, esi
mov dword [esp + 0x20], eax
call fcn.00401150
mov ecx, dword [eax]
mov dword [esp + 0x38], ecx
push 0xc
mov ecx, esi
call fcn.00401150
mov edx, dword [eax]
push 0x10
mov ecx, esi
mov dword [esp + 0x38], edx
call fcn.00401150
mov eax, dword [eax]
push 0x14
mov ecx, esi
mov dword [esp + 0x34], eax
call fcn.00401150
mov edi, dword [eax]
push 0x17
mov ecx, esi
and edi, 0xffffff
call fcn.00401150
mov ebp, dword [eax]
push 0x1a
mov ecx, esi
and ebp, 0xffffff
call fcn.00401150
mov ebx, dword [eax]
push 0x1d
mov ecx, esi
and ebx, 0xffffff
call fcn.00401150
mov cl, byte [eax]
mov byte [esp + 0x17], cl
push 0x1e
mov ecx, esi
call fcn.00401150
mov dl, byte [eax]
push 0x1f
mov ecx, esi
mov byte [esp + 0x2c], dl
call fcn.00401150
mov al, byte [eax]
push 0xf
push 0x20
mov ecx, esi
mov byte [esp + 0x31], al
mov byte [esp + 0x32], 0
call fcn.00401150
push eax
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.MSVCR80.DLL_strncpy]
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 4]
add esp, 0xc
push 0xffffffffffffffff
push eax
mov byte [esp + 0x67], 0
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov ecx, dword [0x45c5c4]
xor esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x50]
push edx
lea ecx, [eax + ecx + 0x1a]
push ecx
call dword [sym.imp.MSVCR80.DLL__stricmp]
add esp, 8
test eax, eax
je 0x4074a6
mov ecx, dword [0x45c5c4]
mov eax, dword [esp + 0x18]
cmp byte [eax + ecx + 0x1a], 0
jne 0x407490
lea esi, [eax + ecx + 0x10]
inc dword [esp + 0x24]
add eax, 0xb6
mov dword [esp + 0x18], eax
cmp eax, 0x888
jl 0x407460
jmp 0x4074ba
mov esi, dword [esp + 0x24]
mov edx, dword [0x45c5c4]
imul esi, esi, 0xb6
lea esi, [esi + edx + 0x10]
test esi, esi
je 0x407528
lea eax, [esp + 0x50]
push eax
push ebx
mov ebx, dword [sym.imp.MSVCR80.DLL__snprintf]
push str.c11_06X_s
push 0x19
push esi
call ebx
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
push 0x45c570
lea edx, [esi + 0x1a]
push 0x7f
push edx
call ebx
lea eax, [esp + 0x58]
push eax
push ebp
push str.c11_06X_s
lea ecx, [esi + 0x9a]
push 0xc
push ecx
call ebx
movzx edx, byte [esp + 0x5b]
add esp, 0x44
push edx
push edi
push str.c11_06X_d__
push 0xe
add esi, 0xa7
push esi
call ebx
add esp, 0x14
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
mov eax, dword [edi + 8]
test eax, eax
je 0x40754e
push eax
call sub.MSVCR80.DLL_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
push edi
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
call sub.MSVCR80.DLL_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebx + 0x60], 0
jne 0x406387
mov ecx, dword [esp + 0x348]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x344
ret