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

Disassembly:
push 0xffffffffffffffff
push 0x44215e
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 0x40794c
mov edi, dword [ebx + 0x5c]
mov eax, dword [ebx + 0x60]
add eax, edi
cmp edi, eax
jbe 0x406769
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 0x406783
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebx + 0x58]
cmp eax, esi
ja 0x40678c
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 0x4067bf
mov edx, dword [ebx + 0x58]
inc dword [ebx + 0x5c]
add edx, edx
add edx, edx
cmp edx, dword [ebx + 0x5c]
ja 0x4067b4
mov dword [ebx + 0x5c], ebp
dec eax
mov dword [ebx + 0x60], eax
cmp eax, ebp
jne 0x4067bf
mov dword [ebx + 0x5c], ebp
mov al, byte [edi + 0x14]
cmp al, 0xf7
jne 0x406dce
mov eax, dword [edi]
add eax, 0xfffffffc
cmp eax, 0x44
ja case.0x4067df.5
movzx eax, byte [eax + 0x407984]
jmp dword [eax*4 + 0x407968]
mov ecx, dword [0x45356c]
cmp byte [ecx + 0x89a], 0
mov ecx, dword [edi + 8]
lea esi, [edi + 4]
je 0x406931
test ecx, ecx
je case.0x4067df.5
mov eax, dword [esi + 8]
sub eax, ecx
cmp eax, 0x1e
jb case.0x4067df.5
push 4
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call fcn.00402360
call fcn.004040e0
mov ecx, dword [esi + 4]
add esp, 0x14
movzx edi, ax
test ecx, ecx
jne 0x40683c
xor eax, eax
jmp 0x406841
mov eax, dword [esi + 8]
sub eax, ecx
sub eax, edi
cmp eax, 0x17
jb case.0x4067df.5
lea ebp, [edi + 0xf]
push ebp
mov ecx, esi
call fcn.00401280
cmp byte [eax], 2
jb case.0x4067df.5
lea edx, [edi + 6]
push edx
mov ecx, esi
mov byte [ebx + 0xb3], 1
call fcn.00401280
mov al, byte [eax]
lea ecx, [edi + 0x10]
push ecx
mov ecx, esi
mov byte [ebx + 0xb4], al
call fcn.00401280
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.00402360
call fcn.004040e0
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.00402360
call fcn.00404260
add esp, 0x14
push ebp
mov ecx, esi
mov dword [ebx + 0xb8], eax
call fcn.00401280
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, dword [0x45356c]
mov byte [ecx + 0xc], 1
mov edx, dword [0x45356c]
mov byte [edx + 9], 0xff
mov eax, dword [0x45356c]
mov byte [eax + 0xb], 0xff
mov ecx, dword [0x45356c]
mov byte [ecx + 0xd], 0xff
mov ecx, dword [ebx + 0x38]
call fcn.0040a3d0
mov edi, dword [esp + 0x20]
mov ecx, dword [ebx + 0x30]
lea eax, [edi + 4]
push eax
call fcn.00409600
jmp case.default.0x406de2
test ecx, ecx
je 0x406985
mov eax, dword [esi + 8]
sub eax, ecx
cmp eax, 6
jb 0x406985
push 4
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call fcn.00402360
call fcn.004040e0
movzx edx, ax
mov eax, dword [esi + 4]
add esp, 0x14
test eax, eax
jne 0x406966
xor ecx, ecx
jmp 0x40696b
mov ecx, dword [esi + 8]
sub ecx, eax
lea eax, [edx + 7]
cmp ecx, eax
jb 0x406985
add edx, 6
push edx
mov ecx, esi
call fcn.00401280
mov cl, byte [eax]
mov byte [ebx + 0xb4], cl
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x4069f5
cmp byte [ecx + 0x78], 0
mov eax, 4
je 0x40699c
mov eax, 6
cmp byte [ecx + 0xc4], 0
je 0x4069a8
or eax, 1
push eax
lea edx, [esp + 0x74]
push 2
push edx
call fcn.004060c0
add esp, 0xc
mov ecx, dword [ebx + 0x34]
push eax
mov dword [esp + 0x354], 0
call fcn.00409600
mov dword [esp + 0x350], 0xffffffff
lea ecx, [esp + 0x70]
call fcn.004018d0
mov edi, dword [esp + 0x20]
mov ecx, dword [ebx + 0x30]
lea eax, [edi + 4]
push eax
call fcn.00409600
jmp case.default.0x406de2
lea eax, [esp + 0x60]
push 1
push eax
call fcn.00405f40
add esp, 8
mov ecx, dword [ebx + 0x34]
push eax
mov dword [esp + 0x354], 1
call fcn.00409600
mov dword [esp + 0x350], 0xffffffff
lea ecx, [esp + 0x60]
jmp 0x4069db
cmp word [ebx + 0xb6], bp
je 0x406b0a
mov edi, 0x445bb1
mov byte [ebx + 0xae], 1
cmp dword [ebx], ebp
jne 0x406a5c
push str.Warcraft_III
push str.Warcraft_III
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebx], eax
test eax, eax
je 0x406a82
mov ecx, dword [ebx]
push ecx
mov esi, 5
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x406a78
mov esi, 9
mov edi, 0x445ba0
mov edx, dword [ebx]
push esi
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
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 0x406ab1
mov byte [eax], 0
push edi
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.00409600
jmp case.default.0x406de2
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.00409600
jmp case.default.0x406de2
mov esi, dword [ebx + 0xc0]
cmp esi, dword [ebx + 0xbc]
jae 0x406b52
lea edi, [ebx + 0x88]
lea ebx, [ebx]
mov ecx, dword [ebx + 0x30]
push edi
call fcn.00409600
inc esi
cmp esi, dword [ebx + 0xbc]
jb 0x406b40
mov edi, dword [esp + 0x20]
mov ecx, dword [ebx + 0x30]
mov dword [ebx + 0xc0], ebp
mov byte [ebx + 0xb0], 1
mov eax, dword [0x453568]
mov dword [ebx + 0xc8], eax
lea eax, [edi + 4]
push eax
call fcn.00409600
jmp case.default.0x406de2
mov esi, dword [ebx + 0xc0]
cmp esi, dword [ebx + 0xbc]
jae 0x406ba5
lea edi, [ebx + 0x88]
mov ecx, dword [ebx + 0x30]
push edi
call fcn.00409600
inc esi
cmp esi, dword [ebx + 0xbc]
jb 0x406b93
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.00409600
jmp case.default.0x406de2
mov ecx, dword [edi + 8]
test ecx, ecx
je case.0x4067df.5
mov eax, dword [edi + 0xc]
sub eax, ecx
cmp eax, 5
jb case.0x4067df.5
cmp eax, 4
ja 0x406bea
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 8]
mov dl, byte [eax + 4]
test eax, eax
jne 0x406bf8
xor ecx, ecx
jmp 0x406bfd
mov ecx, dword [edi + 0xc]
sub ecx, eax
movzx eax, dl
lea esi, [eax + eax*4 + 5]
cmp ecx, esi
jne case.0x4067df.5
test dl, dl
je case.0x4067df.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 0x406c36
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, edi
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
jbe 0x406c46
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test esi, esi
jne 0x406c50
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, edi
je 0x406cab
test esi, esi
jne 0x406c5e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, dword [esi + 8]
jb 0x406c69
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x406c7f
mov eax, dword [eax + 0xc]
sub eax, ecx
cmp dword [esp + 0x18], eax
jb 0x406c85
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 0x406c9d
mov byte [esp + 0x17], 1
cmp ebp, dword [esi + 8]
jb 0x406ca8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
inc ebp
jmp 0x406c38
cmp byte [esp + 0x17], 0
jne 0x406ce1
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x406cc8
mov eax, dword [eax + 0xc]
sub eax, ecx
cmp dword [esp + 0x18], eax
jb 0x406cce
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.00403dc0
add dword [esp + 0x18], 5
dec dword [esp + 0x24]
jne 0x406c23
mov edi, dword [esp + 0x20]
mov ecx, dword [ebx + 0x30]
lea eax, [edi + 4]
push eax
call fcn.00409600
jmp case.default.0x406de2
mov ecx, dword [edi + 8]
test ecx, ecx
je case.0x4067df.5
mov eax, dword [edi + 0xc]
sub eax, ecx
cmp eax, 9
jne case.0x4067df.5
mov esi, dword [ebx + 0x7c]
cmp esi, dword [ebx + 0x80]
lea edi, [ebx + 0x78]
jbe 0x406d32
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, edi
mov eax, dword [edi + 8]
mov dword [esp + 0x24], eax
cmp dword [edi + 4], eax
jbe 0x406d46
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test ebp, ebp
je 0x406d4e
cmp ebp, edi
je 0x406d54
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [esp + 0x24]
je case.0x4067df.5
test ebp, ebp
jne 0x406d68
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [ebp + 8]
jb 0x406d73
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x406d88
mov eax, dword [edx + 0xc]
sub eax, ecx
cmp eax, 4
ja 0x406d92
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 0x406dbd
mov eax, dword [edi + 8]
lea ecx, [esi + 1]
sub eax, ecx
test eax, eax
jle 0x406db5
push eax
push ecx
push eax
push esi
call dword [sym.imp.MSVCR80.dll_memmove_s]
add esp, 0x10
dec dword [edi + 8]
jmp 0x406d34
cmp esi, dword [ebp + 8]
jb 0x406dc8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
inc esi
jmp 0x406d34
cmp al, 0xf8
jne case.default.0x406de2
mov eax, dword [edi]
dec eax
cmp eax, 8
ja case.default.0x406de2
jmp dword [eax*4 + 0x4079cc]
mov ecx, dword [edi + 8]
lea esi, [edi + 4]
cmp ecx, ebp
je case.default.0x406de2
mov eax, dword [esi + 8]
sub eax, ecx
cmp eax, 0xc
jne case.default.0x406de2
push 4
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call fcn.00402360
call fcn.004040e0
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.00402360
call fcn.00404260
add esp, 0x14
push 0xb
mov ecx, esi
mov dword [ebx + 0xb8], eax
call fcn.00401280
movzx eax, byte [eax]
mov dword [ebx + 0xbc], eax
mov ecx, dword [0x45356c]
inc eax
cmp byte [ecx + 0x898], 0
je 0x406eef
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.004011d0
push eax
lea ecx, [esp + 0x8c]
push 0x445b58
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.004065a0
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 0x406f6b
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.004011d0
push eax
lea eax, [esp + 0xe0]
push 0x445b08
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.004065a0
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.0x406de2
cmp dword [edi], 5
jne case.default.0x406de2
mov byte [ebx + 0xb3], 1
mov eax, dword [0x45356c]
mov dl, 1
add eax, 0xc
xchg byte [eax], dl
mov edx, dword [0x45356c]
or cl, 0xff
add edx, 9
xchg byte [edx], cl
mov ecx, dword [0x45356c]
or al, 0xff
add ecx, 0xb
xchg byte [ecx], al
mov eax, dword [0x45356c]
or dl, 0xff
add eax, 0xd
xchg byte [eax], dl
mov ecx, dword [ebx + 0x38]
call fcn.0040a3d0
mov ecx, dword [0x45356c]
xor al, al
mov byte [esp + 0x17], 0
cmp byte [ecx + 8], al
je 0x406ff1
mov edx, dword [ebx + 0x38]
cmp byte [edx + 0x78], al
je 0x406ff1
mov byte [esp + 0x17], 1
cmp byte [ecx + 0xa], 0
je 0x407005
mov edx, dword [ebx + 0x38]
cmp byte [edx + 0xc4], 0
je 0x407005
mov al, 1
cmp byte [ecx + 0x898], 0
je 0x4071c6
test al, al
je 0x40703c
push 0x445ad8
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 0x407060
push 0x445ab8
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 0x40708c
push 0x445a9c
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 0x4070b2
push 0x445a7c
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 0x445a38
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.004065a0
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 0x407151
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 0x407175
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 0x407199
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.0x406de2
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.0x406de2
test al, al
je 0x4071f0
push 0x445a28
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 0x407214
push 0x445a18
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 0x40723f
push 0x445a28
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 0x407264
push 0x445a18
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.004065a0
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 0x40730a
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 0x40732e
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 0x407352
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.0x406de2
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.0x406de2
mov edx, dword [edi + 8]
lea eax, [edi + 4]
cmp edx, ebp
je case.default.0x406de2
mov ecx, dword [eax + 8]
sub ecx, edx
cmp ecx, 8
jne case.default.0x406de2
push 4
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00402360
call fcn.00404260
mov edx, dword [ebx + 0x74]
mov ecx, dword [ebx + 0x9c]
sub ecx, edx
add esp, 0x14
cmp eax, ecx
jbe 0x407440
sub eax, ecx
mov dword [esp + 0x18], eax
cmp eax, edx
jbe 0x4073d3
mov eax, edx
mov dword [esp + 0x18], edx
xor ebp, ebp
cmp eax, ebp
jbe 0x407442
lea esp, [esp]
lea ecx, [ebx + 0x64]
call fcn.00401930
mov edi, dword [eax]
cmp edi, ebp
je 0x407410
mov eax, dword [edi + 8]
cmp eax, ebp
je 0x4073fe
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 0x407434
mov edx, dword [ebx + 0x6c]
inc dword [ebx + 0x70]
add edx, edx
add edx, edx
cmp edx, dword [ebx + 0x70]
ja 0x407429
mov dword [ebx + 0x70], ebp
dec eax
mov dword [ebx + 0x74], eax
cmp eax, ebp
jne 0x407434
mov dword [ebx + 0x70], ebp
dec dword [esp + 0x18]
jne 0x4073e0
mov edi, dword [esp + 0x20]
jmp 0x407442
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 0x4074bb
mov eax, dword [ebx + 0x74]
cmp eax, dword [ebx + 0x4c]
jbe 0x407480
lea ecx, [ebx + 0x64]
call fcn.00401930
mov eax, dword [eax]
mov ecx, dword [ebx + 0x34]
add eax, 4
push eax
call fcn.00409600
lea ecx, [ebx + 0x64]
call fcn.00401930
push eax
lea ecx, [esp + 0x40]
call fcn.00403390
mov eax, dword [ebx + 0x74]
cmp eax, ebp
je 0x4074b6
mov edx, dword [ebx + 0x6c]
inc dword [ebx + 0x70]
add edx, edx
add edx, edx
cmp edx, dword [ebx + 0x70]
ja 0x4074ab
mov dword [ebx + 0x70], ebp
dec eax
mov dword [ebx + 0x74], eax
cmp eax, ebp
jne 0x4074b6
mov dword [ebx + 0x70], ebp
cmp dword [ebx + 0x74], ebp
jne 0x407462
lea eax, [esp + 0x3c]
lea ecx, [ebx + 0x64]
push eax
call fcn.00405b30
lea ecx, [esp + 0x3c]
mov byte [ebx + 0xb1], 1
mov dword [esp + 0x350], 0xffffffff
call fcn.004019b0
jmp case.default.0x406de2
mov edx, dword [edi + 8]
lea eax, [edi + 4]
cmp edx, ebp
je case.default.0x406de2
mov ecx, dword [eax + 8]
sub ecx, edx
cmp ecx, 8
jne case.default.0x406de2
push 4
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00402360
call fcn.00404260
mov edx, dword [ebx + 0x74]
mov ecx, dword [ebx + 0x9c]
sub ecx, edx
add esp, 0x14
cmp eax, ecx
jbe case.default.0x406de2
sub eax, ecx
mov dword [esp + 0x18], eax
cmp eax, edx
jbe 0x407540
mov dword [esp + 0x18], edx
mov eax, edx
test eax, eax
je case.default.0x406de2
xor ebp, ebp
lea ebx, [ebx]
lea ecx, [ebx + 0x64]
call fcn.00401930
mov edi, dword [eax]
cmp edi, ebp
je 0x407580
mov eax, dword [edi + 8]
cmp eax, ebp
je 0x40756e
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 0x4075a4
mov edx, dword [ebx + 0x6c]
inc dword [ebx + 0x70]
add edx, edx
add edx, edx
cmp edx, dword [ebx + 0x70]
ja 0x407599
mov dword [ebx + 0x70], ebp
dec eax
mov dword [ebx + 0x74], eax
cmp eax, ebp
jne 0x4075a4
mov dword [ebx + 0x70], ebp
dec dword [esp + 0x18]
jne 0x407550
jmp 0x40791a
mov ecx, dword [edi + 8]
lea edx, [edi + 4]
cmp ecx, ebp
je case.default.0x406de2
mov eax, dword [edx + 8]
sub eax, ecx
cmp eax, 8
jne case.default.0x406de2
push 4
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00402360
call fcn.00404260
add esp, 0x14
sub esp, 0x1c
mov dword [esp + 0x38], esp
cmp eax, 2
jne 0x40760e
mov eax, dword [0x45356c]
cmp byte [eax + 0x898], 0
mov ecx, esp
je 0x407607
push 0x445998
jmp 0x40762b
push 0x445948
jmp 0x40762b
mov ecx, dword [0x45356c]
cmp byte [ecx + 0x898], 0
mov ecx, esp
je 0x407626
push 0x445908
jmp 0x40762b
push 0x4458d0
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.004065a0
mov ecx, dword [ebx + 0x30]
call fcn.00409040
mov ecx, dword [ebx + 0x30]
call fcn.00409140
jmp case.default.0x406de2
mov ecx, dword [ebx + 0x38]
cmp ecx, ebp
je case.default.0x406de2
push edi
call fcn.0040aee0
test al, al
jne 0x407942
jmp case.default.0x406de2
mov ecx, dword [edi + 8]
cmp ecx, ebp
je case.default.0x406de2
mov eax, dword [edi + 0xc]
sub eax, ecx
cmp eax, 4
jne case.default.0x406de2
mov byte [ebx + 0xb2], 1
jmp case.default.0x406de2
cmp byte [ebx + 0xb3], 0
je case.default.0x406de2
mov edx, dword [0x45356c]
cmp byte [edx + 0x899], 0
jne case.default.0x406de2
mov eax, dword [edi + 8]
lea ecx, [edi + 4]
cmp eax, ebp
je case.default.0x406de2
mov esi, dword [ecx + 8]
sub esi, eax
lea eax, [esi - 0xf]
cmp eax, 0x44
ja case.default.0x406de2
lea edx, [esi - 4]
push edx
push 4
call fcn.00401280
push eax
push 0x453518
call dword [sym.imp.MSVCR80.dll_strncpy]
add esp, 0xc
mov byte [esi + 0x453514], 0
xor eax, eax
mov edx, dword [0x45356c]
xor cl, cl
lea edx, [eax + edx + 0x1a]
xchg byte [edx], cl
add eax, 0xb6
cmp eax, 0x888
jl 0x4076f2
mov ecx, dword [0x45356c]
mov al, 1
add ecx, 0x899
xchg byte [ecx], al
jmp case.default.0x406de2
cmp byte [ebx + 0xb3], 0
je case.default.0x406de2
mov edx, dword [0x45356c]
cmp byte [edx + 0x899], 0
je case.default.0x406de2
mov ecx, dword [edi + 8]
lea esi, [edi + 4]
cmp ecx, ebp
je case.default.0x406de2
mov eax, dword [esi + 8]
sub eax, ecx
add eax, 0xffffffdd
cmp eax, 0xd
ja case.default.0x406de2
push 4
mov ecx, esi
call fcn.00401280
mov eax, dword [eax]
push 8
mov ecx, esi
mov dword [esp + 0x20], eax
call fcn.00401280
mov ecx, dword [eax]
mov dword [esp + 0x38], ecx
push 0xc
mov ecx, esi
call fcn.00401280
mov edx, dword [eax]
push 0x10
mov ecx, esi
mov dword [esp + 0x38], edx
call fcn.00401280
mov eax, dword [eax]
push 0x14
mov ecx, esi
mov dword [esp + 0x34], eax
call fcn.00401280
mov edi, dword [eax]
push 0x17
mov ecx, esi
and edi, 0xffffff
call fcn.00401280
mov ebp, dword [eax]
push 0x1a
mov ecx, esi
and ebp, 0xffffff
call fcn.00401280
mov ebx, dword [eax]
push 0x1d
mov ecx, esi
and ebx, 0xffffff
call fcn.00401280
mov cl, byte [eax]
mov byte [esp + 0x17], cl
push 0x1e
mov ecx, esi
call fcn.00401280
mov dl, byte [eax]
push 0x1f
mov ecx, esi
mov byte [esp + 0x2c], dl
call fcn.00401280
mov al, byte [eax]
push 0xf
push 0x20
mov ecx, esi
mov byte [esp + 0x31], al
mov byte [esp + 0x32], 0
call fcn.00401280
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 [0x45356c]
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 0x407886
mov ecx, dword [0x45356c]
mov eax, dword [esp + 0x18]
cmp byte [eax + ecx + 0x1a], 0
jne 0x407870
lea esi, [eax + ecx + 0x10]
inc dword [esp + 0x24]
add eax, 0xb6
mov dword [esp + 0x18], eax
cmp eax, 0x888
jl 0x407840
jmp 0x40789a
mov esi, dword [esp + 0x24]
mov edx, dword [0x45356c]
imul esi, esi, 0xb6
lea esi, [esi + edx + 0x10]
test esi, esi
je 0x407908
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 0x453518
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 0x40792e
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 0x406757
mov ecx, dword [esp + 0x348]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x344
ret