Function at 0x409ed0
Capabilities:
Check mutex on windows
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433fdb
mov eax, dword fs:[0]
push eax
sub esp, 0x62c
mov eax, dword [0x449214]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 1
mov edi, dword [ebp + 0xc]
jle 0x40a165
lea ecx, [ebp - 0x4b1]
call fcn.00403970
lea ecx, [ebp - 0x4b1]
mov esi, eax
call fcn.00407420
push 0
push 0
push esi
call fcn.00405b00
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004199a0
add esp, 0x18
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.Loghost.log
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call fcn.004141f0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [ebp - 0x4c0]
mov dword [ebp - 0x4c0], 8
push eax
mov dword [ebp - 0x4bc], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0
mov ecx, 0x44acb8
call fcn.004059a0
push 0
lea eax, [ebp - 0x514]
mov dword [ebp - 0x514], 1
push eax
lea eax, [ebp - 0x4c4]
mov dword [ebp - 0x510], 0
push eax
mov dword [ebp - 0x50c], 0
mov dword [ebp - 0x508], 0
call sub.gdiplus.dll_GdiplusStartup
test eax, eax
jne 0x40a165
mov edx, dword [edi + 4]
mov ecx, edx
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], 0xf
mov byte [ebp - 0x278], al
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a033
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x278]
call fcn.00408cd0
lea ecx, [ebp - 0x320]
mov dword [ebp - 4], 0
call fcn.00402710
cmp dword [ebp - 0x264], 0x10
lea eax, [ebp - 0x278]
push 0
push dword [ebp - 0x268]
cmovae eax, dword [ebp - 0x278]
lea ecx, [ebp - 0x320]
push eax
mov byte [ebp - 4], 1
call fcn.00405440
push str.host_type
lea ecx, [ebp - 0x320]
call fcn.00405890
test eax, eax
jne 0x40a09f
xor edx, edx
jmp 0x40a0a2
lea edx, [eax + 0x3a]
mov ecx, edx
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a0c2
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x260]
call fcn.00408cd0
push str.header
lea ecx, [ebp - 0x320]
mov byte [ebp - 4], 2
call fcn.00405890
test eax, eax
je 0x40a144
add eax, 0x3a
je 0x40a144
cmp dword [eax], 0x10080
jne 0x40a144
cmp dword [ebp - 0x24c], 0x10
lea eax, [ebp - 0x260]
push 7
cmovae eax, dword [ebp - 0x260]
push str.pendant
push dword [ebp - 0x250]
push eax
call fcn.00401d80
add esp, 0x10
test al, al
je 0x40a186
sub esp, 0x68
lea eax, [ebp - 0x320]
mov ecx, esp
push eax
call fcn.004025c0
call fcn.00406fe0
add esp, 0x68
lea ecx, [ebp - 0x260]
call fcn.00403010
lea ecx, [ebp - 0x320]
call fcn.00403370
lea ecx, [ebp - 0x278]
call fcn.00403010
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417bfe
mov esp, ebp
pop ebp
ret
call fcn.00413ef0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40a265
push 0x51
push str.d:jenkins.jenkinsworkspacepcjiami_srvhosthalosrvhost_srvhost_birdsrvhost.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.00408cd0
push 3
push 0x436f34
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.00408cd0
mov byte [ebp - 4], 4
call fcn.00413ef0
mov edi, eax
lea ecx, [ebp - 0x5ac]
push 0x86
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00402340
mov esi, eax
push str.Process_started.
push esi
mov byte [ebp - 4], 5
call fcn.004036c0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x5ac]
call fcn.00403a50
lea ecx, [ebp - 0x230]
call fcn.00403010
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
call fcn.00403010
push 0x436f4c
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x320]
call fcn.00405650
cmp dword [ebp - 0x294], 8
lea eax, [ebp - 0x2a8]
mov esi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
cmovae eax, dword [ebp - 0x2a8]
push eax
push 0
push 0x100001
call esi
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 0x4b1], 0
lea eax, [ebp - 0x4c0]
mov byte [ebp - 4], 7
push eax
call fcn.0041114d
lea eax, [ebp - 0x4c0]
mov dword [ebp - 0x504], eax
lea eax, [ebp - 0x4b1]
mov dword [ebp - 0x500], eax
lea eax, [ebp - 0x504]
push eax
push 0x401840
push 0x44ad50
call fcn.00411e35
add esp, 0x10
test eax, eax
je 0x40a7d1
lea eax, [ebp - 0x4c0]
mov byte [ebp - 4], 9
push eax
call fcn.00411187
mov ecx, dword [0x44ad4c]
add esp, 4
mov byte [ebp - 4], 6
call fcn.0040b4f0
lea eax, [ebp - 0x4b0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x436f50
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x320]
call fcn.00405650
cmp dword [ebp - 0x27c], 8
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 0xc
cmovae eax, dword [ebp - 0x290]
push eax
push 0
push 0x100001
call esi
mov dword [ebp - 0x4b8], eax
call fcn.00413ef0
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x40a447
push 0x51
mov dword [ebp - 0x220], ecx
mov byte [ebp - 0x230], cl
lea ecx, [ebp - 0x230]
push str.d:jenkins.jenkinsworkspacepcjiami_srvhosthalosrvhost_srvhost_birdsrvhost.cpp
mov dword [ebp - 0x21c], 0xf
call fcn.00408cd0
push 3
push 0x436f34
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.00408cd0
mov byte [ebp - 4], 0xe
call fcn.00413ef0
mov edi, eax
lea ecx, [ebp - 0x5ac]
push 0x95
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00402340
mov esi, eax
push str.Process_connection_ready.
push esi
mov byte [ebp - 4], 0xf
call fcn.004013f0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x5ac]
call fcn.00403a50
lea ecx, [ebp - 0x248]
call fcn.00403010
lea ecx, [ebp - 0x230]
call fcn.00403010
xorps xmm0, xmm0
mov dword [ebp - 0x4fc], 0x436ae0
movups xmmword [ebp - 0x4f8], xmm0
mov dword [ebp - 0x4e8], 0
mov dword [ebp - 0x4e4], 0
mov ebx, dword [0x44acf8]
add ebx, 0x10
mov byte [ebp - 4], 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x44acec]
mov edi, eax
push 4
mov ecx, dword [esi + 8]
inc ecx
push ecx
push dword [esi]
call fcn.0041c5d5
add esp, 0xc
test eax, eax
je 0x40a4e5
mov dword [esi], eax
mov eax, dword [esi + 8]
push 4
inc eax
push eax
push dword [esi + 4]
call fcn.0041c5d5
add esp, 0xc
test eax, eax
je 0x40a4e5
mov ecx, dword [esi + 8]
mov dword [esi + 4], eax
lea edx, [ecx*4]
mov ecx, dword [esi]
add ecx, edx
je 0x40a4d6
mov dword [ecx], edi
mov eax, dword [esi + 4]
add eax, edx
je 0x40a4e2
lea ecx, [ebp - 0x4fc]
mov dword [eax], ecx
inc dword [esi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 0x4b8]
lea ecx, [ebp - 0x638]
call fcn.0040bec0
push dword [ebp - 0x4c4]
movaps xmm0, xmmword [0x436fe0]
lea eax, [ebp - 0x618]
push eax
push 0x449068
push 0x449028
push 0x44adac
mov byte [ebp - 4], 0x11
movups xmmword [ebp - 0x2b8], xmm0
call fcn.004016a0
add esp, 0x14
movzx eax, ax
lea ecx, [ebp - 0x638]
push 0
push eax
push 0
push 0x40000
push 0xcf0000
push 0x435674
lea eax, [ebp - 0x2b8]
push eax
push 0
call fcn.00404f20
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, 1
xor esi, esi
nop dword [eax + eax]
test ebx, ebx
je 0x40a5a0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x4e0]
push eax
call edi
test eax, eax
jne 0x40a5a0
mov eax, dword [ebp - 0x4fc]
lea ecx, [ebp - 0x4fc]
push esi
call dword [eax + 4]
inc esi
test eax, eax
jne 0x40a574
xor ebx, ebx
push 0
push 0
push 0
lea eax, [ebp - 0x4e0]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x40a570
test eax, eax
je 0x40a636
lea eax, [ebp - 0x4e0]
push eax
mov eax, dword [ebp - 0x4fc]
lea ecx, [ebp - 0x4fc]
call dword [eax]
test eax, eax
jne 0x40a5ef
lea eax, [ebp - 0x4e0]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x4e0]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0x4dc]
cmp eax, 0x118
ja 0x40a60a
je 0x40a626
cmp eax, 0xf
je 0x40a626
cmp eax, 0xa0
jmp 0x40a60f
cmp eax, 0x200
je 0x40a626
mov ecx, 1
xor eax, eax
test ecx, ecx
mov ebx, ecx
cmove eax, esi
mov esi, eax
jmp 0x40a570
xor ecx, ecx
xor eax, eax
test ecx, ecx
cmove eax, esi
mov esi, eax
jmp 0x40a570
mov ecx, 0x44acb8
call fcn.004072f0
push dword [ebp - 0x4c4]
call sub.gdiplus.dll_GdiplusShutdown
call fcn.00413ef0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40a726
push 0x51
push str.d:jenkins.jenkinsworkspacepcjiami_srvhosthalosrvhost_srvhost_birdsrvhost.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.00408cd0
push 3
push 0x436f34
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.00408cd0
mov byte [ebp - 4], 0x13
call fcn.00413ef0
mov edi, eax
lea ecx, [ebp - 0x5ac]
push 0xa3
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00402340
mov esi, eax
push str.Process_gone.
push esi
mov byte [ebp - 4], 0x14
call fcn.004013f0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x5ac]
call fcn.00403a50
lea ecx, [ebp - 0x248]
call fcn.00403010
lea ecx, [ebp - 0x230]
call fcn.00403010
lea ecx, [ebp - 0x638]
call fcn.0040bfb0
mov eax, dword [ebp - 0x4ec]
test eax, eax
je 0x40a74e
push eax
call fcn.0041c5c5
add esp, 4
mov dword [ebp - 0x4ec], 0
mov eax, dword [ebp - 0x4f8]
mov dword [ebp - 0x4e8], 0
mov dword [ebp - 0x4e4], 0
test eax, eax
je 0x40a77f
push eax
call fcn.0041c5c5
add esp, 4
mov dword [ebp - 0x4f8], 0
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x4f4], 0
mov dword [ebp - 0x4f0], 0
call fcn.00403060
lea ecx, [ebp - 0x2a8]
call fcn.00403060
lea ecx, [ebp - 0x260]
call fcn.00403010
lea ecx, [ebp - 0x320]
call fcn.00403370
lea ecx, [ebp - 0x278]
call fcn.00403010
xor eax, eax
jmp 0x40a16a
lea eax, [ebp - 0x4c0]
mov byte [ebp - 4], 0xa
push eax
call fcn.004111a8
add esp, 4
mov byte [ebp - 4], 8
test al, al
jne 0x40a7f1
call fcn.00411e73
sub esp, 8
lea eax, [ebp - 0x4c0]
mov ecx, esp
push eax
call fcn.00402b50
call fcn.004097d0
int3