Function at 0x4034a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447198
mov eax, dword fs:[0]
push eax
sub esp, 0x4a4
mov eax, dword [0x461054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x45c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x444], eax
cmp dword [eax + 0x10], 0
xorps xmm0, xmm0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 0
movlpd qword [ebp - 0x4ac], xmm0
movlpd qword [ebp - 0x4a4], xmm0
movlpd qword [ebp - 0x49c], xmm0
movlpd qword [ebp - 0x494], xmm0
movlpd qword [ebp - 0x48c], xmm0
movlpd qword [ebp - 0x484], xmm0
movlpd qword [ebp - 0x47c], xmm0
movlpd qword [ebp - 0x474], xmm0
mov dword [ebp - 0x4b0], 0x44
movups xmmword [ebp - 0x46c], xmm0
jne 0x403685
cmp dword [ecx + 0x14], 8
jb 0x40355b
mov ecx, dword [ecx]
lea eax, [ebp - 0x46c]
mov dword [ebp - 0x440], ecx
mov ecx, dword [ebp + 0x3c]
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x4b0]
mov dword [ebp - 0x430], eax
movzx eax, byte [ebp + 0x14]
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x444], 0
test ecx, ecx
je 0x403bff
mov eax, dword [ecx]
lea edx, [ebp - 0x438]
push edx
lea edx, [ebp - 0x430]
push edx
mov eax, dword [eax + 8]
lea edx, [ebp - 0x42c]
push edx
lea edx, [ebp - 0x434]
push edx
lea edx, [ebp - 0x448]
push edx
lea edx, [ebp - 0x44c]
push edx
lea edx, [ebp - 0x450]
push edx
lea edx, [ebp - 0x454]
push edx
lea edx, [ebp - 0x444]
push edx
lea edx, [ebp - 0x440]
push edx
call eax
test eax, eax
jne 0x403b40
call esi
mov edi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call eax
push edi
push esi
push eax
push 0x20
push 0x44b930
lea eax, [ebp - 0x410]
push 0x44b884
push eax
mov eax, dword [sym.imp.USER32.dll_wsprintfA]
call eax
add esp, 0x1c
call fcn.004135e0
test eax, eax
je 0x403678
push 0
push eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
test eax, eax
jne 0x403678
lea eax, [ebp - 0x410]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call eax
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call eax
jmp 0x403b3a
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x414], 7
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
mov byte [ebp - 4], 2
mov dword [ebp - 0x418], 1
mov dword [ebp - 0x428], 0x22
jb 0x4036bc
mov ecx, dword [ecx]
push eax
push ecx
lea ecx, [ebp - 0x428]
call fcn.0040ca30
mov edx, dword [ebp - 0x418]
mov edi, 0x7ffffffe
mov ecx, dword [ebp - 0x414]
mov dword [ebp - 0x440], edx
mov dword [ebp - 0x42c], ecx
cmp edx, ecx
jae 0x403727
lea eax, [edx + 1]
cmp ecx, 8
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
mov dword [eax + edx*2], 0x22
mov ecx, dword [ebp - 0x418]
mov esi, dword [ebp - 0x414]
mov edi, dword [ebp - 0x428]
mov dword [ebp - 0x434], ecx
jmp 0x40381f
mov eax, edi
sub eax, edx
cmp eax, 1
jb 0x403bfa
lea eax, [edx + 1]
mov esi, eax
mov dword [ebp - 0x434], eax
or esi, 7
cmp esi, edi
jbe 0x40374a
mov esi, edi
jmp 0x403762
mov edx, ecx
mov eax, edi
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x40375a
mov esi, edi
jmp 0x403762
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x428]
call fcn.0040c580
mov edi, eax
mov dword [ebp - 0x414], esi
mov eax, dword [ebp - 0x434]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp - 0x440]
add eax, eax
cmp dword [ebp - 0x42c], 8
mov dword [ebp - 0x430], eax
push eax
jb 0x4037f6
push dword [ebp - 0x428]
push edi
call fcn.0042de60
mov eax, dword [ebp - 0x430]
add esp, 0xc
mov ecx, dword [ebp - 0x428]
mov dword [eax + edi], 0x22
mov eax, dword [ebp - 0x42c]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4037ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403c09
push edx
push ecx
call fcn.0042c7bf
add esp, 8
jmp 0x403813
lea eax, [ebp - 0x428]
push eax
push edi
call fcn.0042de60
mov eax, dword [ebp - 0x430]
add esp, 0xc
mov dword [eax + edi], 0x22
mov ecx, dword [ebp - 0x434]
mov dword [ebp - 0x428], edi
cmp ecx, esi
jae 0x403844
lea eax, [ecx + 1]
cmp esi, 8
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x428]
cmovae eax, edi
mov dword [eax + ecx*2], 0x20
jmp 0x403940
mov edx, 0x7ffffffe
mov eax, edx
sub eax, ecx
cmp eax, 1
jb 0x403bfa
lea eax, [ecx + 1]
mov ecx, eax
mov dword [ebp - 0x440], eax
or ecx, 7
cmp ecx, edx
jbe 0x40386c
mov ecx, edx
jmp 0x403884
mov eax, esi
shr eax, 1
sub edx, eax
cmp esi, edx
jbe 0x40387d
mov ecx, 0x7ffffffe
jmp 0x403884
add eax, esi
cmp ecx, eax
cmovb ecx, eax
lea eax, [ecx + 1]
mov dword [ebp - 0x42c], ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.0040c580
mov ecx, eax
mov eax, dword [ebp - 0x440]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x414], eax
mov eax, dword [ebp - 0x434]
mov dword [ebp - 0x438], ecx
lea edx, [eax + eax]
lea eax, [ecx + edx]
mov dword [ebp - 0x430], eax
push edx
cmp esi, 8
jb 0x403918
push edi
push ecx
call fcn.0042de60
mov eax, dword [ebp - 0x430]
lea esi, [esi*2 + 2]
add esp, 0xc
mov dword [eax], 0x20
mov eax, edi
cmp esi, 0x1000
jb 0x40390c
mov edi, dword [edi - 4]
add esi, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403c09
push esi
push edi
call fcn.0042c7bf
add esp, 8
jmp 0x403934
lea eax, [ebp - 0x428]
push eax
push ecx
call fcn.0042de60
mov eax, dword [ebp - 0x430]
add esp, 0xc
mov dword [eax], 0x20
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp - 0x444]
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x403951
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.0040ca30
mov esi, dword [ebp - 0x418]
xor ecx, ecx
mov edx, 2
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042c7cd
cmp dword [ebp - 0x414], 8
mov ecx, eax
mov edi, dword [ebp - 0x428]
lea eax, [ebp - 0x428]
cmovae eax, edi
mov dword [ebp - 0x430], ecx
setae byte [ebp - 0x439]
add esi, esi
push esi
push eax
push ecx
call fcn.0042de60
mov ecx, dword [ebp - 0x430]
xor eax, eax
mov dword [ebp - 0x434], ecx
add esp, 0x10
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x450], 0
mov word [esi + ecx], ax
lea eax, [ebp - 0x46c]
mov ecx, dword [ebp + 0x3c]
mov dword [ebp - 0x440], eax
lea eax, [ebp - 0x4b0]
mov dword [ebp - 0x444], eax
movzx eax, byte [ebp + 0x14]
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x458], 0
test ecx, ecx
je 0x403c04
mov eax, dword [ecx]
lea edx, [ebp - 0x440]
push edx
lea edx, [ebp - 0x444]
push edx
mov eax, dword [eax + 8]
lea edx, [ebp - 0x454]
push edx
lea edx, [ebp - 0x450]
push edx
lea edx, [ebp - 0x44c]
push edx
lea edx, [ebp - 0x448]
push edx
lea edx, [ebp - 0x438]
push edx
lea edx, [ebp - 0x42c]
push edx
lea edx, [ebp - 0x434]
push edx
lea edx, [ebp - 0x458]
push edx
call eax
test eax, eax
jne 0x403aee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x438], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call eax
push dword [ebp - 0x438]
push esi
push eax
push 0x2d
push 0x44b930
lea eax, [ebp - 0x410]
push 0x44b884
push eax
mov eax, dword [sym.imp.USER32.dll_wsprintfA]
call eax
add esp, 0x1c
call fcn.004135e0
test eax, eax
je 0x403ae1
push 0
push eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
test eax, eax
jne 0x403ae1
lea eax, [ebp - 0x410]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call eax
push dword [ebp - 0x438]
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
call eax
push dword [ebp - 0x430]
call fcn.0042c7d6
add esp, 4
cmp byte [ebp - 0x439], 0
je 0x403b3a
mov ecx, dword [ebp - 0x414]
mov eax, edi
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x403b30
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403c09
push ecx
push edi
call fcn.0042c7bf
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x468]
test eax, eax
je 0x403bb0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x403bb0
call esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push esi
push eax
push 0x34
push 0x44b930
lea eax, [ebp - 0x410]
push 0x44b884
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
call fcn.004135e0
test eax, eax
je 0x403ba9
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x403ba9
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp - 0x45c]
mov ecx, dword [ebp + 0x3c]
mov eax, dword [ebp - 0x46c]
mov dword [edi], vtable.sentrybay::Process.0
mov dword [edi + 4], eax
test ecx, ecx
je 0x403bdd
mov esi, dword [ecx]
lea eax, [ebp + 0x18]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042cc35
mov esp, ebp
pop ebp
ret
call fcn.0040c3f0
call fcn.00415dc0
call fcn.00415dc0
call fcn.00430d2f
int3