Function at 0x402135
Capabilities:
Print debug messages

Disassembly:
jmp 0x481130
sub esp, 0x50
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x1b8]
mov esi, dword [ebx + 0x1c4]
test eax, eax
jne 0x48115e
push str.rNetConnect___Received_NULL_lpDPlay_pointer__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x50
ret 0x18
mov ecx, dword [ebx + 0x1c0]
test ecx, ecx
jne 0x481192
mov edx, dword [esp + 0x60]
mov ecx, dword [eax]
push 0
push edx
push eax
call dword [ecx + 0x98]
test eax, eax
je 0x4811cd
push str.rNetConnect___Failed_to_initialize_connection.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x50
ret 0x18
mov edx, dword [esp + 0x60]
mov edi, dword [ecx + 4]
cmp edi, edx
je 0x4811e6
mov ecx, dword [eax]
push 0
push edx
push eax
call dword [ecx + 0x98]
test eax, eax
je 0x4811c3
push str.rNetConnect___Failed_to_initialize_connection.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x50
ret 0x18
mov dword [ebx + 0x1c0], 0
push 0x5c
call fcn.0050ef5f
mov ecx, 0x17
mov edi, eax
mov dword [ebx + 0x1c0], eax
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc], 0x50
test eax, eax
jne 0x48127f
mov edx, dword [ebx + 0x1bc]
push 2
mov eax, dword [edx]
mov dword [esp + 0x28], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x2c], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x74]
mov ecx, dword [edx + 0xc]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x34], ecx
mov ecx, dword [0x5537f0]
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x1b8]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], edx
mov dword [esp + 0x38], 8
mov dword [esp + 0x14], 0x20c4
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x60]
test eax, eax
jge 0x481303
push str.rNetConnect___Could_Not_Open_Dplay_to_Host.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x50
ret 0x18
cmp eax, 1
jne 0x481303
mov edx, dword [esp + 0x64]
push 1
mov eax, dword [edx]
mov dword [esp + 0x18], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x1c], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x20], eax
mov ecx, dword [edx + 0xc]
mov edx, dword [ebx + 0x1bc]
mov dword [esp + 0x24], ecx
mov eax, dword [edx]
mov dword [esp + 0x28], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x2c], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x1b8]
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x14], 0
mov dword [esp + 0x34], ecx
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [edx + 0x60]
test eax, eax
je 0x4812f9
push str.rNetConnect___Could_Not_Open_Dplay_to_Join.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x50
ret 0x18
mov edx, dword [esp + 0x4c]
mov dword [0x5537f0], edx
mov eax, dword [esp + 0x74]
push 0
push eax
mov ecx, ebx
call fcn.0040253b
test eax, eax
jne 0x48132b
push str.rNetConnect___rNetCreatePlayer_could_not_create_player.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x50
ret 0x18
pop edi
mov dword [ebx + 0x1b4], eax
pop esi
pop ebx
add esp, 0x50
ret 0x18