Function at 0x408930
Capabilities:
Print debug messages

Disassembly:
sub esp, 0xd0
push ebp
push esi
mov esi, ecx
cmp dword [esi + 0x160], 1
jne 0x408c61
mov ebp, dword [esp + 0xe4]
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0xdc]
push ebp
push eax
push ecx
mov ecx, esi
call fcn.00408800
test eax, eax
je 0x408c61
mov eax, dword [esi + 0x104]
xor edx, edx
mov dword [esp + 8], edx
push ebx
mov dword [esp + 0x10], edx
mov ecx, dword [eax + 0x4204]
add ecx, 0xd
push edi
mov edx, dword [ecx]
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
mov ax, word [ecx + 4]
push edx
mov word [esp + 0x18], ax
mov cl, byte [ecx + 6]
mov byte [esp + 0x1a], cl
call dword [sym.imp.MSVCRT.dll_atoi]
mov edx, dword [esi + 0x104]
mov ebx, eax
mov cl, 0xa
mov edi, dword [edx + 0x4204]
mov al, byte [edi + 0xb]
add al, 0x18
imul cl
mov cl, byte [edi + 0xc]
lea edi, [esp + 0x64]
add al, cl
mov ecx, 0x20
mov byte [esp + 0x20], al
xor eax, eax
rep stosd dword es:[edi], eax
mov edx, dword [edx + 0x4204]
mov edi, dword [esp + 0x20]
mov eax, edi
movsx ecx, byte [edx + 0x1e]
and eax, 0xff
push ecx
push ebx
push eax
lea edx, [esp + 0x70]
push str.TcpMessageRecvFromCenter__d__d__d
push edx
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x18]
lea eax, [ecx - 0x33]
cmp eax, 0x1c
ja case.0x408a21.66
jmp dword [eax*4 + 0x408c6c]
mov ecx, dword [esi + 0x104]
push 0
mov edx, dword [ecx + 0x4204]
push edx
call fcn.004022d0
jmp case.0x408a21.66
cmp ebx, 1
jne 0x408a68
mov ecx, dword [esi + 0x104]
mov eax, dword [ecx + 0x4204]
add eax, 0x1e
cmp byte [eax], 0x30
jl 0x408a68
push ebp
push ebx
push eax
push edi
call fcn.00401820
jmp case.0x408a21.66
mov ecx, dword [esi + 0x104]
mov eax, dword [ecx + 0x4204]
push eax
push ebp
push edi
call fcn.00402600
jmp case.0x408a21.66
cmp ebx, 1
jne 0x408aaa
mov ecx, dword [esi + 0x104]
mov edx, dword [ecx + 0x4204]
cmp byte [edx + 0x1e], 0x4c
jne 0x408aaa
push 0
mov dword [esi + 0x168], ebx
call fcn.00404820
jmp case.0x408a21.66
mov ecx, dword [esi + 0x104]
mov eax, dword [ecx + 0x4204]
push eax
push ebp
push edi
call fcn.004028c0
jmp case.0x408a21.66
mov ecx, dword [esi + 0x104]
push 0x52
push ebp
call fcn.00402b70
jmp case.0x408a21.66
mov ecx, dword [esi + 0x104]
push ebp
push ebx
mov edx, dword [ecx + 0x4204]
push edx
call fcn.00403510
jmp case.0x408a21.66
mov ecx, dword [esi + 0x104]
push ebp
push ebx
mov eax, dword [ecx + 0x4204]
add eax, 0x1e
push eax
push edi
call fcn.00403740
jmp case.0x408a21.66
mov ecx, dword [esi + 0x104]
push ebp
call fcn.00403830
jmp case.0x408a21.66
mov ecx, dword [esi + 0x104]
push ebp
push ebx
mov edx, dword [ecx + 0x4204]
add edx, 0x1e
push edx
push edi
call fcn.00401820
jmp case.0x408a21.66
mov ecx, dword [esi + 0x104]
mov eax, dword [ecx + 0x4204]
add eax, 0x1e
push eax
call fcn.00401c70
jmp case.0x408a21.66
mov ecx, dword [esi + 0x104]
push ebp
push ebx
mov edx, dword [ecx + 0x4204]
add edx, 0x1e
push edx
push edi
call fcn.00401e40
jmp case.0x408a21.66
mov eax, dword [esi + 0x104]
lea edx, [esp + 0x20]
mov ecx, dword [eax + 0x4204]
movsx eax, byte [ecx + 0x1e]
add eax, 0xffffffd0
push eax
push str.MGR_PC:_
push edx
mov dword [esi + 0x164], eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esi + 0x104]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
call fcn.00405820
jmp case.0x408a21.66
mov ecx, dword [esi + 0x104]
push ebp
mov edx, dword [ecx + 0x4204]
add edx, 0x1e
push edx
call fcn.00401f90
mov dword [esi + 0x164], 1
jmp case.0x408a21.66
mov ecx, dword [esi + 0x104]
mov eax, dword [ecx + 0x4204]
add eax, 0x1e
push eax
call fcn.004020a0
jmp case.0x408a21.66
mov ecx, dword [esi + 0x104]
mov edx, dword [ecx + 0x4204]
add edx, 0x1e
push edx
call fcn.004021a0
jmp case.0x408a21.66
mov eax, dword [esi + 0x8c]
test eax, eax
je case.0x408a21.66
mov ecx, esi
call fcn.00407e70
jmp case.0x408a21.66
mov ecx, dword [esi + 0x104]
call fcn.004037b0
mov dword [esi + 0x1dc], 1
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x104]
push ebx
push eax
push 1
call fcn.00405670
mov edx, dword [esi + 0x1d0]
mov cl, byte [esp + 0x1c]
xor eax, eax
inc edx
pop edi
cmp cl, 0x3b
mov dword [esi + 0x214], eax
mov dword [esi + 0x1d0], edx
pop ebx
je 0x408c61
mov dword [esi + 0x1cc], eax
pop esi
pop ebp
add esp, 0xd0
ret 0xc