Function at 0x4050d0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x438d24
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
mov eax, dword [0x44e7a0]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x114], eax
call fcn.004019a0
test al, al
je 0x405645
call fcn.00404f10
push str.KwMV
lea ecx, [esp + 0xa4]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0xa0]
push eax
mov dword [esp + 0x124], 0
call dword [sym.imp.KwLogSvr.dll_void___cdecl_LogInit_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
or edi, 0xffffffff
add esp, 4
lea ecx, [esp + 0xa0]
mov dword [esp + 0x120], edi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [0x4507ec]
push ecx
call fcn.00402df0
mov edx, dword [0x4507ec]
mov eax, dword [str.KwMusicServer]
add esp, 4
push 0
push edx
push 0
push 0
push 0
push connect
push 0
push connect
push 0xcf0000
push eax
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
jne 0x405218
push str.P2PClient
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov eax, dword [str.KTLog.txt]
mov ebx, 1
push eax
lea ecx, [esp + 0xa4]
mov dword [esp + 0x124], ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push str.CreateWindow_failed
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xa8]
push 0
push edx
mov byte [esp + 0x130], 2
call dword [sym.imp.KwLogSvr.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x10
lea ecx, [esp + 0xa0]
mov byte [esp + 0x120], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x14]
mov dword [esp + 0x120], edi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 0
call dword [sym.imp.MSVCR71.dll_exit]
mov ecx, dword [0x4507f4]
call fcn.00425b30
test al, al
je 0x4055d5
lea ecx, [esp + 0xbc]
call fcn.00404c80
mov ecx, dword [0x450afc]
mov dword [esp + 0x120], 3
call fcn.00407810
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.ResUpSvr
mov dword [esp + 0xdc], eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [0x450b00]
lea eax, [esp + 0x68]
push eax
call fcn.004169d0
push eax
lea ecx, [esp + 0xd0]
mov byte [esp + 0x124], 4
call dword [0x43d1c4]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x120], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.ResUpPort
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [0x450b00]
call fcn.00416ac0
push 0x43dabc
lea ecx, [esp + 0xec]
mov word [esp + 0xcc], ax
call dword [0x43d1b0]
push 0x450830
lea ecx, [esp + 0xa4]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
cmp dword [esp + 0xb8], 0x10
mov eax, dword [esp + 0xa4]
mov byte [esp + 0x120], 5
jae 0x40530b
lea eax, [esp + 0xa4]
mov ecx, dword [esp + 0xb4]
cmp byte [eax + ecx - 1], 0x5c
je 0x40532b
push 0x43d3cc
lea ecx, [esp + 0xa4]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0x108]
call fcn.00404bc0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.MaxSpaceSize
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [0x450b00]
call fcn.00416ac0
cmp eax, 0x14
mov dword [esp + 0xc0], eax
jae 0x405375
mov dword [esp + 0xc0], 0x14
sub esp, 0x58
lea eax, [esp + 0x114]
mov ecx, esp
mov dword [esp + 0x68], esp
push eax
mov dword [esp + 0x120], 0x50
call fcn.00404d40
mov ecx, dword [0x4507f4]
call fcn.00425db0
test al, al
jne 0x405453
push str.P2PClient
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [str.KTLog.txt]
push ecx
mov bl, 6
lea ecx, [esp + 0x18]
mov byte [esp + 0x124], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push str.Starting_Local_Indexer_Failed
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x1c]
push 0
push eax
mov byte [esp + 0x130], 7
call dword [sym.imp.KwLogSvr.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x120], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x30]
mov byte [esp + 0x120], 5
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 0xa0]
mov byte [esp + 0x120], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xbc]
mov dword [esp + 0x120], edi
call fcn.00404ce0
jmp 0x405654
lea ecx, [esp + 0xa0]
mov byte [esp + 0x120], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xbc]
mov dword [esp + 0x120], edi
call fcn.00404ce0
mov ecx, dword [0x450aec]
call fcn.00415f40
test al, al
jne 0x4054ef
push str.P2PClient
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [str.KTLog.txt]
push ecx
mov ebx, 0xa
lea ecx, [esp + 0x34]
mov dword [esp + 0x124], ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push str.Start_SFUnited_Failed
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x38]
push 0
push eax
mov byte [esp + 0x130], 0xb
call dword [sym.imp.KwLogSvr.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x10
lea ecx, [esp + 0x30]
mov byte [esp + 0x120], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x14]
jmp 0x40556d
mov ecx, 0x450828
call fcn.00403300
test al, al
jne 0x405589
push str.P2PClient
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [str.KTLog.txt]
push ecx
mov ebx, 0xc
lea ecx, [esp + 0x88]
mov dword [esp + 0x124], ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push str.Start_TCP_Server_Failed
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x8c]
push 0
push eax
mov byte [esp + 0x130], 0xd
call dword [sym.imp.KwLogSvr.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x10
lea ecx, [esp + 0x84]
mov byte [esp + 0x120], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x120], edi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 0
call fcn.00401610
add esp, 4
jmp 0x405654
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x74]
push ecx
call esi
test eax, eax
je 0x405654
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
cmp eax, edi
je 0x4055c2
lea edx, [esp + 0x68]
push edx
call ebx
lea eax, [esp + 0x68]
push eax
call ebp
push 0
push 0
push 0
lea ecx, [esp + 0x74]
push ecx
call esi
test eax, eax
jne 0x4055b0
jmp 0x405654
push str.P2PClient
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov edx, dword [str.KTLog.txt]
mov ebx, 8
push edx
lea ecx, [esp + 0x34]
mov dword [esp + 0x124], ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push str.Load_Local_Indexer_DLL_Failed
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
push 0
push ecx
mov byte [esp + 0x130], 9
call dword [sym.imp.KwLogSvr.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x10
lea ecx, [esp + 0x30]
mov byte [esp + 0x120], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x14]
mov dword [esp + 0x120], edi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x114]
call fcn.00437d67
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret