Function at 0x1002d030
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x1006a81c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
push esi
push edi
mov dword [ebp - 0x270], ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002d054
sub ecx, edx
lea esi, [ecx + 4]
push esi
call fcn.10034837
add esp, 4
mov dword [ebp - 0x274], eax
test eax, eax
je 0x1002d40a
push 0xffffffffffffffff
push str.log
push esi
push eax
call fcn.10035dd3
push 0xffffffffffffffff
push ebx
push esi
mov esi, dword [ebp - 0x274]
push esi
call fcn.10039b6b
add esp, 0x20
mov dword [ebp - 0x248], 0x1e
lea eax, [ebp - 0x250]
mov dword [ebp - 0x24c], 0xc9435052
push eax
call fcn.10030390
test byte [ebp - 0x246], 1
je 0x1002d3bb
mov cx, word [ebp - 0x242]
lea edx, [esi + 1]
mov ebx, dword [ebp - 0x240]
movzx eax, cx
mov dword [ebp - 0x26c], eax
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x1002d0e0
mov edi, dword [ebp - 0x23c]
sub esi, edx
nop
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x214], 0x1001e
push eax
mov word [ebp - 0x20e], cx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x218], esi
call fcn.10030390
mov al, byte [ebp - 0x212]
test al, 1
je 0x1002d3a9
test al, al
jns 0x1002d3a9
mov ax, word [ebp - 0x242]
mov word [ebp - 0x22a], ax
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 0x234], 0x10000
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x230], esi
call fcn.10030410
mov al, byte [ebp - 0x232]
test al, 1
jne 0x1002d1a1
test al, 0x10
je 0x1002d3a9
mov cx, word [ebp - 0x242]
jmp 0x1002d0f0
je 0x1002d397
mov edi, dword [ebp - 0x23c]
mov eax, dword [ebp - 0x26c]
mov word [ebp - 0x20e], ax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x214], 0x3001e
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x208], edi
call fcn.10030390
mov al, byte [ebp - 0x212]
test al, 1
je 0x1002d397
test al, al
jns 0x1002d397
test al, 2
je 0x1002d2d5
mov edi, dword [ebp - 0x218]
xor ecx, ecx
mov eax, edi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.10034837
mov esi, eax
add esp, 4
test esi, esi
je 0x1002d397
mov eax, dword [ebp - 0x26c]
mov word [ebp - 0x22a], ax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 0x234], 0x10000
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x224], esi
call fcn.100303d0
test byte [ebp - 0x232], 1
jne 0x1002d274
push esi
call fcn.10034811
add esp, 4
test byte [ebp - 0x232], 0x10
jmp 0x1002d195
mov eax, dword [ebp - 0x26c]
mov byte [esi + edi], 0
mov word [ebp - 0x20e], ax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x214], 0x5001e
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x218], 1
call fcn.10030390
test byte [ebp - 0x212], 1
jne 0x1002d2d9
push esi
call fcn.10034811
add esp, 4
test byte [ebp - 0x212], 0x10
jmp 0x1002d195
xor edi, edi
xor esi, esi
mov eax, dword [ebp - 0x26c]
mov word [ebp - 0x25a], ax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x268]
push eax
mov dword [ebp - 0x260], 0x6001e
mov dword [ebp - 0x258], ebx
call fcn.10030390
test byte [ebp - 0x25e], 1
je 0x1002d359
cmp edi, 2
jb 0x1002d431
push 2
push 0x1005abc8
push esi
call fcn.1003a2a0
add esp, 0xc
test eax, eax
je 0x1002d34c
push 2
push 0x1005abcc
push esi
call fcn.1003a2a0
add esp, 0xc
test eax, eax
jne 0x1002d431
lea eax, [edi - 2]
test eax, eax
jne 0x1002d41e
jmp 0x1002d38c
push dword [ebp - 0x270]
lea eax, [ebp - 0x204]
push str.SimpleGuestRPC_Log
push str._s:_Unexpected_error_when_logging_to_backdoor_on_close.__s_n
push 0xffffffffffffffff
push 0x200
push eax
call fcn.1002c190
add esp, 0x18
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call fcn.10034811
add esp, 4
jmp 0x1002d3e9
push dword [ebp - 0x270]
push str.SimpleGuestRPC_Log
push str._s:_Unexpected_error_when_logging_to_backdoor_on_receive.__s_n
jmp 0x1002d3c6
push dword [ebp - 0x270]
push str.SimpleGuestRPC_Log
push str._s:_Unexpected_error_when_logging_to_backdoor_on_send.__s_n
jmp 0x1002d3c6
push ebx
push str.SimpleGuestRPC_Log
push str._s:_Unexpected_error_when_logging_to_backdoor_at_open.__s_n
push 0xffffffffffffffff
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.1002c190
add esp, 0x18
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 0x274]
call fcn.10034811
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10030fab
mov esp, ebp
pop ebp
ret 4
push 0xe2
push str.d:_buildob_bora_18379147_bora_vmsoft_build_release_svgawddm_srclibumlib_simpleguestrpc.c
push str.VERIFY__s:_d_n
call fcn.1002ba30
lea eax, [esi + 2]
push eax
push str.SimpleGuestRPC_Log
push str._s:_Unexpected_reply_when_logging:__s_n
call fcn.1002ba30
push str.SimpleGuestRPC_Log
push str._s:_Unexpected_error_when_logging_to_backdoor._n
call fcn.1002ba30
int3