Function at 0x408fc0
Capabilities:
Accept command line arguments
Create thread
Query environment variable
Set environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
push str.PB_DEBUGGER_Communication
mov dword [0x431f04], 0
call sub.MSVCRT.dll_getenv
mov edi, eax
add esp, 4
test edi, edi
je 0x4090cb
push 0x3b
push edi
call sub.MSVCRT.dll_strchr
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x408ffc
mov byte [ebx], 0
inc ebx
jmp 0x409001
mov ebx, 0x4253da
xor esi, esi
mov eax, dword [esi*4 + 0x430538]
mov ecx, edi
mov eax, dword [eax]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409030
test dl, dl
je 0x40902c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409030
add eax, 2
add ecx, 2
test dl, dl
jne 0x409010
xor eax, eax
jmp 0x409035
sbb eax, eax
or eax, 1
test eax, eax
je 0x409044
inc esi
cmp esi, 4
jb 0x409003
jmp 0x4093e1
mov eax, dword [esi*4 + 0x430538]
mov dword [0x431f6c], eax
test ebx, ebx
je 0x4093f6
mov eax, dword [eax + 8]
push ebx
call eax
add esp, 4
test eax, eax
je 0x4093f6
mov eax, dword [esi*4 + 0x430538]
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov dword [0x431f04], 1
cmp dword [eax + 4], 0
jne 0x4090c2
push str.PB_DEBUGGER_Options
call sub.MSVCRT.dll_getenv
add esp, 4
test eax, eax
je 0x4090c2
push 0x431f54
push 0x431f10
push 0x431f0c
push 0x431f08
push str._d__d__d__d
push eax
call sub.MSVCRT.dll_sscanf
add esp, 0x18
push 0
push str.PB_DEBUGGER_Options
call esi
push 0
push str.PB_DEBUGGER_Communication
call esi
push ebp
mov dword [0x432370], 0
mov ebp, 0x4253da
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
test eax, eax
je 0x40932b
mov edx, dword [0x435aac]
nop
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx], cl
lea edx, [edx + 1]
test cl, cl
jne 0x4090f0
mov ebx, dword [0x435aac]
mov ecx, ebx
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409110
sub ecx, edx
lea ebp, [ebx + 1]
add ebp, ecx
mov byte [ebp], al
cmp byte [ebx], al
je 0x40932b
lea esp, [esp]
cmp byte [ebx], 0x20
jne 0x40913b
inc ebx
cmp byte [ebx], 0x20
je 0x409135
cmp byte [ebx], 0
je 0x40932b
mov esi, ebx
cmp byte [ebx], 0x20
je 0x409151
inc ebx
cmp byte [ebx], 0
jne 0x409146
cmp byte [ebx], 0
je 0x40915a
mov byte [ebx], 0
inc ebx
push 0x4256ac
push esi
call sub.MSVCRT.dll__stricmp
add esp, 8
test eax, eax
je 0x409318
push 0x4256bc
push esi
call sub.MSVCRT.dll__stricmp
add esp, 8
test eax, eax
je 0x409318
push 0xd
push str._DEBUGLISTEN
push esi
call sub.MSVCRT.dll__strnicmp
add esp, 0xc
test eax, eax
jne 0x4091c2
lea ecx, [esi + 0xd]
mov dword [0x432370], 0x430d78
mov edx, ebp
sub edx, ecx
jmp 0x4091b0
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4091b0
jmp 0x409322
push 0xe
push str.__debuglisten
push esi
call sub.MSVCRT.dll__strnicmp
add esp, 0xc
test eax, eax
jne 0x4091f9
lea ecx, [esi + 0xe]
mov dword [0x432370], 0x430d78
mov edx, ebp
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4091e7
jmp 0x409322
push 0xe
push str._DEBUGCONNECT
push esi
call sub.MSVCRT.dll__strnicmp
add esp, 0xc
test eax, eax
jne 0x409232
lea ecx, [esi + 0xe]
mov dword [0x432370], 0x430d90
mov edx, ebp
sub edx, ecx
mov edi, edi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x409220
jmp 0x409322
push 0xf
push str.__debugconnect
push esi
call sub.MSVCRT.dll__strnicmp
add esp, 0xc
test eax, eax
jne 0x409269
lea ecx, [esi + 0xf]
mov dword [0x432370], 0x430d90
mov edx, ebp
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x409257
jmp 0x409322
push 0xa
push str._PASSWORD
push esi
call sub.MSVCRT.dll__strnicmp
add esp, 0xc
test eax, eax
jne 0x4092bc
lea edi, [ebp - 1]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x409280
mov ax, word [0x425718]
lea edx, [esi + 0xa]
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x409298
sub edx, esi
lea edi, [ebp - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4092a4
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x409322
push 0xb
push str.__password
push esi
call sub.MSVCRT.dll__strnicmp
add esp, 0xc
test eax, eax
jne 0x409322
lea edi, [ebp - 1]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4092d3
mov ax, word [0x425718]
lea edx, [esi + 0xb]
mov word [edi], ax
mov esi, edx
jmp 0x4092f0
mov al, byte [edx]
inc edx
test al, al
jne 0x4092f0
sub edx, esi
lea edi, [ebp - 1]
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x409300
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x409322
mov dword [0x432370], 0x430d78
cmp byte [ebx], 0
jne 0x409130
mov eax, dword [0x432370]
test eax, eax
je 0x40935b
mov eax, dword [eax + 8]
push ebp
call eax
add esp, 4
test eax, eax
je 0x40940b
mov eax, dword [0x432370]
mov dword [0x431f6c], eax
mov dword [0x431f04], 1
jmp 0x409368
cmp dword [0x431f04], 0
je 0x4093db
mov eax, dword [0x431f54]
mov dword [0x431f50], eax
xor eax, eax
cmp dword [0x431f08], eax
setne al
inc eax
mov dword [0x441b30], eax
call fcn.0040b3a0
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4352c4
call esi
push 0x441b18
call esi
push 0x435ab8
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x4087d0
push 0
push 0
call esi
mov dword [0x431f64], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x408770
push 0
push 0
call esi
mov dword [0x431f68], eax
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
push edi
push str._Fatal_Debugger_Error__No_communication_plugin_found_for___s_._n_n
call sub.MSVCRT.dll_printf
add esp, 8
push 1
call sub.MSVCRT.dll_exit
push edi
push str._Fatal_Debugger_Error__Communication_plugin_failed_to_connect:___s_._n_n
call sub.MSVCRT.dll_printf
add esp, 8
push 1
call sub.MSVCRT.dll_exit
push 1
call sub.MSVCRT.dll_exit
int3