Function at 0x47cf24
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.00439738
xor edi, edi
cmp dword [0x4c1198], edi
jne 0x47cf4d
xor eax, eax
inc eax
jmp 0x47e22f
push ebx
push esi
lea ecx, [ebp + 0x78]
call fcn.0043995c
lea ecx, [ebp + 8]
call fcn.0043dd7e
lea ecx, [ebp - 0x40]
call fcn.0043dd7e
lea ecx, [ebp - 0x48]
call fcn.0043dd7e
lea ecx, [ebp - 0x44]
call fcn.0043dd7e
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.00437e65
mov byte [ebp + 0x63], 0
mov dword [ebp + 0x58], 3
jmp 0x47d16c
cmp word [esi + 2], 0x2d
jne 0x47d17a
push 0xf
push esi
push str.__gethostbyname
call fcn.0043917b
add esp, 0xc
test al, al
je 0x47d02e
add esi, 0x1e
xor ecx, ecx
mov dword [ebp + 0x78], esi
mov cx, word [esi]
cmp cx, di
je 0x47cfec
mov eax, ecx
call fcn.00437e2d
test al, al
je 0x47d01b
mov byte [ebp + 0x63], 1
jmp 0x47d01b
mov eax, ecx
call fcn.00437e2d
test al, al
jne 0x47d020
cmp cx, 0x2a
jne 0x47d009
or byte [ebp + 0x63], 2
jmp 0x47d013
cmp cx, 0x23
jne 0x47d013
or byte [ebp + 0x63], 4
add esi, ebx
mov dword [ebp + 0x78], esi
mov cx, word [esi]
cmp cx, di
jne 0x47cff2
lea eax, [ebp + 0x78]
push eax
call fcn.00437e65
jmp 0x47d16c
or esi, 0xffffffff
push esi
lea eax, [ebp + 0x78]
push eax
push str.__file
call fcn.0043fbfd
add esp, 0xc
test al, al
je 0x47d04f
mov dword [ebp + 0x50], esi
jmp 0x47d16d
push esi
lea eax, [ebp + 0x78]
push eax
push str.__shm
call fcn.0043fbfd
add esp, 0xc
test al, al
je 0x47d071
mov dword [ebp + 0x50], 0xfffffffe
jmp 0x47d16d
push esi
lea eax, [ebp + 0x78]
push eax
push str.__event
call fcn.0043fbfd
add esp, 0xc
test al, al
je 0x47d093
mov dword [ebp + 0x50], 0xfffffffc
jmp 0x47d16d
push esi
lea eax, [ebp + 0x78]
push eax
push str.__semaphore
call fcn.0043fbfd
add esp, 0xc
test al, al
je 0x47d0b5
mov dword [ebp + 0x50], 0xffffffe0
jmp 0x47d16d
push esi
lea eax, [ebp + 0x78]
push eax
push str.__sem
call fcn.0043fbfd
add esp, 0xc
test al, al
jne 0x47d0a9
push esi
lea eax, [ebp + 0x78]
push eax
push str.__mutex
call fcn.0043fbfd
add esp, 0xc
test al, al
je 0x47d0ed
mov dword [ebp + 0x50], 0xffffffc0
jmp 0x47d16d
push esi
lea eax, [ebp + 0x78]
push eax
push str.__mailslot
call fcn.0043fbfd
add esp, 0xc
test al, al
je 0x47d10c
mov dword [ebp + 0x50], 0xfffffff8
jmp 0x47d16d
push esi
lea eax, [ebp + 0x78]
push eax
push str.__pipe
call fcn.0043fbfd
add esp, 0xc
test al, al
je 0x47d12b
mov dword [ebp + 0x50], 0xfffffff0
jmp 0x47d16d
push esi
lea eax, [ebp + 0x78]
push eax
push 0x4b1708
call fcn.0043fbfd
add esp, 0xc
test al, al
je 0x47d147
mov byte [ebp + 0x6f], 1
jmp 0x47d16d
push esi
lea eax, [ebp + 0x78]
push eax
push str.__only
call fcn.0043fbfd
add esp, 0xc
test al, al
je 0x47d163
mov byte [ebp + 0x3a], 1
jmp 0x47d16d
lea eax, [ebp + 0x78]
push eax
call fcn.00405196
pop ecx
mov esi, dword [ebp + 0x78]
cmp word [esi], 0x2d
je 0x47cfb2
cmp word [esi], 0x2a
mov byte [ebp + 0x3b], 0
jne 0x47d19a
lea eax, [ebp + 0x78]
add esi, ebx
push eax
mov byte [ebp + 0x3b], 1
mov dword [ebp + 0x78], esi
call fcn.00437e65
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 0x47d1e5
cmp word [esi + 2], 0x3a
jne 0x47d1e5
mov eax, dword [0x4c0fe0]
add esi, 4
mov dword [ebp + 0x78], esi
mov byte [ebp + 0x4b], 1
mov dword [ebp + 0x2c], 0x4c0fb8
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.00433707
mov esi, dword [ebp + 0x50]
xor bl, bl
cmp esi, 0xfffffffe
jne 0x47d237
mov ecx, dword [ebp + 0x78]
mov ax, word [ecx]
and ax, 0xffdf
cmp ax, 0x57
jne 0x47d22d
inc bl
inc ecx
inc ecx
mov dword [ebp + 0x78], ecx
jmp 0x47d22d
inc ecx
inc ecx
cmp ax, 0x2c
mov dword [ebp + 0x78], ecx
je 0x47d246
cmp ax, 0x3b
je 0x47d246
mov ax, word [ecx]
cmp ax, di
jne 0x47d21c
jmp 0x47d246
cmp esi, 0xfffffffc
je 0x47d246
cmp esi, 0xffffffe0
je 0x47d246
cmp esi, 0xffffffc0
jne 0x47d27c
mov eax, dword [ebp + 0x78]
mov ax, word [eax]
cmp ax, 0x2e
jne 0x47d261
add dword [ebp + 0x78], 2
push 0xffffffffffffffff
push 0xffffffffffffffff
push str.Local_
jmp 0x47d274
cmp ax, 0x23
jne 0x47d26b
add dword [ebp + 0x78], 2
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x4b0fb4
lea ecx, [ebp + 0x54]
call fcn.0043de39
cmp byte [ebp + 0x63], 0
je 0x47d43a
lea ecx, [ebp + 0x50]
call fcn.0043dd7e
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00433707
lea eax, [ebp + 0x50]
push eax
lea ecx, [ebp + 0x5c]
mov dword [ebp + 0x64], 4
xor ebx, ebx
call fcn.00402bbd
lea ecx, [ebp + 0x3c]
call fcn.0043dd7e
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 0x47d323
cmp byte [esi], bl
je 0x47d2ec
push esi
call dword [0x4c11e0]
cmp eax, 0xffffffff
mov dword [ebp + 0x2c], eax
jne 0x47d323
and dword [ebp + 0x2c], ebx
push esi
call dword [0x4c11e4]
test eax, eax
je 0x47d323
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 0x47d323
mov cl, byte [ebp + 0x63]
mov byte [ebp + 0x7f], cl
mov eax, dword [eax]
test eax, eax
je 0x47d40d
add dword [ebp + 0x58], 4
mov edi, eax
mov dword [ebp + 0xc], edi
test byte [ebp + 0x63], 4
lea ecx, [ebp + 0x3c]
je 0x47d396
lea eax, [ebx + 0x3e]
push eax
call fcn.0043ddc3
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 0x47d35f
push 0x20
pop eax
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x7c]
push eax
call fcn.004128b6
push str.0x_08I64X
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push dword [ebp + 0x78]
call fcn.004878ba
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 0x47d3ea
movsx esi, word [ebp + 0x64]
lea eax, [esi + esi*2]
lea eax, [ebx + eax*2]
push eax
call fcn.0043ddc3
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 0x47d3e4
inc esi
movzx eax, byte [edi]
push eax
push 0x4b16f8
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 0x47d3b9
dec eax
dec eax
and word [eax], 0
test byte [ebp + 0x7f], 2
je 0x47d40d
mov ecx, dword [ebp + 0x58]
cmp dword [ecx], 0
je 0x47d40d
mov word [eax], 0x20
sub eax, dword [ebp + 0x10]
inc eax
inc eax
sar eax, 1
add ebx, eax
mov eax, ecx
jmp 0x47d310
push dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x4c]
push dword [ebp + 8]
call fcn.0043d658
lea ecx, [ebp + 0x3c]
call fcn.00437e1a
lea ecx, [ebp + 0x5c]
call fcn.00437e1a
lea ecx, [ebp + 0x50]
call fcn.00437e1a
xor esi, esi
jmp 0x47e203
cmp esi, 0xffffffff
mov dword [ebp + 0xc], edi
jne 0x47d5fb
mov eax, dword [ebp + 0x78]
mov cx, word [eax]
and cx, 0xffdf
push 7
xor edx, edx
cmp cx, 0x57
mov dword [ebp + 0x5c], 0x80000000
pop ebx
jne 0x47d476
inc eax
inc eax
mov dword [ebp + 0x5c], 0xc0000000
mov dword [ebp + 0x58], 4
mov dword [ebp + 0x78], eax
cmp word [eax], 0x2d
jne 0x47d486
xor edx, edx
xor ebx, ebx
inc edx
inc eax
inc eax
mov dword [ebp + 0x78], eax
xor ecx, ecx
jmp 0x47d4c4
inc eax
inc eax
cmp cx, 0x2c
mov dword [ebp + 0x78], eax
je 0x47d4cc
cmp cx, 0x3b
je 0x47d4cc
and ecx, 0xffdf
cmp edx, edi
je 0x47d4c4
cmp cx, 0x52
jne 0x47d4b0
or ebx, 1
jmp 0x47d4c4
cmp cx, 0x57
jne 0x47d4bb
or ebx, 2
jmp 0x47d4c4
cmp cx, 0x44
jne 0x47d4c4
or ebx, 4
mov cx, word [eax]
cmp cx, di
jne 0x47d48a
lea ecx, [ebp + 0x34]
call fcn.0043dd7e
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x34]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00433707
push dword [ebp + 0x34]
call fcn.0041161a
mov esi, eax
mov ax, word [esi]
cmp ax, di
pop ecx
jne 0x47d51f
lea ecx, [ebp + 0x34]
call fcn.00437e1a
cmp byte [ebp + 0x6f], 0
je 0x47dfb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x47d518
inc eax
mov esi, eax
jmp 0x47e203
cmp dword [ebp + 0x58], 3
jne 0x47d576
cmp ebx, edi
je 0x47d576
cmp ax, 0x5c
jne 0x47d560
cmp word [esi + 2], ax
jne 0x47d560
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.004051d2
cmp dword [ebp + 0x64], edi
lea ecx, [ebp + 0x64]
jne 0x47d559
call fcn.00402b5a
jmp 0x47d58f
call fcn.00402b5a
jmp 0x47d576
push esi
call fcn.00492626
and eax, 0x10
and edx, 1
cmp eax, edi
pop ecx
jne 0x47d58f
cmp edx, 1
jne 0x47d58f
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.004051d2
mov dword [ebp + 0x68], eax
cmp byte [ebp + 0x6f], 0
je 0x47d59d
lea ecx, [ebp + 0x34]
jmp 0x47dd65
cmp dword [ebp + 0x68], edi
jne 0x47d5b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + 0x34]
jmp 0x47dee7
lea ecx, [ebp + 0x34]
call fcn.00437e1a
mov esi, dword [ebp - 0x3c]
test esi, esi
jne 0x47e18b
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.00410eb0
mov esi, dword [esi + 0x28]
test esi, esi
pop ecx
pop ecx
jne 0x47e18b
cmp dword [ebp + 0x68], esi
je 0x47dfb8
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47dfb8
cmp esi, 0xfffffffe
jne 0x47da23
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 0x47d64b
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.0043dd7e
lea ecx, [ebp + 0x28]
call fcn.0043dd7e
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00433707
mov eax, dword [ebp + 0x78]
cmp word [eax], di
je 0x47d6bd
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00449426
mov eax, dword [ebp + 0x78]
cmp word [eax], di
pop ecx
pop ecx
je 0x47d6bd
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.00433707
mov eax, dword [ebp + 0x78]
cmp word [eax], di
je 0x47d6bd
lea eax, [ebp]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00449426
pop ecx
pop ecx
mov eax, dword [ebp + 0x24]
cmp word [eax], di
je 0x47da13
mov esi, dword [ebp + 0x20]
cmp esi, edi
jl 0x47da13
jg 0x47d6df
cmp dword [ebp + 0x1c], edi
jb 0x47da13
cmp dword [ebp + 4], edi
jl 0x47da13
jg 0x47d6f3
cmp dword [ebp], edi
jb 0x47da13
mov eax, dword [ebp + 0x78]
cmp word [eax], di
je 0x47d735
add dword [ebp + 0x78], 2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0046fb37
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp + 0x40], eax
jle 0x47d71e
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 0x47d735
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0046fb37
pop ecx
pop ecx
or dword [ebp + 0x68], 0xffffffff
and dword [ebp + 0x3c], 0
push str.pecmd2012.shm.
lea ecx, [ebp + 0x54]
call fcn.0043ddea
push dword [ebp + 0x24]
lea ecx, [ebp + 0x54]
call fcn.0043ddea
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 0x47d7ce
mov eax, dword [ebp + 0x5c]
lea ecx, [ebp + 0x28]
mov dword [ebp + 0x68], eax
call fcn.00437e1a
lea ecx, [ebp + 0x24]
jmp 0x47dd65
cmp dword [ebp + 0x5c], 0
jne 0x47d88f
mov eax, dword [ebp + 0x28]
cmp word [eax], 0
je 0x47d81c
push eax
call fcn.0041161a
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.004051d2
test eax, eax
mov dword [ebp + 0x68], eax
jne 0x47d81c
call edi
lea ecx, [ebp + 0x28]
mov esi, eax
call fcn.00437e1a
lea ecx, [ebp + 0x24]
jmp 0x47dee9
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.0043a99f
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 0x47d888
jl 0x47d87c
cmp dword [ebp + 0x14], 0
ja 0x47d888
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 0x47d8b7
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 0x47d8c6
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 0x47d8ed
cmp ebx, ecx
je 0x47d8e2
cmp ebx, 0xffffffff
je 0x47d8e2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x47d80a
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 0x47d907
cmp esi, ecx
je 0x47d907
mov dword [edi], ebx
mov dword [edi + 4], eax
add edi, esi
cmp dword [ebp + 0x64], ecx
mov dword [ebp + 0x3c], edi
je 0x47d928
cmp dword [ebp + 0x34], ecx
je 0x47d928
push dword [ebp + 0x34]
lea eax, [ebx + edi]
push ecx
push eax
call fcn.00492e00
add esp, 0xc
xor ecx, ecx
cmp dword [ebp + 0x64], ecx
mov dword [ebp - 8], ebx
je 0x47da03
cmp dword [ebp + 0x40], ecx
jle 0x47da03
mov eax, dword [ebp + 0x18]
cmp eax, ecx
jl 0x47da03
jg 0x47d953
cmp dword [ebp + 0x14], ecx
jbe 0x47da03
cmp edi, ecx
je 0x47da03
mov esi, dword [ebp - 0xc]
cmp esi, 1
jb 0x47d998
ja 0x47d96a
cmp dword [ebp - 0x10], ecx
jb 0x47d998
push ecx
push 8
push eax
push dword [ebp + 0x14]
call fcn.00492e60
dec eax
js 0x47da03
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 0x47da03
cmp esi, ecx
ja 0x47d9a7
mov ebx, dword [ebp - 0x10]
cmp ebx, 0x10000
jb 0x47d9c0
push ecx
push 4
push eax
push dword [ebp + 0x14]
call fcn.00492e60
dec eax
js 0x47da03
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x10]
rep stosd dword es:[edi], eax
jmp 0x47da03
cmp esi, ecx
ja 0x47d9cc
cmp ebx, 0x100
jb 0x47d9f6
push ecx
push 2
push eax
push dword [ebp + 0x14]
call fcn.00492e60
dec eax
js 0x47da03
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 0x47da03
push dword [ebp + 0x14]
push ebx
push edi
call fcn.00492e00
add esp, 0xc
lea ecx, [ebp + 0x28]
call fcn.00437e1a
lea ecx, [ebp + 0x24]
jmp 0x47d5b3
lea ecx, [ebp + 0x28]
call fcn.00437e1a
lea ecx, [ebp + 0x24]
jmp 0x47dfb3
cmp esi, 0xfffffffc
jne 0x47db66
lea ecx, [ebp + 0x30]
call fcn.0043dd7e
lea ecx, [ebp + 0x64]
call fcn.0043dd7e
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00433707
mov eax, dword [ebp + 0x30]
cmp word [eax], di
jne 0x47da68
lea ecx, [ebp + 0x64]
call fcn.00437e1a
lea ecx, [ebp + 0x30]
jmp 0x47dfb3
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.004051ad
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.004051ad
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.004051ad
add esp, 0x18
push str.pecmd2012.event.
lea ecx, [ebp + 0x54]
call fcn.0043ddea
push dword [ebp + 0x30]
lea ecx, [ebp + 0x54]
call fcn.0043ddea
cmp byte [ebp + 0x6f], 0
jne 0x47dabe
cmp dword [ebp + 0x58], edi
jne 0x47daec
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 0x47dae8
lea ecx, [ebp + 0x64]
call fcn.00437e1a
lea ecx, [ebp + 0x30]
jmp 0x47dd65
cmp eax, edi
jne 0x47db56
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.0043a99f
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 0x47db56
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + 0x64]
mov esi, eax
call fcn.00437e1a
lea ecx, [ebp + 0x30]
jmp 0x47dee9
lea ecx, [ebp + 0x64]
call fcn.00437e1a
lea ecx, [ebp + 0x30]
jmp 0x47d5b3
cmp esi, 0xffffffe0
jne 0x47dcd3
lea ecx, [ebp + 0x44]
call fcn.0043dd7e
lea ecx, [ebp + 0x64]
call fcn.0043dd7e
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00433707
mov eax, dword [ebp + 0x44]
cmp word [eax], di
jne 0x47dbab
lea ecx, [ebp + 0x64]
call fcn.00437e1a
lea ecx, [ebp + 0x44]
jmp 0x47dfb3
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.004051ad
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.004051ad
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.004051ad
mov esi, dword [ebp + 0x40]
add esp, 0x18
cmp esi, ebx
jge 0x47dbea
mov esi, ebx
mov ebx, dword [ebp + 0x58]
cmp ebx, esi
jle 0x47dbf3
mov ebx, esi
push str.pecmd2012.semaphore.
lea ecx, [ebp + 0x54]
call fcn.0043ddea
push dword [ebp + 0x44]
lea ecx, [ebp + 0x54]
call fcn.0043ddea
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 0x47dc33
lea ecx, [ebp + 0x64]
call fcn.00437e1a
lea ecx, [ebp + 0x44]
jmp 0x47dd65
cmp eax, edi
jne 0x47dcc3
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.0043a99f
test ebx, ebx
pop ecx
jge 0x47dc77
xor ebx, ebx
test ebx, ebx
jle 0x47dc7d
mov eax, ebx
jmp 0x47dc80
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 0x47dcb3
lea ecx, [ebp + 0x64]
call fcn.00437e1a
lea ecx, [ebp + 0x44]
jmp 0x47dee9
cmp ebx, 1
jge 0x47dcc3
push 0xffffffffffffffff
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp + 0x64]
call fcn.00437e1a
lea ecx, [ebp + 0x44]
jmp 0x47d5b3
cmp esi, 0xffffffc0
jne 0x47ddf9
lea ecx, [ebp + 0x5c]
call fcn.0043dd7e
lea ecx, [ebp + 0x58]
call fcn.0043dd7e
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00433707
mov eax, dword [ebp + 0x5c]
cmp word [eax], di
jne 0x47dd18
lea ecx, [ebp + 0x58]
call fcn.00437e1a
lea ecx, [ebp + 0x5c]
jmp 0x47dfb3
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x78]
push eax
mov dword [ebp + 0x64], edi
call fcn.004051ad
pop ecx
pop ecx
push str.pecmd2012.mutex.
lea ecx, [ebp + 0x54]
call fcn.0043ddea
push dword [ebp + 0x5c]
lea ecx, [ebp + 0x54]
call fcn.0043ddea
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 0x47dd6f
lea ecx, [ebp + 0x58]
call fcn.00437e1a
lea ecx, [ebp + 0x5c]
call fcn.00437e1a
jmp 0x47e05c
cmp eax, edi
jne 0x47dde9
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.0043a99f
cmp dword [ebp + 0x64], edi
pop ecx
jge 0x47ddb0
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 0x47dde9
lea ecx, [ebp + 0x58]
call fcn.00437e1a
lea ecx, [ebp + 0x5c]
jmp 0x47dee9
lea ecx, [ebp + 0x58]
call fcn.00437e1a
lea ecx, [ebp + 0x5c]
jmp 0x47d5b3
cmp esi, 0xfffffff8
jne 0x47df73
lea ecx, [ebp + 0x58]
call fcn.0043dd7e
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00433707
mov eax, dword [ebp + 0x58]
cmp word [eax], di
jne 0x47de2e
lea ecx, [ebp + 0x58]
jmp 0x47dfb3
or dword [ebp + 0x5c], 0xffffffff
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x78]
push eax
mov dword [ebp + 0x64], edi
call fcn.004051ad
cmp dword [ebp + 0x64], edi
pop ecx
pop ecx
jne 0x47de4c
mov dword [ebp + 0x5c], edi
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.004051ad
pop ecx
pop ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push str..mailslotpecmd2012.mailslot.
lea ecx, [ebp + 0x54]
call fcn.0043de39
push dword [ebp + 0x58]
lea ecx, [ebp + 0x54]
call fcn.0043ddea
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.0043a99f
cmp byte [ebp + 0x6f], 0
pop ecx
jne 0x47def3
cmp dword [ebp + 0x64], esi
je 0x47def3
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 0x47ded4
and dword [ebp + 0x68], 0
cmp dword [ebp + 0x68], 0
jne 0x47df6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + 0x58]
mov esi, eax
call fcn.00437e1a
jmp 0x47e203
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 0x47df5e
cmp dword [ebp + 0x68], 0xffffffff
jne 0x47ded4
cmp dword [ebp + 0x5c], 0xffffffff
je 0x47df40
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0x40]
cmp eax, dword [ebp + 0x5c]
jae 0x47ded0
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 0x47df26
lea ecx, [ebp + 0x58]
call fcn.00437e1a
jmp 0x47e052
lea ecx, [ebp + 0x58]
jmp 0x47d5b3
cmp esi, 0xfffffff0
jne 0x47e11e
lea ecx, [ebp + 0x64]
call fcn.0043dd7e
lea ecx, [ebp + 0x58]
call fcn.0043dd7e
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00433707
mov eax, dword [ebp + 0x64]
cmp word [eax], di
jne 0x47dfc2
lea ecx, [ebp + 0x58]
call fcn.00437e1a
lea ecx, [ebp + 0x64]
call fcn.00437e1a
mov esi, 0x80070057
jmp 0x47e203
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.004051ad
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.004051ad
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.004051ad
add esp, 0x18
push 0xffffffffffffffff
push 0xffffffffffffffff
push str..pipepecmd2012.pipe.
lea ecx, [ebp + 0x54]
call fcn.0043de39
push dword [ebp + 0x64]
lea ecx, [ebp + 0x54]
call fcn.0043ddea
or dword [ebp + 0x68], 0xffffffff
cmp byte [ebp + 0x6f], 0
je 0x47e016
xor ebx, ebx
jmp 0x47e019
mov ebx, dword [ebp + 0x40]
lea ecx, [ebp + 0x58]
call fcn.00437e1a
lea ecx, [ebp + 0x64]
call fcn.00437e1a
test bl, 4
jne 0x47e076
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.0043a9be
add esp, 0xc
cmp byte [ebp + 0x6f], 0
mov dword [ebp + 0x68], eax
je 0x47e076
cmp dword [ebp + 0x68], 0xffffffff
jne 0x47e05c
and dword [ebp + 0x68], 0
cmp dword [ebp + 0x68], 0
je 0x47d50d
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x47d518
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.0043a99f
test bl, 2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
pop ecx
jne 0x47e0f9
cmp dword [ebp + 0x68], 0xffffffff
jne 0x47d5b8
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 0x47e0ec
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x47e0ec
call esi
cmp dword [ebp + 0x68], 0xffffffff
je 0x47e0ff
mov dword [ebp + 0x50], 0xffffffef
cmp dword [ebp + 0x68], 0xffffffff
jne 0x47e103
and dword [ebp + 0x68], 0
cmp dword [ebp + 0x50], 0xfffffff0
je 0x47d5b8
cmp dword [ebp + 0x68], 0
jne 0x47d5b8
call esi
jmp 0x47d518
mov eax, dword [ebp + 0x78]
cmp word [eax], di
je 0x47e16e
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0044957c
mov eax, dword [ebp + 0x78]
cmp word [eax], di
pop ecx
pop ecx
je 0x47e16e
add dword [ebp + 0x78], 2
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0044957c
mov eax, dword [ebp + 0x78]
cmp word [eax], di
pop ecx
pop ecx
je 0x47e16b
add dword [ebp + 0x78], 2
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0044957c
pop ecx
pop ecx
mov esi, dword [ebp + 0x50]
push dword [ebp + 0x10]
push esi
push dword [ebp + 0x3c]
call dword [0x4c1198]
cmp eax, edi
mov dword [ebp + 0x68], eax
jg 0x47d5b8
xor esi, esi
inc esi
jmp 0x47e203
cmp byte [ebp + 0x4b], 0
jne 0x47e19f
cmp byte [ebp + 0x3b], 0
jne 0x47e19f
mov edi, dword [esi + 0x150]
jmp 0x47e1a2
mov edi, dword [ebp + 0x2c]
cmp byte [ebp + 0x3a], 0
je 0x47e1e5
push 0x4b165c
lea ecx, [ebp + 0x4c]
call fcn.00446497
push dword [ebp + 8]
lea ecx, [ebp + 0x4c]
call fcn.0043ddea
push str..del
lea ecx, [ebp + 0x4c]
call fcn.0043ddea
push dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x2c]
push 0
push dword [ebp + 0x4c]
call fcn.00472c1c
lea ecx, [ebp + 0x4c]
call fcn.00437e1a
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.0043e306
mov esi, dword [ebp + 0xc]
lea ecx, [ebp + 0x54]
call fcn.00437e1a
lea ecx, [ebp - 0x44]
call fcn.00437e1a
lea ecx, [ebp - 0x48]
call fcn.00437e1a
lea ecx, [ebp - 0x40]
call fcn.00437e1a
lea ecx, [ebp + 8]
call fcn.00437e1a
mov eax, esi
pop esi
pop ebx
pop edi
add ebp, 0x70
leave
ret 8