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

Disassembly:
push 0xffffffffffffffff
push 0x44214e
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 0x407a0c
mov edi, dword [ebx + 0x5c]
mov eax, dword [ebx + 0x60]
add eax, edi
cmp edi, eax
jbe 0x406829
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 0x406843
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebx + 0x58]
cmp eax, esi
ja 0x40684c
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 0x40687f
mov edx, dword [ebx + 0x58]
inc dword [ebx + 0x5c]
add edx, edx
add edx, edx
cmp edx, dword [ebx + 0x5c]
ja 0x406874
mov dword [ebx + 0x5c], ebp
dec eax
mov dword [ebx + 0x60], eax
cmp eax, ebp
jne 0x40687f
mov dword [ebx + 0x5c], ebp
mov al, byte [edi + 0x14]
cmp al, 0xf7
jne 0x406e8e
mov eax, dword [edi]
add eax, 0xfffffffc
cmp eax, 0x44
ja case.0x40689f.5
movzx eax, byte [eax + 0x407a44]
jmp dword [eax*4 + 0x407a28]
mov ecx, dword [0x454564]
cmp byte [ecx + 0x89a], 0
mov ecx, dword [edi + 8]
lea esi, [edi + 4]
je 0x4069f1
test ecx, ecx
je case.0x40689f.5
mov eax, dword [esi + 8]
sub eax, ecx
cmp eax, 0x1e
jb case.0x40689f.5
push 4
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call fcn.00402420
call fcn.004041a0
mov ecx, dword [esi + 4]
add esp, 0x14
movzx edi, ax
test ecx, ecx
jne 0x4068fc
xor eax, eax
jmp 0x406901
mov eax, dword [esi + 8]
sub eax, ecx
sub eax, edi
cmp eax, 0x17
jb case.0x40689f.5
lea ebp, [edi + 0xf]
push ebp
mov ecx, esi
call fcn.00401340
cmp byte [eax], 2
jb case.0x40689f.5
lea edx, [edi + 6]
push edx
mov ecx, esi
mov byte [ebx + 0xb3], 1
call fcn.00401340
mov al, byte [eax]
lea ecx, [edi + 0x10]
push ecx
mov ecx, esi
mov byte [ebx + 0xb4], al
call fcn.00401340
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.00402420
call fcn.004041a0
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.00402420
call fcn.00404320
add esp, 0x14
push ebp
mov ecx, esi
mov dword [ebx + 0xb8], eax
call fcn.00401340
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, dword [0x454564]
mov byte [ecx + 0xc], 1
mov edx, dword [0x454564]
mov byte [edx + 9], 0xff
mov eax, dword [0x454564]
mov byte [eax + 0xb], 0xff
mov ecx, dword [0x454564]
mov byte [ecx + 0xd], 0xff
mov ecx, dword [ebx + 0x38]
call fcn.0040a490
mov edi, dword [esp + 0x20]
mov ecx, dword [ebx + 0x30]
lea eax, [edi + 4]
push eax
call fcn.004096c0
jmp case.default.0x406ea2
test ecx, ecx
je 0x406a45
mov eax, dword [esi + 8]
sub eax, ecx
cmp eax, 6
jb 0x406a45
push 4
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call fcn.00402420
call fcn.004041a0
movzx edx, ax
mov eax, dword [esi + 4]
add esp, 0x14
test eax, eax
jne 0x406a26
xor ecx, ecx
jmp 0x406a2b
mov ecx, dword [esi + 8]
sub ecx, eax
lea eax, [edx + 7]
cmp ecx, eax
jb 0x406a45
add edx, 6
push edx
mov ecx, esi
call fcn.00401340
mov cl, byte [eax]
mov byte [ebx + 0xb4], cl
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x406ab5
cmp byte [ecx + 0x78], 0
mov eax, 4
je 0x406a5c
mov eax, 6
cmp byte [ecx + 0xc4], 0
je 0x406a68
or eax, 1
push eax
lea edx, [esp + 0x74]
push 2
push edx
call fcn.00406180
add esp, 0xc
mov ecx, dword [ebx + 0x34]
push eax
mov dword [esp + 0x354], 0
call fcn.004096c0
mov dword [esp + 0x350], 0xffffffff
lea ecx, [esp + 0x70]
call fcn.00401990
mov edi, dword [esp + 0x20]
mov ecx, dword [ebx + 0x30]
lea eax, [edi + 4]
push eax
call fcn.004096c0
jmp case.default.0x406ea2
lea eax, [esp + 0x60]
push 1
push eax
call fcn.00406000
add esp, 8
mov ecx, dword [ebx + 0x34]
push eax
mov dword [esp + 0x354], 1
call fcn.004096c0
mov dword [esp + 0x350], 0xffffffff
lea ecx, [esp + 0x60]
jmp 0x406a9b
cmp word [ebx + 0xb6], bp
je 0x406bca
mov edi, 0x446421
mov byte [ebx + 0xae], 1
cmp dword [ebx], ebp
jne 0x406b1c
push str.Warcraft_III
push str.Warcraft_III
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebx], eax
test eax, eax
je 0x406b42
mov ecx, dword [ebx]
push ecx
mov esi, 5
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x406b38
mov esi, 9
mov edi, 0x446410
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 0x406b71
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.004096c0
jmp case.default.0x406ea2
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.004096c0
jmp case.default.0x406ea2
mov esi, dword [ebx + 0xc0]
cmp esi, dword [ebx + 0xbc]
jae 0x406c12
lea edi, [ebx + 0x88]
lea ebx, [ebx]
mov ecx, dword [ebx + 0x30]
push edi
call fcn.004096c0
inc esi
cmp esi, dword [ebx + 0xbc]
jb 0x406c00
mov edi, dword [esp + 0x20]
mov ecx, dword [ebx + 0x30]
mov dword [ebx + 0xc0], ebp
mov byte [ebx + 0xb0], 1
mov eax, dword [0x454560]
mov dword [ebx + 0xc8], eax
lea eax, [edi + 4]
push eax
call fcn.004096c0
jmp case.default.0x406ea2
mov esi, dword [ebx + 0xc0]
cmp esi, dword [ebx + 0xbc]
jae 0x406c65
lea edi, [ebx + 0x88]
mov ecx, dword [ebx + 0x30]
push edi
call fcn.004096c0
inc esi
cmp esi, dword [ebx + 0xbc]
jb 0x406c53
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.004096c0
jmp case.default.0x406ea2
mov ecx, dword [edi + 8]
test ecx, ecx
je case.0x40689f.5
mov eax, dword [edi + 0xc]
sub eax, ecx
cmp eax, 5
jb case.0x40689f.5
cmp eax, 4
ja 0x406caa
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 8]
mov dl, byte [eax + 4]
test eax, eax
jne 0x406cb8
xor ecx, ecx
jmp 0x406cbd
mov ecx, dword [edi + 0xc]
sub ecx, eax
movzx eax, dl
lea esi, [eax + eax*4 + 5]
cmp ecx, esi
jne case.0x40689f.5
test dl, dl
je case.0x40689f.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 0x406cf6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, edi
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
jbe 0x406d06
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test esi, esi
jne 0x406d10
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, edi
je 0x406d6b
test esi, esi
jne 0x406d1e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, dword [esi + 8]
jb 0x406d29
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x406d3f
mov eax, dword [eax + 0xc]
sub eax, ecx
cmp dword [esp + 0x18], eax
jb 0x406d45
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 0x406d5d
mov byte [esp + 0x17], 1
cmp ebp, dword [esi + 8]
jb 0x406d68
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
inc ebp
jmp 0x406cf8
cmp byte [esp + 0x17], 0
jne 0x406da1
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x406d88
mov eax, dword [eax + 0xc]
sub eax, ecx
cmp dword [esp + 0x18], eax
jb 0x406d8e
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.00403e80
add dword [esp + 0x18], 5
dec dword [esp + 0x24]
jne 0x406ce3
mov edi, dword [esp + 0x20]
mov ecx, dword [ebx + 0x30]
lea eax, [edi + 4]
push eax
call fcn.004096c0
jmp case.default.0x406ea2
mov ecx, dword [edi + 8]
test ecx, ecx
je case.0x40689f.5
mov eax, dword [edi + 0xc]
sub eax, ecx
cmp eax, 9
jne case.0x40689f.5
mov esi, dword [ebx + 0x7c]
cmp esi, dword [ebx + 0x80]
lea edi, [ebx + 0x78]
jbe 0x406df2
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 0x406e06
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test ebp, ebp
je 0x406e0e
cmp ebp, edi
je 0x406e14
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [esp + 0x24]
je case.0x40689f.5
test ebp, ebp
jne 0x406e28
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [ebp + 8]
jb 0x406e33
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x406e48
mov eax, dword [edx + 0xc]
sub eax, ecx
cmp eax, 4
ja 0x406e52
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 0x406e7d
mov eax, dword [edi + 8]
lea ecx, [esi + 1]
sub eax, ecx
test eax, eax
jle 0x406e75
push eax
push ecx
push eax
push esi
call dword [sym.imp.MSVCR80.dll_memmove_s]
add esp, 0x10
dec dword [edi + 8]
jmp 0x406df4
cmp esi, dword [ebp + 8]
jb 0x406e88
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
inc esi
jmp 0x406df4
cmp al, 0xf8
jne case.default.0x406ea2
mov eax, dword [edi]
dec eax
cmp eax, 8
ja case.default.0x406ea2
jmp dword [eax*4 + 0x407a8c]
mov ecx, dword [edi + 8]
lea esi, [edi + 4]
cmp ecx, ebp
je case.default.0x406ea2
mov eax, dword [esi + 8]
sub eax, ecx
cmp eax, 0xc
jne case.default.0x406ea2
push 4
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call fcn.00402420
call fcn.004041a0
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.00402420
call fcn.00404320
add esp, 0x14
push 0xb
mov ecx, esi
mov dword [ebx + 0xb8], eax
call fcn.00401340
movzx eax, byte [eax]
mov dword [ebx + 0xbc], eax
mov ecx, dword [0x454564]
inc eax
cmp byte [ecx + 0x898], 0
je 0x406faf
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.00401290
push eax
lea ecx, [esp + 0x8c]
push 0x4463c8
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.00406660
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 0x40702b
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.00401290
push eax
lea eax, [esp + 0xe0]
push 0x446378
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.00406660
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.0x406ea2
cmp dword [edi], 5
jne case.default.0x406ea2
mov byte [ebx + 0xb3], 1
mov eax, dword [0x454564]
mov dl, 1
add eax, 0xc
xchg byte [eax], dl
mov edx, dword [0x454564]
or cl, 0xff
add edx, 9
xchg byte [edx], cl
mov ecx, dword [0x454564]
or al, 0xff
add ecx, 0xb
xchg byte [ecx], al
mov eax, dword [0x454564]
or dl, 0xff
add eax, 0xd
xchg byte [eax], dl
mov ecx, dword [ebx + 0x38]
call fcn.0040a490
mov ecx, dword [0x454564]
xor al, al
mov byte [esp + 0x17], 0
cmp byte [ecx + 8], al
je 0x4070b1
mov edx, dword [ebx + 0x38]
cmp byte [edx + 0x78], al
je 0x4070b1
mov byte [esp + 0x17], 1
cmp byte [ecx + 0xa], 0
je 0x4070c5
mov edx, dword [ebx + 0x38]
cmp byte [edx + 0xc4], 0
je 0x4070c5
mov al, 1
cmp byte [ecx + 0x898], 0
je 0x407286
test al, al
je 0x4070fc
push 0x446348
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 0x407120
push 0x446328
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 0x40714c
push 0x44630c
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 0x407172
push 0x4462ec
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 0x4462a8
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.00406660
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 0x407211
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 0x407235
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 0x407259
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.0x406ea2
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.0x406ea2
test al, al
je 0x4072b0
push 0x446298
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 0x4072d4
push 0x446288
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 0x4072ff
push 0x446298
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 0x407324
push 0x446288
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.00406660
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 0x4073ca
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 0x4073ee
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 0x407412
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.0x406ea2
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.0x406ea2
mov edx, dword [edi + 8]
lea eax, [edi + 4]
cmp edx, ebp
je case.default.0x406ea2
mov ecx, dword [eax + 8]
sub ecx, edx
cmp ecx, 8
jne case.default.0x406ea2
push 4
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00402420
call fcn.00404320
mov edx, dword [ebx + 0x74]
mov ecx, dword [ebx + 0x9c]
sub ecx, edx
add esp, 0x14
cmp eax, ecx
jbe 0x407500
sub eax, ecx
mov dword [esp + 0x18], eax
cmp eax, edx
jbe 0x407493
mov eax, edx
mov dword [esp + 0x18], edx
xor ebp, ebp
cmp eax, ebp
jbe 0x407502
lea esp, [esp]
lea ecx, [ebx + 0x64]
call fcn.004019f0
mov edi, dword [eax]
cmp edi, ebp
je 0x4074d0
mov eax, dword [edi + 8]
cmp eax, ebp
je 0x4074be
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 0x4074f4
mov edx, dword [ebx + 0x6c]
inc dword [ebx + 0x70]
add edx, edx
add edx, edx
cmp edx, dword [ebx + 0x70]
ja 0x4074e9
mov dword [ebx + 0x70], ebp
dec eax
mov dword [ebx + 0x74], eax
cmp eax, ebp
jne 0x4074f4
mov dword [ebx + 0x70], ebp
dec dword [esp + 0x18]
jne 0x4074a0
mov edi, dword [esp + 0x20]
jmp 0x407502
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 0x40757b
mov eax, dword [ebx + 0x74]
cmp eax, dword [ebx + 0x4c]
jbe 0x407540
lea ecx, [ebx + 0x64]
call fcn.004019f0
mov eax, dword [eax]
mov ecx, dword [ebx + 0x34]
add eax, 4
push eax
call fcn.004096c0
lea ecx, [ebx + 0x64]
call fcn.004019f0
push eax
lea ecx, [esp + 0x40]
call fcn.00403450
mov eax, dword [ebx + 0x74]
cmp eax, ebp
je 0x407576
mov edx, dword [ebx + 0x6c]
inc dword [ebx + 0x70]
add edx, edx
add edx, edx
cmp edx, dword [ebx + 0x70]
ja 0x40756b
mov dword [ebx + 0x70], ebp
dec eax
mov dword [ebx + 0x74], eax
cmp eax, ebp
jne 0x407576
mov dword [ebx + 0x70], ebp
cmp dword [ebx + 0x74], ebp
jne 0x407522
lea eax, [esp + 0x3c]
lea ecx, [ebx + 0x64]
push eax
call fcn.00405bf0
lea ecx, [esp + 0x3c]
mov byte [ebx + 0xb1], 1
mov dword [esp + 0x350], 0xffffffff
call fcn.00401a70
jmp case.default.0x406ea2
mov edx, dword [edi + 8]
lea eax, [edi + 4]
cmp edx, ebp
je case.default.0x406ea2
mov ecx, dword [eax + 8]
sub ecx, edx
cmp ecx, 8
jne case.default.0x406ea2
push 4
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00402420
call fcn.00404320
mov edx, dword [ebx + 0x74]
mov ecx, dword [ebx + 0x9c]
sub ecx, edx
add esp, 0x14
cmp eax, ecx
jbe case.default.0x406ea2
sub eax, ecx
mov dword [esp + 0x18], eax
cmp eax, edx
jbe 0x407600
mov dword [esp + 0x18], edx
mov eax, edx
test eax, eax
je case.default.0x406ea2
xor ebp, ebp
lea ebx, [ebx]
lea ecx, [ebx + 0x64]
call fcn.004019f0
mov edi, dword [eax]
cmp edi, ebp
je 0x407640
mov eax, dword [edi + 8]
cmp eax, ebp
je 0x40762e
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 0x407664
mov edx, dword [ebx + 0x6c]
inc dword [ebx + 0x70]
add edx, edx
add edx, edx
cmp edx, dword [ebx + 0x70]
ja 0x407659
mov dword [ebx + 0x70], ebp
dec eax
mov dword [ebx + 0x74], eax
cmp eax, ebp
jne 0x407664
mov dword [ebx + 0x70], ebp
dec dword [esp + 0x18]
jne 0x407610
jmp 0x4079da
mov ecx, dword [edi + 8]
lea edx, [edi + 4]
cmp ecx, ebp
je case.default.0x406ea2
mov eax, dword [edx + 8]
sub eax, ecx
cmp eax, 8
jne case.default.0x406ea2
push 4
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00402420
call fcn.00404320
add esp, 0x14
sub esp, 0x1c
mov dword [esp + 0x38], esp
cmp eax, 2
jne 0x4076ce
mov eax, dword [0x454564]
cmp byte [eax + 0x898], 0
mov ecx, esp
je 0x4076c7
push 0x446208
jmp 0x4076eb
push 0x4461b8
jmp 0x4076eb
mov ecx, dword [0x454564]
cmp byte [ecx + 0x898], 0
mov ecx, esp
je 0x4076e6
push 0x446178
jmp 0x4076eb
push 0x446140
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.00406660
mov ecx, dword [ebx + 0x30]
call fcn.00409100
mov ecx, dword [ebx + 0x30]
call fcn.00409200
jmp case.default.0x406ea2
mov ecx, dword [ebx + 0x38]
cmp ecx, ebp
je case.default.0x406ea2
push edi
call fcn.0040afa0
test al, al
jne 0x407a02
jmp case.default.0x406ea2
mov ecx, dword [edi + 8]
cmp ecx, ebp
je case.default.0x406ea2
mov eax, dword [edi + 0xc]
sub eax, ecx
cmp eax, 4
jne case.default.0x406ea2
mov byte [ebx + 0xb2], 1
jmp case.default.0x406ea2
cmp byte [ebx + 0xb3], 0
je case.default.0x406ea2
mov edx, dword [0x454564]
cmp byte [edx + 0x899], 0
jne case.default.0x406ea2
mov eax, dword [edi + 8]
lea ecx, [edi + 4]
cmp eax, ebp
je case.default.0x406ea2
mov esi, dword [ecx + 8]
sub esi, eax
lea eax, [esi - 0xf]
cmp eax, 0x44
ja case.default.0x406ea2
lea edx, [esi - 4]
push edx
push 4
call fcn.00401340
push eax
push 0x454510
call dword [sym.imp.MSVCR80.dll_strncpy]
add esp, 0xc
mov byte [esi + 0x45450c], 0
xor eax, eax
mov edx, dword [0x454564]
xor cl, cl
lea edx, [eax + edx + 0x1a]
xchg byte [edx], cl
add eax, 0xb6
cmp eax, 0x888
jl 0x4077b2
mov ecx, dword [0x454564]
mov al, 1
add ecx, 0x899
xchg byte [ecx], al
jmp case.default.0x406ea2
cmp byte [ebx + 0xb3], 0
je case.default.0x406ea2
mov edx, dword [0x454564]
cmp byte [edx + 0x899], 0
je case.default.0x406ea2
mov ecx, dword [edi + 8]
lea esi, [edi + 4]
cmp ecx, ebp
je case.default.0x406ea2
mov eax, dword [esi + 8]
sub eax, ecx
add eax, 0xffffffdd
cmp eax, 0xd
ja case.default.0x406ea2
push 4
mov ecx, esi
call fcn.00401340
mov eax, dword [eax]
push 8
mov ecx, esi
mov dword [esp + 0x20], eax
call fcn.00401340
mov ecx, dword [eax]
mov dword [esp + 0x38], ecx
push 0xc
mov ecx, esi
call fcn.00401340
mov edx, dword [eax]
push 0x10
mov ecx, esi
mov dword [esp + 0x38], edx
call fcn.00401340
mov eax, dword [eax]
push 0x14
mov ecx, esi
mov dword [esp + 0x34], eax
call fcn.00401340
mov edi, dword [eax]
push 0x17
mov ecx, esi
and edi, 0xffffff
call fcn.00401340
mov ebp, dword [eax]
push 0x1a
mov ecx, esi
and ebp, 0xffffff
call fcn.00401340
mov ebx, dword [eax]
push 0x1d
mov ecx, esi
and ebx, 0xffffff
call fcn.00401340
mov cl, byte [eax]
mov byte [esp + 0x17], cl
push 0x1e
mov ecx, esi
call fcn.00401340
mov dl, byte [eax]
push 0x1f
mov ecx, esi
mov byte [esp + 0x2c], dl
call fcn.00401340
mov al, byte [eax]
push 0xf
push 0x20
mov ecx, esi
mov byte [esp + 0x31], al
mov byte [esp + 0x32], 0
call fcn.00401340
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 [0x454564]
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 0x407946
mov ecx, dword [0x454564]
mov eax, dword [esp + 0x18]
cmp byte [eax + ecx + 0x1a], 0
jne 0x407930
lea esi, [eax + ecx + 0x10]
inc dword [esp + 0x24]
add eax, 0xb6
mov dword [esp + 0x18], eax
cmp eax, 0x888
jl 0x407900
jmp 0x40795a
mov esi, dword [esp + 0x24]
mov edx, dword [0x454564]
imul esi, esi, 0xb6
lea esi, [esi + edx + 0x10]
test esi, esi
je 0x4079c8
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 0x454510
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 0x4079ee
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 0x406817
mov ecx, dword [esp + 0x348]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x344
ret