Function at 0x479083
Capabilities:
Check for time delay via gettickcount
Check mutex on windows
Connect pipe
Create mailslot
Create pipe
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x128
mov dword [ebp + 0x4c], ecx
push edi
lea ecx, [ebp + 0x78]
call fcn.0043b515
xor edi, edi
cmp dword [0x4c920c], edi
jne 0x4790ac
xor eax, eax
inc eax
jmp 0x47a3a5
push ebx
push esi
lea ecx, [ebp + 0x78]
call fcn.0043b739
lea ecx, [ebp + 8]
call fcn.0043fd9a
lea ecx, [ebp - 0x40]
call fcn.0043fd9a
lea ecx, [ebp - 0x48]
call fcn.0043fd9a
lea ecx, [ebp - 0x44]
call fcn.0043fd9a
push 2
pop ebx
lea eax, [ebp + 0x78]
push eax
mov dword [ebp + 0x68], edi
mov dword [ebp + 0x3c], ebx
mov dword [ebp - 8], edi
mov dword [ebp + 0x50], 1
mov dword [ebp + 0x10], 6
mov byte [ebp + 0x6f], 0
mov byte [ebp + 0x3a], 0
call fcn.00439c95
mov byte [ebp + 0x63], 0
mov dword [ebp + 0x58], 3
jmp 0x4792cb
cmp word [esi + 2], 0x2d
jne 0x4792d9
push 0xf
push esi
push str.__gethostbyname
call fcn.0043af58
add esp, 0xc
test al, al
je 0x47918d
add esi, 0x1e
xor ecx, ecx
mov dword [ebp + 0x78], esi
mov cx, word [esi]
cmp cx, di
je 0x47914b
mov eax, ecx
call fcn.0040ea2b
test al, al
je 0x47917a
mov byte [ebp + 0x63], 1
jmp 0x47917a
mov eax, ecx
call fcn.0040ea2b
test al, al
jne 0x47917f
cmp cx, 0x2a
jne 0x479168
or byte [ebp + 0x63], 2
jmp 0x479172
cmp cx, 0x23
jne 0x479172
or byte [ebp + 0x63], 4
add esi, ebx
mov dword [ebp + 0x78], esi
mov cx, word [esi]
cmp cx, di
jne 0x479151
lea eax, [ebp + 0x78]
push eax
call fcn.00439c95
jmp 0x4792cb
or esi, 0xffffffff
push esi
lea eax, [ebp + 0x78]
push eax
push str.__file
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x4791ae
mov dword [ebp + 0x50], esi
jmp 0x4792cc
push esi
lea eax, [ebp + 0x78]
push eax
push str.__shm
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x4791d0
mov dword [ebp + 0x50], 0xfffffffe
jmp 0x4792cc
push esi
lea eax, [ebp + 0x78]
push eax
push str.__event
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x4791f2
mov dword [ebp + 0x50], 0xfffffffc
jmp 0x4792cc
push esi
lea eax, [ebp + 0x78]
push eax
push str.__semaphore
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x479214
mov dword [ebp + 0x50], 0xffffffe0
jmp 0x4792cc
push esi
lea eax, [ebp + 0x78]
push eax
push str.__sem
call fcn.00441bc4
add esp, 0xc
test al, al
jne 0x479208
push esi
lea eax, [ebp + 0x78]
push eax
push str.__mutex
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x47924c
mov dword [ebp + 0x50], 0xffffffc0
jmp 0x4792cc
push esi
lea eax, [ebp + 0x78]
push eax
push str.__mailslot
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x47926b
mov dword [ebp + 0x50], 0xfffffff8
jmp 0x4792cc
push esi
lea eax, [ebp + 0x78]
push eax
push str.__pipe
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x47928a
mov dword [ebp + 0x50], 0xfffffff0
jmp 0x4792cc
push esi
lea eax, [ebp + 0x78]
push eax
push 0x4b98c8
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x4792a6
mov byte [ebp + 0x6f], 1
jmp 0x4792cc
push esi
lea eax, [ebp + 0x78]
push eax
push str.__only
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x4792c2
mov byte [ebp + 0x3a], 1
jmp 0x4792cc
lea eax, [ebp + 0x78]
push eax
call fcn.00405444
pop ecx
mov esi, dword [ebp + 0x78]
cmp word [esi], 0x2d
je 0x479111
cmp word [esi], 0x2a
mov byte [ebp + 0x3b], 0
jne 0x4792f9
lea eax, [ebp + 0x78]
add esi, ebx
push eax
mov byte [ebp + 0x3b], 1
mov dword [ebp + 0x78], esi
call fcn.00439c95
mov esi, dword [ebp + 0x78]
pop ecx
mov eax, dword [ebp + 0x4c]
or dword [ebp + 0x5c], 0xffffffff
cmp word [esi], 0x3a
mov dword [ebp + 0x2c], eax
mov eax, dword [ebp + 0x7c]
mov dword [ebp - 0x3c], eax
mov byte [ebp + 0x4b], 0
mov dword [ebp + 0x54], edi
mov dword [ebp + 0x44], 0x100000
mov dword [ebp + 0x40], 0x80000001
jne 0x479344
cmp word [esi + 2], 0x3a
jne 0x479344
mov eax, dword [0x4c9070]
add esi, 4
mov dword [ebp + 0x78], esi
mov byte [ebp + 0x4b], 1
mov dword [ebp + 0x2c], 0x4c9048
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0043525c
mov esi, dword [ebp + 0x50]
xor bl, bl
cmp esi, 0xfffffffe
jne 0x479396
mov ecx, dword [ebp + 0x78]
mov ax, word [ecx]
and ax, 0xffdf
cmp ax, 0x57
jne 0x47938c
inc bl
inc ecx
inc ecx
mov dword [ebp + 0x78], ecx
jmp 0x47938c
inc ecx
inc ecx
cmp ax, 0x2c
mov dword [ebp + 0x78], ecx
je 0x4793a5
cmp ax, 0x3b
je 0x4793a5
mov ax, word [ecx]
cmp ax, di
jne 0x47937b
jmp 0x4793a5
cmp esi, 0xfffffffc
je 0x4793a5
cmp esi, 0xffffffe0
je 0x4793a5
cmp esi, 0xffffffc0
jne 0x4793db
mov eax, dword [ebp + 0x78]
mov ax, word [eax]
cmp ax, 0x2e
jne 0x4793c0
add dword [ebp + 0x78], 2
push 0xffffffffffffffff
push 0xffffffffffffffff
push str.Local_
jmp 0x4793d3
cmp ax, 0x23
jne 0x4793ca
add dword [ebp + 0x78], 2
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x4b922c
lea ecx, [ebp + 0x54]
call fcn.0043fe55
cmp byte [ebp + 0x63], 0
je 0x479599
lea ecx, [ebp + 0x50]
call fcn.0043fd9a
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0043525c
lea eax, [ebp + 0x50]
push eax
lea ecx, [ebp + 0x5c]
mov dword [ebp + 0x64], 4
xor ebx, ebx
call fcn.00402ce2
lea ecx, [ebp + 0x3c]
call fcn.0043fd9a
mov esi, dword [ebp + 0x5c]
test esi, esi
lea edi, [ebp + 0x2c]
mov dword [ebp + 0x2c], ebx
mov dword [ebp + 0xc], edi
mov byte [ebp + 0x7f], 1
mov dword [ebp + 0x58], ebx
je 0x479482
cmp byte [esi], bl
je 0x47944b
push esi
call dword [0x4c9254]
cmp eax, 0xffffffff
mov dword [ebp + 0x2c], eax
jne 0x479482
and dword [ebp + 0x2c], ebx
push esi
call dword [0x4c9258]
test eax, eax
je 0x479482
mov cx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
mov word [ebp + 0x64], cx
mov dword [ebp + 0x58], eax
je 0x479482
mov cl, byte [ebp + 0x63]
mov byte [ebp + 0x7f], cl
mov eax, dword [eax]
test eax, eax
je 0x47956c
add dword [ebp + 0x58], 4
mov edi, eax
mov dword [ebp + 0xc], edi
test byte [ebp + 0x63], 4
lea ecx, [ebp + 0x3c]
je 0x4794f5
lea eax, [ebx + 0x3e]
push eax
call fcn.0043fddf
mov eax, dword [ebp + 0x3c]
and dword [ebp - 0x7c], 0
and dword [ebp - 0x78], 0
lea eax, [eax + ebx*2]
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x10], eax
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x74]
rep stosd dword es:[edi], eax
movsx eax, word [ebp + 0x64]
cmp eax, 0x20
jbe 0x4794be
push 0x20
pop eax
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x7c]
push eax
call fcn.00413203
push str.0x_08I64X
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push dword [ebp + 0x78]
call fcn.0048c9e0
add esp, 0x1c
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 0x78]
lea eax, [ecx + eax*2]
mov dword [ebp + 0x78], eax
jmp 0x479549
movsx esi, word [ebp + 0x64]
lea eax, [esi + esi*2]
lea eax, [ebx + eax*2]
push eax
call fcn.0043fddf
dec esi
mov eax, dword [ebp + 0x3c]
lea ecx, [eax + ebx*2]
mov dword [ebp + 0x78], ecx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], ecx
js 0x479543
inc esi
movzx eax, byte [edi]
push eax
push 0x4b98b8
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [ebp + 0x78]
inc edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
dec esi
mov ecx, dword [ebp + 0x78]
lea ecx, [ecx + eax*2]
mov dword [ebp + 0x78], ecx
mov eax, ecx
jne 0x479518
dec eax
dec eax
and word [eax], 0
test byte [ebp + 0x7f], 2
je 0x47956c
mov ecx, dword [ebp + 0x58]
cmp dword [ecx], 0
je 0x47956c
mov word [eax], 0x20
sub eax, dword [ebp + 0x10]
inc eax
inc eax
sar eax, 1
add ebx, eax
mov eax, ecx
jmp 0x47946f
push dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x4c]
push dword [ebp + 8]
call fcn.0043f62b
lea ecx, [ebp + 0x3c]
call fcn.00439cfd
lea ecx, [ebp + 0x5c]
call fcn.00439cfd
lea ecx, [ebp + 0x50]
call fcn.00439cfd
xor esi, esi
jmp 0x47a379
cmp esi, 0xffffffff
mov dword [ebp + 0xc], edi
jne 0x479771
mov eax, dword [ebp + 0x78]
mov cx, word [eax]
mov edx, 0xffdf
and cx, dx
push 7
xor esi, esi
cmp cx, 0x57
mov dword [ebp + 0x5c], 0x80000000
pop ebx
jne 0x4795d8
inc eax
inc eax
mov dword [ebp + 0x5c], 0xc0000000
mov dword [ebp + 0x58], 4
mov dword [ebp + 0x78], eax
mov cx, word [eax]
and cx, dx
cmp cx, 0x45
jne 0x4795f0
inc eax
inc eax
mov dword [ebp + 0x58], 3
mov dword [ebp + 0x78], eax
cmp word [eax], 0x2d
jne 0x479600
xor esi, esi
xor ebx, ebx
inc esi
inc eax
inc eax
mov dword [ebp + 0x78], eax
xor ecx, ecx
jmp 0x47963a
inc eax
inc eax
cmp cx, 0x2c
mov dword [ebp + 0x78], eax
je 0x479642
cmp cx, 0x3b
je 0x479642
and ecx, edx
cmp esi, edi
je 0x47963a
cmp cx, 0x52
jne 0x479626
or ebx, 1
jmp 0x47963a
cmp cx, 0x57
jne 0x479631
or ebx, 2
jmp 0x47963a
cmp cx, 0x44
jne 0x47963a
or ebx, 4
mov cx, word [eax]
cmp cx, di
jne 0x479604
lea ecx, [ebp + 0x34]
call fcn.0043fd9a
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x34]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0043525c
push dword [ebp + 0x34]
call fcn.00411f27
mov esi, eax
mov ax, word [esi]
cmp ax, di
pop ecx
jne 0x479695
lea ecx, [ebp + 0x34]
call fcn.00439cfd
cmp byte [ebp + 0x6f], 0
je 0x47a12e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x47968e
inc eax
mov esi, eax
jmp 0x47a379
cmp dword [ebp + 0x58], 3
jne 0x4796ec
cmp ebx, edi
je 0x4796ec
cmp ax, 0x5c
jne 0x4796d6
cmp word [esi + 2], ax
jne 0x4796d6
push edi
push edi
push 3
push edi
push edi
push dword [ebp + 0x5c]
lea ecx, [ebp + 0x64]
push esi
mov dword [ebp + 0x64], edi
call fcn.004054c4
cmp dword [ebp + 0x64], edi
lea ecx, [ebp + 0x64]
jne 0x4796cf
call fcn.00402c5b
jmp 0x479705
call fcn.00402c5b
jmp 0x4796ec
push esi
call fcn.00499f59
and eax, 0x10
and edx, 1
cmp eax, edi
pop ecx
jne 0x479705
cmp edx, 1
jne 0x479705
push edi
push edi
push dword [ebp + 0x58]
lea ecx, [ebp + 0x40]
push edi
push ebx
push dword [ebp + 0x5c]
mov dword [ebp + 0x40], edi
push esi
call fcn.004054c4
mov dword [ebp + 0x68], eax
cmp byte [ebp + 0x6f], 0
je 0x479713
lea ecx, [ebp + 0x34]
jmp 0x479edb
cmp dword [ebp + 0x68], edi
jne 0x479726
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + 0x34]
jmp 0x47a05d
lea ecx, [ebp + 0x34]
call fcn.00439cfd
mov esi, dword [ebp - 0x3c]
test esi, esi
jne 0x47a301
mov al, byte [ebp + 0x4b]
mov esi, dword [ebp + 0x2c]
neg al
sbb eax, eax
and eax, dword [ebp + 0x4c]
push eax
push esi
call fcn.004117b3
mov esi, dword [esi + 0x28]
test esi, esi
pop ecx
pop ecx
jne 0x47a301
cmp dword [ebp + 0x68], esi
je 0x47a12e
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47a12e
cmp esi, 0xfffffffe
jne 0x479b99
test bl, bl
push 4
pop eax
mov dword [ebp + 0x44], 2
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x30], 0x80000000
mov dword [ebp + 0x40], edi
mov dword [ebp], edi
mov dword [ebp + 4], edi
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x20], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp + 0x14], edi
mov dword [ebp + 0x18], edi
je 0x4797c1
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x64], 6
mov dword [ebp + 0x30], 0xc0000000
mov dword [ebp + 0x58], eax
lea ecx, [ebp + 0x24]
call fcn.0043fd9a
lea ecx, [ebp + 0x28]
call fcn.0043fd9a
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0043525c
mov eax, dword [ebp + 0x78]
cmp word [eax], di
je 0x479833
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0044b318
mov eax, dword [ebp + 0x78]
cmp word [eax], di
pop ecx
pop ecx
je 0x479833
mov ecx, dword [ebp + 0x4c]
add dword [ebp + 0x78], 2
push 0x3b
push 0x2c
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0043525c
mov eax, dword [ebp + 0x78]
cmp word [eax], di
je 0x479833
lea eax, [ebp]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0044b318
pop ecx
pop ecx
mov eax, dword [ebp + 0x24]
cmp word [eax], di
je 0x479b89
mov esi, dword [ebp + 0x20]
cmp esi, edi
jl 0x479b89
jg 0x479855
cmp dword [ebp + 0x1c], edi
jb 0x479b89
cmp dword [ebp + 4], edi
jl 0x479b89
jg 0x479869
cmp dword [ebp], edi
jb 0x479b89
mov eax, dword [ebp + 0x78]
cmp word [eax], di
je 0x4798ab
add dword [ebp + 0x78], 2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0040547b
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp + 0x40], eax
jle 0x479894
mov eax, dword [ebp + 0x1c]
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], esi
mov eax, dword [ebp + 0x78]
cmp word [eax], di
je 0x4798ab
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0040547b
pop ecx
pop ecx
or dword [ebp + 0x68], 0xffffffff
and dword [ebp + 0x3c], 0
push str.pecmd2012.shm.
lea ecx, [ebp + 0x54]
call fcn.0043fe06
push dword [ebp + 0x24]
lea ecx, [ebp + 0x54]
call fcn.0043fe06
mov eax, dword [ebp + 0x28]
mov ax, word [eax]
mov si, ax
neg si
push dword [ebp + 0x54]
push 0
push dword [ebp + 0x64]
sbb esi, esi
and esi, 0xfffffff8
add esi, 8
neg ax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
mov dword [ebp + 0x34], eax
add eax, esi
cdq
add dword [ebp + 0x1c], eax
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x28], eax
adc dword [ebp + 0x20], edx
add ebx, dword [ebp]
mov eax, dword [ebp + 0x20]
adc eax, dword [ebp + 4]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x5c], eax
call edi
and dword [ebp + 0x64], 0
cmp byte [ebp + 0x6f], 0
je 0x479944
mov eax, dword [ebp + 0x5c]
lea ecx, [ebp + 0x28]
mov dword [ebp + 0x68], eax
call fcn.00439cfd
lea ecx, [ebp + 0x24]
jmp 0x479edb
cmp dword [ebp + 0x5c], 0
jne 0x479a05
mov eax, dword [ebp + 0x28]
cmp word [eax], 0
je 0x479992
push eax
call fcn.00411f27
pop ecx
xor ecx, ecx
push ecx
push ecx
push dword [ebp + 0x58]
mov dword [ebp - 8], ecx
push ecx
push 7
push dword [ebp + 0x30]
lea ecx, [ebp - 8]
push eax
call fcn.004054c4
test eax, eax
mov dword [ebp + 0x68], eax
jne 0x479992
call edi
lea ecx, [ebp + 0x28]
mov esi, eax
call fcn.00439cfd
lea ecx, [ebp + 0x24]
jmp 0x47a05f
xor eax, eax
mov byte [ebp - 0x5c], 0
and dword [ebp - 0x18], 0
lea edi, [ebp - 0x5b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], 0xc
call fcn.0043c6a1
pop ecx
push dword [ebp + 0x54]
lea eax, [ebp - 0x20]
push ebx
push dword [ebp - 0x30]
push dword [ebp + 0x44]
push eax
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp + 0x5c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x18], 0
mov dword [ebp + 0x64], 1
jg 0x4799fe
jl 0x4799f2
cmp dword [ebp + 0x14], 0
ja 0x4799fe
mov eax, dword [ebp + 0x1c]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp + 0x18], eax
mov ebx, dword [ebp + 0x5c]
test ebx, ebx
je 0x479a2d
push dword [ebp + 0x1c]
mov eax, dword [ebp + 4]
push dword [ebp]
mov ebx, dword [ebp + 0x5c]
push dword [ebp + 4]
sar eax, 0x1f
mov eax, dword [ebp + 0x44]
and eax, 4
or eax, 8
shr eax, 1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp + 0x3c], eax
cmp dword [ebp + 0x68], 0xffffffff
je 0x479a3c
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 0x3c]
xor ecx, ecx
cmp edi, ecx
mov dword [ebp + 0x68], ebx
jne 0x479a63
cmp ebx, ecx
je 0x479a58
cmp ebx, 0xffffffff
je 0x479a58
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x479980
mov ebx, dword [ebp + 0x1c]
sub ebx, dword [ebp - 0x28]
mov eax, dword [ebp + 0x20]
sbb eax, dword [ebp - 0x24]
cmp dword [ebp + 0x64], ecx
je 0x479a7d
cmp esi, ecx
je 0x479a7d
mov dword [edi], ebx
mov dword [edi + 4], eax
add edi, esi
cmp dword [ebp + 0x64], ecx
mov dword [ebp + 0x3c], edi
je 0x479a9e
cmp dword [ebp + 0x34], ecx
je 0x479a9e
push dword [ebp + 0x34]
lea eax, [ebx + edi]
push ecx
push eax
call fcn.0049a7e0
add esp, 0xc
xor ecx, ecx
cmp dword [ebp + 0x64], ecx
mov dword [ebp - 8], ebx
je 0x479b79
cmp dword [ebp + 0x40], ecx
jle 0x479b79
mov eax, dword [ebp + 0x18]
cmp eax, ecx
jl 0x479b79
jg 0x479ac9
cmp dword [ebp + 0x14], ecx
jbe 0x479b79
cmp edi, ecx
je 0x479b79
mov esi, dword [ebp - 0xc]
cmp esi, 1
jb 0x479b0e
ja 0x479ae0
cmp dword [ebp - 0x10], ecx
jb 0x479b0e
push ecx
push 8
push eax
push dword [ebp + 0x14]
call fcn.0049a840
dec eax
js 0x479b79
mov ecx, dword [ebp - 0x10]
mov dword [edi], ecx
mov ecx, eax
and ecx, 0x1fffffff
mov dword [edi + 4], esi
shl ecx, 1
mov esi, edi
add edi, 8
rep movsd dword es:[edi], dword [esi]
jmp 0x479b79
cmp esi, ecx
ja 0x479b1d
mov ebx, dword [ebp - 0x10]
cmp ebx, 0x10000
jb 0x479b36
push ecx
push 4
push eax
push dword [ebp + 0x14]
call fcn.0049a840
dec eax
js 0x479b79
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x10]
rep stosd dword es:[edi], eax
jmp 0x479b79
cmp esi, ecx
ja 0x479b42
cmp ebx, 0x100
jb 0x479b6c
push ecx
push 2
push eax
push dword [ebp + 0x14]
call fcn.0049a840
dec eax
js 0x479b79
lea ecx, [eax + 1]
mov eax, ebx
mov dx, ax
shl edx, 0x10
mov dx, ax
shr ecx, 1
mov eax, edx
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
jmp 0x479b79
push dword [ebp + 0x14]
push ebx
push edi
call fcn.0049a7e0
add esp, 0xc
lea ecx, [ebp + 0x28]
call fcn.00439cfd
lea ecx, [ebp + 0x24]
jmp 0x479729
lea ecx, [ebp + 0x28]
call fcn.00439cfd
lea ecx, [ebp + 0x24]
jmp 0x47a129
cmp esi, 0xfffffffc
jne 0x479cdc
lea ecx, [ebp + 0x30]
call fcn.0043fd9a
lea ecx, [ebp + 0x64]
call fcn.0043fd9a
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0043525c
mov eax, dword [ebp + 0x30]
cmp word [eax], di
jne 0x479bde
lea ecx, [ebp + 0x64]
call fcn.00439cfd
lea ecx, [ebp + 0x30]
jmp 0x47a129
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x78]
push eax
mov dword [ebp + 0x58], edi
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x40], edi
call fcn.0040545b
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0040545b
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0040545b
add esp, 0x18
push str.pecmd2012.event.
lea ecx, [ebp + 0x54]
call fcn.0043fe06
push dword [ebp + 0x30]
lea ecx, [ebp + 0x54]
call fcn.0043fe06
cmp byte [ebp + 0x6f], 0
jne 0x479c34
cmp dword [ebp + 0x58], edi
jne 0x479c62
push dword [ebp + 0x54]
push dword [ebp + 0x40]
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenEventW]
cmp byte [ebp + 0x6f], 0
mov dword [ebp + 0x68], eax
je 0x479c5e
lea ecx, [ebp + 0x64]
call fcn.00439cfd
lea ecx, [ebp + 0x30]
jmp 0x479edb
cmp eax, edi
jne 0x479ccc
xor eax, eax
mov byte [ebp - 0x5c], 0
lea edi, [ebp - 0x5b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
xor esi, esi
push eax
mov dword [ebp - 0x20], 0xc
mov dword [ebp - 0x18], esi
call fcn.0043c6a1
xor eax, eax
cmp dword [ebp + 0x58], esi
pop ecx
push dword [ebp + 0x54]
setne al
push eax
xor eax, eax
cmp dword [ebp + 0x5c], esi
setne al
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
mov dword [ebp + 0x68], eax
jne 0x479ccc
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + 0x64]
mov esi, eax
call fcn.00439cfd
lea ecx, [ebp + 0x30]
jmp 0x47a05f
lea ecx, [ebp + 0x64]
call fcn.00439cfd
lea ecx, [ebp + 0x30]
jmp 0x479729
cmp esi, 0xffffffe0
jne 0x479e49
lea ecx, [ebp + 0x44]
call fcn.0043fd9a
lea ecx, [ebp + 0x64]
call fcn.0043fd9a
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0043525c
mov eax, dword [ebp + 0x44]
cmp word [eax], di
jne 0x479d21
lea ecx, [ebp + 0x64]
call fcn.00439cfd
lea ecx, [ebp + 0x44]
jmp 0x47a129
lea eax, [ebp + 0x58]
push eax
xor ebx, ebx
lea eax, [ebp + 0x78]
inc ebx
push eax
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x5c], edi
call fcn.0040545b
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0040545b
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0040545b
mov esi, dword [ebp + 0x40]
add esp, 0x18
cmp esi, ebx
jge 0x479d60
mov esi, ebx
mov ebx, dword [ebp + 0x58]
cmp ebx, esi
jle 0x479d69
mov ebx, esi
push str.pecmd2012.semaphore.
lea ecx, [ebp + 0x54]
call fcn.0043fe06
push dword [ebp + 0x44]
lea ecx, [ebp + 0x54]
call fcn.0043fe06
push dword [ebp + 0x54]
push edi
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
cmp byte [ebp + 0x6f], 0
mov dword [ebp + 0x68], eax
je 0x479da9
lea ecx, [ebp + 0x64]
call fcn.00439cfd
lea ecx, [ebp + 0x44]
jmp 0x479edb
cmp eax, edi
jne 0x479e39
xor eax, eax
mov byte [ebp - 0x90], 0
and dword [ebp - 0x24], 0
lea edi, [ebp - 0x8f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x90]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 0xc
call fcn.0043c6a1
test ebx, ebx
pop ecx
jge 0x479ded
xor ebx, ebx
test ebx, ebx
jle 0x479df3
mov eax, ebx
jmp 0x479df6
xor eax, eax
inc eax
push dword [ebp + 0x54]
push esi
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [ebp + 0x68], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x68], 0
mov esi, eax
mov dword [ebp + 0xc], esi
jne 0x479e29
lea ecx, [ebp + 0x64]
call fcn.00439cfd
lea ecx, [ebp + 0x44]
jmp 0x47a05f
cmp ebx, 1
jge 0x479e39
push 0xffffffffffffffff
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp + 0x64]
call fcn.00439cfd
lea ecx, [ebp + 0x44]
jmp 0x479729
cmp esi, 0xffffffc0
jne 0x479f6f
lea ecx, [ebp + 0x5c]
call fcn.0043fd9a
lea ecx, [ebp + 0x58]
call fcn.0043fd9a
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0043525c
mov eax, dword [ebp + 0x5c]
cmp word [eax], di
jne 0x479e8e
lea ecx, [ebp + 0x58]
call fcn.00439cfd
lea ecx, [ebp + 0x5c]
jmp 0x47a129
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x78]
push eax
mov dword [ebp + 0x64], edi
call fcn.0040545b
pop ecx
pop ecx
push str.pecmd2012.mutex.
lea ecx, [ebp + 0x54]
call fcn.0043fe06
push dword [ebp + 0x5c]
lea ecx, [ebp + 0x54]
call fcn.0043fe06
push dword [ebp + 0x54]
push edi
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
cmp byte [ebp + 0x6f], 0
mov dword [ebp + 0x68], eax
je 0x479ee5
lea ecx, [ebp + 0x58]
call fcn.00439cfd
lea ecx, [ebp + 0x5c]
call fcn.00439cfd
jmp 0x47a1d2
cmp eax, edi
jne 0x479f5f
xor eax, eax
mov byte [ebp - 0xb8], 0
lea edi, [ebp - 0xb7]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
xor edi, edi
push eax
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0xc], edi
call fcn.0043c6a1
cmp dword [ebp + 0x64], edi
pop ecx
jge 0x479f26
mov dword [ebp + 0x64], edi
push dword [ebp + 0x54]
xor eax, eax
cmp dword [ebp + 0x64], edi
setg al
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp + 0x68], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x68], edi
mov esi, eax
mov dword [ebp + 0xc], esi
jne 0x479f5f
lea ecx, [ebp + 0x58]
call fcn.00439cfd
lea ecx, [ebp + 0x5c]
jmp 0x47a05f
lea ecx, [ebp + 0x58]
call fcn.00439cfd
lea ecx, [ebp + 0x5c]
jmp 0x479729
cmp esi, 0xfffffff8
jne 0x47a0e9
lea ecx, [ebp + 0x58]
call fcn.0043fd9a
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0043525c
mov eax, dword [ebp + 0x58]
cmp word [eax], di
jne 0x479fa4
lea ecx, [ebp + 0x58]
jmp 0x47a129
or dword [ebp + 0x5c], 0xffffffff
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x78]
push eax
mov dword [ebp + 0x64], edi
call fcn.0040545b
cmp dword [ebp + 0x64], edi
pop ecx
pop ecx
jne 0x479fc2
mov dword [ebp + 0x5c], edi
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0040545b
pop ecx
pop ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push str..mailslotpecmd2012.mailslot.
lea ecx, [ebp + 0x54]
call fcn.0043fe55
push dword [ebp + 0x58]
lea ecx, [ebp + 0x54]
call fcn.0043fe06
xor eax, eax
mov byte [ebp - 0xa4], 0
lea edi, [ebp - 0xa3]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
xor esi, esi
push eax
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x30], esi
call fcn.0043c6a1
cmp byte [ebp + 0x6f], 0
pop ecx
jne 0x47a069
cmp dword [ebp + 0x64], esi
je 0x47a069
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0x5c]
push esi
push dword [ebp + 0x54]
call dword [sym.imp.KERNEL32.dll_CreateMailslotW]
cmp eax, 0xffffffff
mov dword [ebp + 0x68], eax
jne 0x47a04a
and dword [ebp + 0x68], 0
cmp dword [ebp + 0x68], 0
jne 0x47a0e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + 0x58]
mov esi, eax
call fcn.00439cfd
jmp 0x47a379
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov ebx, 0x80
push ebx
push 3
mov dword [ebp + 0x40], eax
lea eax, [ebp - 0x38]
push eax
push 1
mov edi, 0x40000000
push edi
push dword [ebp + 0x54]
call esi
cmp byte [ebp + 0x6f], 0
mov dword [ebp + 0x68], eax
jne 0x47a0d4
cmp dword [ebp + 0x68], 0xffffffff
jne 0x47a04a
cmp dword [ebp + 0x5c], 0xffffffff
je 0x47a0b6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0x40]
cmp eax, dword [ebp + 0x5c]
jae 0x47a046
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push ebx
push 3
lea eax, [ebp - 0x38]
push eax
push 1
push edi
push dword [ebp + 0x54]
call esi
mov dword [ebp + 0x68], eax
jmp 0x47a09c
lea ecx, [ebp + 0x58]
call fcn.00439cfd
jmp 0x47a1c8
lea ecx, [ebp + 0x58]
jmp 0x479729
cmp esi, 0xfffffff0
jne 0x47a294
lea ecx, [ebp + 0x64]
call fcn.0043fd9a
lea ecx, [ebp + 0x58]
call fcn.0043fd9a
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0043525c
mov eax, dword [ebp + 0x64]
cmp word [eax], di
jne 0x47a138
lea ecx, [ebp + 0x58]
call fcn.00439cfd
lea ecx, [ebp + 0x64]
call fcn.00439cfd
mov esi, 0x80070057
jmp 0x47a379
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0040545b
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0040545b
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0040545b
add esp, 0x18
push 0xffffffffffffffff
push 0xffffffffffffffff
push str..pipepecmd2012.pipe.
lea ecx, [ebp + 0x54]
call fcn.0043fe55
push dword [ebp + 0x64]
lea ecx, [ebp + 0x54]
call fcn.0043fe06
or dword [ebp + 0x68], 0xffffffff
cmp byte [ebp + 0x6f], 0
je 0x47a18c
xor ebx, ebx
jmp 0x47a18f
mov ebx, dword [ebp + 0x40]
lea ecx, [ebp + 0x58]
call fcn.00439cfd
lea ecx, [ebp + 0x64]
call fcn.00439cfd
test bl, 4
jne 0x47a1ec
mov eax, ebx
and eax, 3
sub al, 3
neg al
sbb eax, eax
inc eax
push eax
push dword [ebp + 0x5c]
push dword [ebp + 0x54]
call fcn.0043c6c0
add esp, 0xc
cmp byte [ebp + 0x6f], 0
mov dword [ebp + 0x68], eax
je 0x47a1ec
cmp dword [ebp + 0x68], 0xffffffff
jne 0x47a1d2
and dword [ebp + 0x68], 0
cmp dword [ebp + 0x68], 0
je 0x479683
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x47968e
xor eax, eax
mov byte [ebp - 0x70], 0
and dword [ebp + 4], 0
lea edi, [ebp - 0x6f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x70]
mov dword [ebp], eax
lea eax, [ebp]
push eax
mov dword [ebp - 4], 0xc
call fcn.0043c6a1
test bl, 2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
pop ecx
jne 0x47a26f
cmp dword [ebp + 0x68], 0xffffffff
jne 0x47972e
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x5c]
push dword [ebp + 0x44]
push dword [ebp + 0x44]
push 0xff
push 0
push 3
push dword [ebp + 0x54]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
test bl, 1
mov dword [ebp + 0x68], eax
je 0x47a262
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x47a262
call esi
cmp dword [ebp + 0x68], 0xffffffff
je 0x47a275
mov dword [ebp + 0x50], 0xffffffef
cmp dword [ebp + 0x68], 0xffffffff
jne 0x47a279
and dword [ebp + 0x68], 0
cmp dword [ebp + 0x50], 0xfffffff0
je 0x47972e
cmp dword [ebp + 0x68], 0
jne 0x47972e
call esi
jmp 0x47968e
mov eax, dword [ebp + 0x78]
cmp word [eax], di
je 0x47a2e4
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0044b46e
mov eax, dword [ebp + 0x78]
cmp word [eax], di
pop ecx
pop ecx
je 0x47a2e4
add dword [ebp + 0x78], 2
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0044b46e
mov eax, dword [ebp + 0x78]
cmp word [eax], di
pop ecx
pop ecx
je 0x47a2e1
add dword [ebp + 0x78], 2
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0044b46e
pop ecx
pop ecx
mov esi, dword [ebp + 0x50]
push dword [ebp + 0x10]
push esi
push dword [ebp + 0x3c]
call dword [0x4c920c]
cmp eax, edi
mov dword [ebp + 0x68], eax
jg 0x47972e
xor esi, esi
inc esi
jmp 0x47a379
cmp byte [ebp + 0x4b], 0
jne 0x47a315
cmp byte [ebp + 0x3b], 0
jne 0x47a315
mov edi, dword [esi + 0x150]
jmp 0x47a318
mov edi, dword [ebp + 0x2c]
cmp byte [ebp + 0x3a], 0
je 0x47a35b
push 0x4b981c
lea ecx, [ebp + 0x4c]
call fcn.00448399
push dword [ebp + 8]
lea ecx, [ebp + 0x4c]
call fcn.0043fe06
push 0x4b980c
lea ecx, [ebp + 0x4c]
call fcn.0043fe06
push dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x2c]
push 0
push dword [ebp + 0x4c]
call fcn.0047148c
lea ecx, [ebp + 0x4c]
call fcn.00439cfd
push dword [ebp - 8]
lea eax, [ebp + 8]
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0x50]
push dword [ebp + 0x3c]
push dword [ebp + 0x68]
push eax
push edi
call fcn.0044033e
mov esi, dword [ebp + 0xc]
lea ecx, [ebp + 0x54]
call fcn.00439cfd
lea ecx, [ebp - 0x44]
call fcn.00439cfd
lea ecx, [ebp - 0x48]
call fcn.00439cfd
lea ecx, [ebp - 0x40]
call fcn.00439cfd
lea ecx, [ebp + 8]
call fcn.00439cfd
mov eax, esi
pop esi
pop ebx
pop edi
add ebp, 0x70
leave
ret 8