Function at 0x40d140
Capabilities:
Check if file exists
Connect pipe
Read pipe
Stop service
Write pipe

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x631049
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd8
mov eax, dword [0x6ce488]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 0x5b4]
cmp dword [eax - 0xc], 0
je 0x40dc43
add eax, 0xfffffff0
push eax
call fcn.00401b80
add esp, 4
lea edi, [eax + 0x10]
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
call fcn.00483790
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x40d1e3
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00417970
push 1
push 0x6a2f8c
lea ecx, [ebp - 0x20]
call fcn.00417970
mov edi, dword [ebp - 0x20]
call fcn.004021b0
mov ecx, eax
test ecx, ecx
je 0x40dc61
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
push 0x6a0a88
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 2
call fcn.00402ab0
lea ecx, [ebp - 0x84]
push ecx
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx]
call eax
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x40d22e
mov eax, dword [eax]
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x64]
call fcn.00411d40
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [esi - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x1c], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x6c], eax
cmp eax, ecx
je 0x40d2a1
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x40d292
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x40d292
push dword [ebp - 0x6c]
call fcn.00401b80
add esp, 4
mov dword [ebp - 0x6c], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x40d28a
mov esi, dword [ebp - 0x1c]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x6c]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
jmp 0x40d2a1
push dword [edx - 0xc]
lea ecx, [ebp - 0x18]
push edx
call fcn.00401e40
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x64]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d2c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
call fcn.00402f20
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d4a1
push 0x1d
push str._action_:_exit___params_:
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.00417150
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
push 0
push 0x200
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 6
call fcn.004169b0
push 0x2a
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xbc], 0x6a2d3c
push 0
push eax
call fcn.005feb40
mov eax, 0x1e451a06
add esp, 0xc
mov dword [ebp - 0x8c], eax
xor edx, edx
nop
mov ecx, edx
and ecx, 3
sar eax, cl
xor al, byte [edx + str..pipee985eb35bca890d841971794e2c18c10]
mov byte [ebp + edx - 0xb8], al
inc edx
cmp edx, 0x2a
jae 0x40d372
mov eax, dword [ebp - 0x8c]
jmp 0x40d350
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0xbc]
lea ecx, [ebp - 0xbc]
mov eax, dword [eax]
call eax
cmp dword [ebp - 0x4c], 0x10
lea edx, [ebp - 0x44]
mov ecx, eax
lea eax, [ebp - 0x60]
cmovae eax, dword [ebp - 0x60]
cmp dword [ebp - 0x30], 0x10
cmovae edx, dword [ebp - 0x44]
cmp dword [ecx + 0x14], 0x10
jb 0x40d3a9
mov ecx, dword [ecx]
push 0x1388
lea edi, [ebp - 0x1c]
push edi
push 0x200
push eax
mov eax, dword [ebp - 0x34]
inc eax
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
mov edx, dword [ebp - 0x70]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x64], eax
cmp edx, 0x10
jb 0x40d405
mov ecx, dword [ebp - 0x84]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d3f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc6b
push edx
push ecx
call fcn.005c385c
mov eax, dword [ebp - 0x64]
add esp, 8
mov dword [ebp - 0x74], 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x70], 0xf
mov byte [ebp - 0x84], 0
push 0
test eax, eax
je 0x40d42a
mov eax, dword [ebp - 0x1c]
dec eax
push eax
jmp 0x40d42c
push 0
call fcn.004169b0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x40d469
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d45f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc70
push edx
push ecx
call fcn.005c385c
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x40d4a1
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d497
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc75
push edx
push ecx
call fcn.005c385c
add esp, 8
push str.GSoInputUpdateSvr
lea ecx, [ebp - 0xd8]
call fcn.004133d0
lea ecx, [ebp - 0x84]
push ecx
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx]
call eax
cmp dword [eax + 0x14], 8
jb 0x40d4c8
mov eax, dword [eax]
mov ecx, eax
call fcn.00480fa0
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x64], eax
call fcn.00402f20
cmp dword [ebp - 0x64], 0
je 0x40d595
push str.GSoInputUpdateSvr
lea ecx, [ebp - 0xd8]
call fcn.004133d0
lea ecx, [ebp - 0x84]
push ecx
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x6c], eax
cmp dword [eax + 0x14], 8
jb 0x40d514
mov eax, dword [eax]
mov dword [ebp - 0x6c], eax
push 0xf003f
push 0x6acdd4
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40d57f
push 0xf01ff
push dword [ebp - 0x6c]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x64], eax
test eax, eax
je 0x40d576
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], 0
push ecx
xorps xmm0, xmm0
push 1
push eax
movups xmmword [ebp - 0x48], xmm0
movq qword [ebp - 0x38], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40d56d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp - 0x84]
call fcn.00402f20
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.00412af0
mov dword [ebp - 0x28], eax
push ecx
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 7
call fcn.00413c40
lea ecx, [ebp - 0x84]
push ecx
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx]
call eax
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 8
jb 0x40d5de
mov eax, dword [eax]
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x6c]
call fcn.00411d40
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [esi - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x1c], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x64], eax
cmp eax, ecx
je 0x40d651
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x40d642
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x40d642
push dword [ebp - 0x64]
call fcn.00401b80
add esp, 4
mov dword [ebp - 0x64], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x40d63a
mov esi, dword [ebp - 0x1c]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x64]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
jmp 0x40d651
push dword [edx - 0xc]
lea ecx, [ebp - 0x18]
push edx
call fcn.00401e40
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 8
or eax, 0xffffffff
mov edx, dword [ebp - 0x6c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d670
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 7
call fcn.00402f20
mov ecx, esi
mov dword [ebp - 0x74], 0
xor eax, eax
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d6a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x84]
call fcn.00416b00
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x84]
push dword [ebp - 0x64]
push eax
push ecx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x28]
call fcn.00414100
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 7
call fcn.00402f20
push str.transferCon.exe
lea ecx, [ebp - 0xd0]
call fcn.004135f0
lea ecx, [ebp - 0x84]
push ecx
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx]
call eax
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 8
jb 0x40d711
mov eax, dword [eax]
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x6c]
call fcn.00411d40
add esp, 4
mov byte [ebp - 4], 0xc
lea ecx, [esi - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x1c], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x64], eax
cmp eax, ecx
je 0x40d784
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x40d775
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x40d775
push dword [ebp - 0x64]
call fcn.00401b80
add esp, 4
mov dword [ebp - 0x64], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x40d76d
mov esi, dword [ebp - 0x1c]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x64]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
jmp 0x40d784
push dword [edx - 0xc]
lea ecx, [ebp - 0x18]
push edx
call fcn.00401e40
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 0xb
or eax, 0xffffffff
mov edx, dword [ebp - 0x6c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d7a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 7
call fcn.00402f20
mov ecx, esi
mov dword [ebp - 0x74], 0
xor eax, eax
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d7d0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x84]
call fcn.00416b00
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x84]
push dword [ebp - 0x64]
push eax
push ecx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x28]
call fcn.00414100
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 7
call fcn.00402f20
push str.uninst.exe
lea ecx, [ebp - 0xbc]
call fcn.004134e0
lea ecx, [ebp - 0x84]
push ecx
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx]
call eax
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x14], 8
jb 0x40d841
mov eax, dword [eax]
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x6c]
call fcn.00411d40
add esp, 4
mov byte [ebp - 4], 0xf
lea ecx, [esi - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x1c], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x64], eax
cmp eax, ecx
je 0x40d8b4
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x40d8a5
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x40d8a5
push dword [ebp - 0x64]
call fcn.00401b80
add esp, 4
mov dword [ebp - 0x64], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x40d89d
mov esi, dword [ebp - 0x1c]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x64]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
jmp 0x40d8b4
push dword [edx - 0xc]
lea ecx, [ebp - 0x18]
push edx
call fcn.00401e40
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 0xe
or eax, 0xffffffff
mov edx, dword [ebp - 0x6c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d8d3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 7
call fcn.00402f20
mov ecx, esi
mov dword [ebp - 0x74], 0
xor eax, eax
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d900
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x84]
call fcn.00416b00
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x84]
push dword [ebp - 0x64]
push eax
push ecx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x28]
call fcn.00414100
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 7
call fcn.00402f20
push 0x6a0a88
lea ecx, [ebp - 0xc0]
call fcn.00402ab0
lea ecx, [ebp - 0x84]
push ecx
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx]
call eax
mov byte [ebp - 4], 0x11
cmp dword [eax + 0x14], 8
jb 0x40d971
mov eax, dword [eax]
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x6c]
call fcn.00411d40
add esp, 4
mov byte [ebp - 4], 0x12
lea ecx, [esi - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x1c], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x64], eax
cmp eax, ecx
je 0x40d9e4
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x40d9d5
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x40d9d5
push dword [ebp - 0x64]
call fcn.00401b80
add esp, 4
mov dword [ebp - 0x64], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x40d9cd
mov esi, dword [ebp - 0x1c]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x64]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
jmp 0x40d9e4
push dword [edx - 0xc]
lea ecx, [ebp - 0x18]
push edx
call fcn.00401e40
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 0x11
or eax, 0xffffffff
mov edx, dword [ebp - 0x6c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40da03
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 7
call fcn.00402f20
mov ecx, esi
mov dword [ebp - 0x74], 0
xor eax, eax
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40da30
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x84]
call fcn.00416b00
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x84]
push dword [ebp - 0x64]
push eax
push ecx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x28]
call fcn.00414100
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 7
call fcn.00402f20
push str.GSoInputUpdateSvr.exe
lea ecx, [ebp - 0xe8]
call fcn.00413b80
lea ecx, [ebp - 0x84]
push ecx
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx]
call eax
mov byte [ebp - 4], 0x14
cmp dword [eax + 0x14], 8
jb 0x40daa1
mov eax, dword [eax]
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x6c]
call fcn.00411d40
add esp, 4
mov byte [ebp - 4], 0x15
lea ecx, [esi - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x1c], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x64], eax
cmp eax, ecx
je 0x40db14
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x40db05
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x40db05
push dword [ebp - 0x64]
call fcn.00401b80
add esp, 4
mov dword [ebp - 0x64], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x40dafd
mov esi, dword [ebp - 0x1c]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x64]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
jmp 0x40db14
push dword [edx - 0xc]
lea ecx, [ebp - 0x18]
push edx
call fcn.00401e40
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 0x14
or eax, 0xffffffff
mov edx, dword [ebp - 0x6c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40db33
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 7
call fcn.00402f20
mov ecx, esi
mov dword [ebp - 0x74], 0
xor eax, eax
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40db60
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x84]
call fcn.00416b00
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x84]
push dword [ebp - 0x64]
push eax
push ecx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x28]
call fcn.00414100
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 7
call fcn.00402f20
lea ecx, [ebp - 0x28]
call fcn.00481d90
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x64], eax
push dword [eax + 4]
call fcn.00412b10
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x64]
push 0x28
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x28]
mov dword [eax], ecx
mov eax, dword [ebp - 0x28]
mov dword [eax + 8], ecx
push dword [ebp - 0x28]
mov dword [ebp - 0x24], 0
call fcn.005c385c
lea edx, [esi - 0x10]
mov byte [ebp - 4], 1
or esi, 0xffffffff
add esp, 8
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40dc09
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40dc27
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x40dc43
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x80004005
call fcn.00401f90
call fcn.00606fc9
call fcn.00606fc9
call fcn.00606fc9
int3