Function at 0x4085b8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x487925
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4a3070]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x4a3070]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test edx, edx
je 0x40883c
push 0
push 0
lea eax, [esp + 0x2c]
call fcn.0042a348
sub esp, 0x18
mov dword [esp + 0xb8], 2
mov esi, esp
mov dword [esp + 0x28], esp
push edx
call fcn.0042941b
lea eax, [esp + 0x3c]
push eax
mov edx, str.message
mov byte [esp + 0xbc], 3
call fcn.0042a627
mov edi, eax
mov byte [esp + 0xb8], 2
call fcn.004296ef
test ebx, ebx
jne 0x40865c
mov ebx, 0x48e56b
sub esp, 0x18
mov esi, esp
mov dword [esp + 0x28], esp
push ebx
call fcn.0042941b
lea eax, [esp + 0x3c]
push eax
mov edx, str.content
mov byte [esp + 0xbc], 4
call fcn.0042a627
mov edi, eax
mov byte [esp + 0xb8], 2
call fcn.004296ef
sub esp, 0x18
mov esi, esp
mov dword [esp + 0x28], esp
push str.send
call fcn.0042941b
lea eax, [esp + 0x3c]
push eax
mov edx, str.type
mov byte [esp + 0xbc], 5
call fcn.0042a627
mov edi, eax
mov byte [esp + 0xb8], 2
call fcn.004296ef
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.0042aa9b
push eax
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0xa8], 6
call fcn.0040121b
pop ecx
pop ecx
push 0
push 1
lea ecx, [esp + 0x44]
call fcn.00403c15
mov ebx, 0x4b752c
push ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0xa0], 9
mov eax, dword [0x4b8684]
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov ecx, dword [0x4b866c]
lea edi, [esp + 0x1c]
lea esi, [esp + 0x14]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
call fcn.00435277
test al, al
jne 0x408817
lea esi, [esp + 0x14]
call fcn.0040f788
add eax, 0xc
push eax
push str.SendTo_s
call fcn.00433453
pop ecx
pop ecx
call fcn.0041c358
push eax
push str._08x
lea ecx, [esp + 0x60]
call fcn.0041dbb7
pop ecx
pop ecx
mov edi, eax
mov byte [esp + 0xa0], 0xa
call fcn.0040f788
add eax, 0xc
push eax
push str.Softwareprojonepodlp_agentmessages_
push 0x48f0dc
lea ecx, [esp + 0x48]
call fcn.0041dbb7
mov esi, dword [esp + 0x84]
add esp, 0xc
cmp dword [esp + 0x8c], 8
jae 0x4087b1
lea esi, [esp + 0x78]
cmp dword [edi + 0x18], 8
jb 0x4087bc
mov edi, dword [edi + 4]
jmp 0x4087bf
add edi, 4
cmp dword [eax + 0x18], 8
jb 0x4087ca
mov eax, dword [eax + 4]
jmp 0x4087cd
add eax, 4
mov ebx, edi
mov edi, eax
call fcn.0041dca5
push 0
push 1
lea esi, [esp + 0x44]
call fcn.00403d0d
push 0
push 1
lea esi, [esp + 0x60]
mov byte [esp + 0xa8], 9
call fcn.00403d0d
lea esi, [esp + 0x14]
call fcn.00409873
lea edi, [esp + 0x1c]
call fcn.00435277
test al, al
je 0x408744
mov ebx, 0x4b752c
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 1
lea esi, [esp + 0x7c]
call fcn.00403d0d
or dword [esp + 0xa0], 0xffffffff
lea esi, [esp + 0x24]
call fcn.0042966c
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0044302b
mov esp, ebp
pop ebp
ret 8