Function at 0x4799c9
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.00438fab
xor edi, edi
cmp dword [0x4be170], edi
jne 0x4799f2
xor eax, eax
inc eax
jmp 0x47acd4
push ebx
push esi
lea ecx, [ebp + 0x78]
call fcn.004391cf
lea ecx, [ebp + 8]
call fcn.0043d3a5
lea ecx, [ebp - 0x40]
call fcn.0043d3a5
lea ecx, [ebp - 0x48]
call fcn.0043d3a5
lea ecx, [ebp - 0x44]
call fcn.0043d3a5
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.004378b6
mov byte [ebp + 0x63], 0
mov dword [ebp + 0x58], 3
jmp 0x479c11
cmp word [esi + 2], 0x2d
jne 0x479c1f
push 0xf
push esi
push str.__gethostbyname
call fcn.00438aa1
add esp, 0xc
test al, al
je 0x479ad3
add esi, 0x1e
xor ecx, ecx
mov dword [ebp + 0x78], esi
mov cx, word [esi]
cmp cx, di
je 0x479a91
mov eax, ecx
call fcn.004820ac
test al, al
je 0x479ac0
mov byte [ebp + 0x63], 1
jmp 0x479ac0
mov eax, ecx
call fcn.004820ac
test al, al
jne 0x479ac5
cmp cx, 0x2a
jne 0x479aae
or byte [ebp + 0x63], 2
jmp 0x479ab8
cmp cx, 0x23
jne 0x479ab8
or byte [ebp + 0x63], 4
add esi, ebx
mov dword [ebp + 0x78], esi
mov cx, word [esi]
cmp cx, di
jne 0x479a97
lea eax, [ebp + 0x78]
push eax
call fcn.004378b6
jmp 0x479c11
or esi, 0xffffffff
push esi
lea eax, [ebp + 0x78]
push eax
push str.__file
call fcn.0043f0e5
add esp, 0xc
test al, al
je 0x479af4
mov dword [ebp + 0x50], esi
jmp 0x479c12
push esi
lea eax, [ebp + 0x78]
push eax
push str.__shm
call fcn.0043f0e5
add esp, 0xc
test al, al
je 0x479b16
mov dword [ebp + 0x50], 0xfffffffe
jmp 0x479c12
push esi
lea eax, [ebp + 0x78]
push eax
push str.__event
call fcn.0043f0e5
add esp, 0xc
test al, al
je 0x479b38
mov dword [ebp + 0x50], 0xfffffffc
jmp 0x479c12
push esi
lea eax, [ebp + 0x78]
push eax
push str.__semaphore
call fcn.0043f0e5
add esp, 0xc
test al, al
je 0x479b5a
mov dword [ebp + 0x50], 0xffffffe0
jmp 0x479c12
push esi
lea eax, [ebp + 0x78]
push eax
push str.__sem
call fcn.0043f0e5
add esp, 0xc
test al, al
jne 0x479b4e
push esi
lea eax, [ebp + 0x78]
push eax
push str.__mutex
call fcn.0043f0e5
add esp, 0xc
test al, al
je 0x479b92
mov dword [ebp + 0x50], 0xffffffc0
jmp 0x479c12
push esi
lea eax, [ebp + 0x78]
push eax
push str.__mailslot
call fcn.0043f0e5
add esp, 0xc
test al, al
je 0x479bb1
mov dword [ebp + 0x50], 0xfffffff8
jmp 0x479c12
push esi
lea eax, [ebp + 0x78]
push eax
push str.__pipe
call fcn.0043f0e5
add esp, 0xc
test al, al
je 0x479bd0
mov dword [ebp + 0x50], 0xfffffff0
jmp 0x479c12
push esi
lea eax, [ebp + 0x78]
push eax
push 0x4ae918
call fcn.0043f0e5
add esp, 0xc
test al, al
je 0x479bec
mov byte [ebp + 0x6f], 1
jmp 0x479c12
push esi
lea eax, [ebp + 0x78]
push eax
push str.__only
call fcn.0043f0e5
add esp, 0xc
test al, al
je 0x479c08
mov byte [ebp + 0x3a], 1
jmp 0x479c12
lea eax, [ebp + 0x78]
push eax
call fcn.00407fcf
pop ecx
mov esi, dword [ebp + 0x78]
cmp word [esi], 0x2d
je 0x479a57
cmp word [esi], 0x2a
mov byte [ebp + 0x3b], 0
jne 0x479c3f
lea eax, [ebp + 0x78]
add esi, ebx
push eax
mov byte [ebp + 0x3b], 1
mov dword [ebp + 0x78], esi
call fcn.004378b6
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 0x479c8a
cmp word [esi + 2], 0x3a
jne 0x479c8a
mov eax, dword [0x4bdfc8]
add esi, 4
mov dword [ebp + 0x78], esi
mov byte [ebp + 0x4b], 1
mov dword [ebp + 0x2c], 0x4bdfa0
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.004330ce
mov esi, dword [ebp + 0x50]
xor bl, bl
cmp esi, 0xfffffffe
jne 0x479cdc
mov ecx, dword [ebp + 0x78]
mov ax, word [ecx]
and ax, 0xffdf
cmp ax, 0x57
jne 0x479cd2
inc bl
inc ecx
inc ecx
mov dword [ebp + 0x78], ecx
jmp 0x479cd2
inc ecx
inc ecx
cmp ax, 0x2c
mov dword [ebp + 0x78], ecx
je 0x479ceb
cmp ax, 0x3b
je 0x479ceb
mov ax, word [ecx]
cmp ax, di
jne 0x479cc1
jmp 0x479ceb
cmp esi, 0xfffffffc
je 0x479ceb
cmp esi, 0xffffffe0
je 0x479ceb
cmp esi, 0xffffffc0
jne 0x479d21
mov eax, dword [ebp + 0x78]
mov ax, word [eax]
cmp ax, 0x2e
jne 0x479d06
add dword [ebp + 0x78], 2
push 0xffffffffffffffff
push 0xffffffffffffffff
push str.Local_
jmp 0x479d19
cmp ax, 0x23
jne 0x479d10
add dword [ebp + 0x78], 2
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x4ae1bc
lea ecx, [ebp + 0x54]
call fcn.0043d460
cmp byte [ebp + 0x63], 0
je 0x479edf
lea ecx, [ebp + 0x50]
call fcn.0043d3a5
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.004330ce
lea eax, [ebp + 0x50]
push eax
lea ecx, [ebp + 0x5c]
mov dword [ebp + 0x64], 4
xor ebx, ebx
call fcn.00402c05
lea ecx, [ebp + 0x3c]
call fcn.0043d3a5
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 0x479dc8
cmp byte [esi], bl
je 0x479d91
push esi
call dword [0x4be1b8]
cmp eax, 0xffffffff
mov dword [ebp + 0x2c], eax
jne 0x479dc8
and dword [ebp + 0x2c], ebx
push esi
call dword [0x4be1bc]
test eax, eax
je 0x479dc8
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 0x479dc8
mov cl, byte [ebp + 0x63]
mov byte [ebp + 0x7f], cl
mov eax, dword [eax]
test eax, eax
je 0x479eb2
add dword [ebp + 0x58], 4
mov edi, eax
mov dword [ebp + 0xc], edi
test byte [ebp + 0x63], 4
lea ecx, [ebp + 0x3c]
je 0x479e3b
lea eax, [ebx + 0x3e]
push eax
call fcn.0043d3ea
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 0x479e04
push 0x20
pop eax
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x7c]
push eax
call fcn.0041255f
push str.0x_08I64X
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push dword [ebp + 0x78]
call fcn.0048425e
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 0x479e8f
movsx esi, word [ebp + 0x64]
lea eax, [esi + esi*2]
lea eax, [ebx + eax*2]
push eax
call fcn.0043d3ea
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 0x479e89
inc esi
movzx eax, byte [edi]
push eax
push 0x4ae908
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 0x479e5e
dec eax
dec eax
and word [eax], 0
test byte [ebp + 0x7f], 2
je 0x479eb2
mov ecx, dword [ebp + 0x58]
cmp dword [ecx], 0
je 0x479eb2
mov word [eax], 0x20
sub eax, dword [ebp + 0x10]
inc eax
inc eax
sar eax, 1
add ebx, eax
mov eax, ecx
jmp 0x479db5
push dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x4c]
push dword [ebp + 8]
call fcn.0043cc80
lea ecx, [ebp + 0x3c]
call fcn.00437884
lea ecx, [ebp + 0x5c]
call fcn.00437884
lea ecx, [ebp + 0x50]
call fcn.00437884
xor esi, esi
jmp 0x47aca8
cmp esi, 0xffffffff
mov dword [ebp + 0xc], edi
jne 0x47a0a0
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 0x479f1b
inc eax
inc eax
mov dword [ebp + 0x5c], 0xc0000000
mov dword [ebp + 0x58], 4
mov dword [ebp + 0x78], eax
cmp word [eax], 0x2d
jne 0x479f2b
xor edx, edx
xor ebx, ebx
inc edx
inc eax
inc eax
mov dword [ebp + 0x78], eax
xor ecx, ecx
jmp 0x479f69
inc eax
inc eax
cmp cx, 0x2c
mov dword [ebp + 0x78], eax
je 0x479f71
cmp cx, 0x3b
je 0x479f71
and ecx, 0xffdf
cmp edx, edi
je 0x479f69
cmp cx, 0x52
jne 0x479f55
or ebx, 1
jmp 0x479f69
cmp cx, 0x57
jne 0x479f60
or ebx, 2
jmp 0x479f69
cmp cx, 0x44
jne 0x479f69
or ebx, 4
mov cx, word [eax]
cmp cx, di
jne 0x479f2f
lea ecx, [ebp + 0x34]
call fcn.0043d3a5
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x34]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.004330ce
push dword [ebp + 0x34]
call fcn.004110a0
mov esi, eax
mov ax, word [esi]
cmp ax, di
pop ecx
jne 0x479fc4
lea ecx, [ebp + 0x34]
call fcn.00437884
cmp byte [ebp + 0x6f], 0
je 0x47aa5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x479fbd
inc eax
mov esi, eax
jmp 0x47aca8
cmp dword [ebp + 0x58], 3
jne 0x47a01b
cmp ebx, edi
je 0x47a01b
cmp ax, 0x5c
jne 0x47a005
cmp word [esi + 2], ax
jne 0x47a005
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.004050ca
cmp dword [ebp + 0x64], edi
lea ecx, [ebp + 0x64]
jne 0x479ffe
call fcn.00402b8a
jmp 0x47a034
call fcn.00402b8a
jmp 0x47a01b
push esi
call fcn.0048ef3c
and eax, 0x10
and edx, 1
cmp eax, edi
pop ecx
jne 0x47a034
cmp edx, 1
jne 0x47a034
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.004050ca
mov dword [ebp + 0x68], eax
cmp byte [ebp + 0x6f], 0
je 0x47a042
lea ecx, [ebp + 0x34]
jmp 0x47a80a
cmp dword [ebp + 0x68], edi
jne 0x47a055
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + 0x34]
jmp 0x47a98c
lea ecx, [ebp + 0x34]
call fcn.00437884
mov esi, dword [ebp - 0x3c]
test esi, esi
jne 0x47ac30
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.004109b8
mov esi, dword [esi + 0x28]
test esi, esi
pop ecx
pop ecx
jne 0x47ac30
cmp dword [ebp + 0x68], esi
je 0x47aa5d
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47aa5d
cmp esi, 0xfffffffe
jne 0x47a4c8
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 0x47a0f0
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.0043d3a5
lea ecx, [ebp + 0x28]
call fcn.0043d3a5
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.004330ce
mov eax, dword [ebp + 0x78]
cmp word [eax], di
je 0x47a162
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.004486b7
mov eax, dword [ebp + 0x78]
cmp word [eax], di
pop ecx
pop ecx
je 0x47a162
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.004330ce
mov eax, dword [ebp + 0x78]
cmp word [eax], di
je 0x47a162
lea eax, [ebp]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.004486b7
pop ecx
pop ecx
mov eax, dword [ebp + 0x24]
cmp word [eax], di
je 0x47a4b8
mov esi, dword [ebp + 0x20]
cmp esi, edi
jl 0x47a4b8
jg 0x47a184
cmp dword [ebp + 0x1c], edi
jb 0x47a4b8
cmp dword [ebp + 4], edi
jl 0x47a4b8
jg 0x47a198
cmp dword [ebp], edi
jb 0x47a4b8
mov eax, dword [ebp + 0x78]
cmp word [eax], di
je 0x47a1da
add dword [ebp + 0x78], 2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.004050a5
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp + 0x40], eax
jle 0x47a1c3
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 0x47a1da
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.004050a5
pop ecx
pop ecx
or dword [ebp + 0x68], 0xffffffff
and dword [ebp + 0x3c], 0
push str.pecmd2012.shm.
lea ecx, [ebp + 0x54]
call fcn.0043d411
push dword [ebp + 0x24]
lea ecx, [ebp + 0x54]
call fcn.0043d411
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 0x47a273
mov eax, dword [ebp + 0x5c]
lea ecx, [ebp + 0x28]
mov dword [ebp + 0x68], eax
call fcn.00437884
lea ecx, [ebp + 0x24]
jmp 0x47a80a
cmp dword [ebp + 0x5c], 0
jne 0x47a334
mov eax, dword [ebp + 0x28]
cmp word [eax], 0
je 0x47a2c1
push eax
call fcn.004110a0
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.004050ca
test eax, eax
mov dword [ebp + 0x68], eax
jne 0x47a2c1
call edi
lea ecx, [ebp + 0x28]
mov esi, eax
call fcn.00437884
lea ecx, [ebp + 0x24]
jmp 0x47a98e
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.0043a212
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 0x47a32d
jl 0x47a321
cmp dword [ebp + 0x14], 0
ja 0x47a32d
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 0x47a35c
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 0x47a36b
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 0x47a392
cmp ebx, ecx
je 0x47a387
cmp ebx, 0xffffffff
je 0x47a387
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x47a2af
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 0x47a3ac
cmp esi, ecx
je 0x47a3ac
mov dword [edi], ebx
mov dword [edi + 4], eax
add edi, esi
cmp dword [ebp + 0x64], ecx
mov dword [ebp + 0x3c], edi
je 0x47a3cd
cmp dword [ebp + 0x34], ecx
je 0x47a3cd
push dword [ebp + 0x34]
lea eax, [ebx + edi]
push ecx
push eax
call fcn.0048f710
add esp, 0xc
xor ecx, ecx
cmp dword [ebp + 0x64], ecx
mov dword [ebp - 8], ebx
je 0x47a4a8
cmp dword [ebp + 0x40], ecx
jle 0x47a4a8
mov eax, dword [ebp + 0x18]
cmp eax, ecx
jl 0x47a4a8
jg 0x47a3f8
cmp dword [ebp + 0x14], ecx
jbe 0x47a4a8
cmp edi, ecx
je 0x47a4a8
mov esi, dword [ebp - 0xc]
cmp esi, 1
jb 0x47a43d
ja 0x47a40f
cmp dword [ebp - 0x10], ecx
jb 0x47a43d
push ecx
push 8
push eax
push dword [ebp + 0x14]
call fcn.0048f770
dec eax
js 0x47a4a8
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 0x47a4a8
cmp esi, ecx
ja 0x47a44c
mov ebx, dword [ebp - 0x10]
cmp ebx, 0x10000
jb 0x47a465
push ecx
push 4
push eax
push dword [ebp + 0x14]
call fcn.0048f770
dec eax
js 0x47a4a8
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x10]
rep stosd dword es:[edi], eax
jmp 0x47a4a8
cmp esi, ecx
ja 0x47a471
cmp ebx, 0x100
jb 0x47a49b
push ecx
push 2
push eax
push dword [ebp + 0x14]
call fcn.0048f770
dec eax
js 0x47a4a8
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 0x47a4a8
push dword [ebp + 0x14]
push ebx
push edi
call fcn.0048f710
add esp, 0xc
lea ecx, [ebp + 0x28]
call fcn.00437884
lea ecx, [ebp + 0x24]
jmp 0x47a058
lea ecx, [ebp + 0x28]
call fcn.00437884
lea ecx, [ebp + 0x24]
jmp 0x47aa58
cmp esi, 0xfffffffc
jne 0x47a60b
lea ecx, [ebp + 0x30]
call fcn.0043d3a5
lea ecx, [ebp + 0x64]
call fcn.0043d3a5
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.004330ce
mov eax, dword [ebp + 0x30]
cmp word [eax], di
jne 0x47a50d
lea ecx, [ebp + 0x64]
call fcn.00437884
lea ecx, [ebp + 0x30]
jmp 0x47aa58
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.00405085
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00405085
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00405085
add esp, 0x18
push str.pecmd2012.event.
lea ecx, [ebp + 0x54]
call fcn.0043d411
push dword [ebp + 0x30]
lea ecx, [ebp + 0x54]
call fcn.0043d411
cmp byte [ebp + 0x6f], 0
jne 0x47a563
cmp dword [ebp + 0x58], edi
jne 0x47a591
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 0x47a58d
lea ecx, [ebp + 0x64]
call fcn.00437884
lea ecx, [ebp + 0x30]
jmp 0x47a80a
cmp eax, edi
jne 0x47a5fb
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.0043a212
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 0x47a5fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + 0x64]
mov esi, eax
call fcn.00437884
lea ecx, [ebp + 0x30]
jmp 0x47a98e
lea ecx, [ebp + 0x64]
call fcn.00437884
lea ecx, [ebp + 0x30]
jmp 0x47a058
cmp esi, 0xffffffe0
jne 0x47a778
lea ecx, [ebp + 0x44]
call fcn.0043d3a5
lea ecx, [ebp + 0x64]
call fcn.0043d3a5
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.004330ce
mov eax, dword [ebp + 0x44]
cmp word [eax], di
jne 0x47a650
lea ecx, [ebp + 0x64]
call fcn.00437884
lea ecx, [ebp + 0x44]
jmp 0x47aa58
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.00405085
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00405085
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00405085
mov esi, dword [ebp + 0x40]
add esp, 0x18
cmp esi, ebx
jge 0x47a68f
mov esi, ebx
mov ebx, dword [ebp + 0x58]
cmp ebx, esi
jle 0x47a698
mov ebx, esi
push str.pecmd2012.semaphore.
lea ecx, [ebp + 0x54]
call fcn.0043d411
push dword [ebp + 0x44]
lea ecx, [ebp + 0x54]
call fcn.0043d411
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 0x47a6d8
lea ecx, [ebp + 0x64]
call fcn.00437884
lea ecx, [ebp + 0x44]
jmp 0x47a80a
cmp eax, edi
jne 0x47a768
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.0043a212
test ebx, ebx
pop ecx
jge 0x47a71c
xor ebx, ebx
test ebx, ebx
jle 0x47a722
mov eax, ebx
jmp 0x47a725
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 0x47a758
lea ecx, [ebp + 0x64]
call fcn.00437884
lea ecx, [ebp + 0x44]
jmp 0x47a98e
cmp ebx, 1
jge 0x47a768
push 0xffffffffffffffff
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp + 0x64]
call fcn.00437884
lea ecx, [ebp + 0x44]
jmp 0x47a058
cmp esi, 0xffffffc0
jne 0x47a89e
lea ecx, [ebp + 0x5c]
call fcn.0043d3a5
lea ecx, [ebp + 0x58]
call fcn.0043d3a5
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.004330ce
mov eax, dword [ebp + 0x5c]
cmp word [eax], di
jne 0x47a7bd
lea ecx, [ebp + 0x58]
call fcn.00437884
lea ecx, [ebp + 0x5c]
jmp 0x47aa58
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x78]
push eax
mov dword [ebp + 0x64], edi
call fcn.00405085
pop ecx
pop ecx
push str.pecmd2012.mutex.
lea ecx, [ebp + 0x54]
call fcn.0043d411
push dword [ebp + 0x5c]
lea ecx, [ebp + 0x54]
call fcn.0043d411
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 0x47a814
lea ecx, [ebp + 0x58]
call fcn.00437884
lea ecx, [ebp + 0x5c]
call fcn.00437884
jmp 0x47ab01
cmp eax, edi
jne 0x47a88e
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.0043a212
cmp dword [ebp + 0x64], edi
pop ecx
jge 0x47a855
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 0x47a88e
lea ecx, [ebp + 0x58]
call fcn.00437884
lea ecx, [ebp + 0x5c]
jmp 0x47a98e
lea ecx, [ebp + 0x58]
call fcn.00437884
lea ecx, [ebp + 0x5c]
jmp 0x47a058
cmp esi, 0xfffffff8
jne 0x47aa18
lea ecx, [ebp + 0x58]
call fcn.0043d3a5
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.004330ce
mov eax, dword [ebp + 0x58]
cmp word [eax], di
jne 0x47a8d3
lea ecx, [ebp + 0x58]
jmp 0x47aa58
or dword [ebp + 0x5c], 0xffffffff
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x78]
push eax
mov dword [ebp + 0x64], edi
call fcn.00405085
cmp dword [ebp + 0x64], edi
pop ecx
pop ecx
jne 0x47a8f1
mov dword [ebp + 0x5c], edi
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00405085
pop ecx
pop ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push str..mailslotpecmd2012.mailslot.
lea ecx, [ebp + 0x54]
call fcn.0043d460
push dword [ebp + 0x58]
lea ecx, [ebp + 0x54]
call fcn.0043d411
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.0043a212
cmp byte [ebp + 0x6f], 0
pop ecx
jne 0x47a998
cmp dword [ebp + 0x64], esi
je 0x47a998
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 0x47a979
and dword [ebp + 0x68], 0
cmp dword [ebp + 0x68], 0
jne 0x47aa10
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + 0x58]
mov esi, eax
call fcn.00437884
jmp 0x47aca8
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 0x47aa03
cmp dword [ebp + 0x68], 0xffffffff
jne 0x47a979
cmp dword [ebp + 0x5c], 0xffffffff
je 0x47a9e5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0x40]
cmp eax, dword [ebp + 0x5c]
jae 0x47a975
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 0x47a9cb
lea ecx, [ebp + 0x58]
call fcn.00437884
jmp 0x47aaf7
lea ecx, [ebp + 0x58]
jmp 0x47a058
cmp esi, 0xfffffff0
jne 0x47abc3
lea ecx, [ebp + 0x64]
call fcn.0043d3a5
lea ecx, [ebp + 0x58]
call fcn.0043d3a5
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.004330ce
mov eax, dword [ebp + 0x64]
cmp word [eax], di
jne 0x47aa67
lea ecx, [ebp + 0x58]
call fcn.00437884
lea ecx, [ebp + 0x64]
call fcn.00437884
mov esi, 0x80070057
jmp 0x47aca8
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00405085
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00405085
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00405085
add esp, 0x18
push 0xffffffffffffffff
push 0xffffffffffffffff
push str..pipepecmd2012.pipe.
lea ecx, [ebp + 0x54]
call fcn.0043d460
push dword [ebp + 0x64]
lea ecx, [ebp + 0x54]
call fcn.0043d411
or dword [ebp + 0x68], 0xffffffff
cmp byte [ebp + 0x6f], 0
je 0x47aabb
xor ebx, ebx
jmp 0x47aabe
mov ebx, dword [ebp + 0x40]
lea ecx, [ebp + 0x58]
call fcn.00437884
lea ecx, [ebp + 0x64]
call fcn.00437884
test bl, 4
jne 0x47ab1b
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.0043a231
add esp, 0xc
cmp byte [ebp + 0x6f], 0
mov dword [ebp + 0x68], eax
je 0x47ab1b
cmp dword [ebp + 0x68], 0xffffffff
jne 0x47ab01
and dword [ebp + 0x68], 0
cmp dword [ebp + 0x68], 0
je 0x479fb2
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x479fbd
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.0043a212
test bl, 2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
pop ecx
jne 0x47ab9e
cmp dword [ebp + 0x68], 0xffffffff
jne 0x47a05d
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 0x47ab91
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x47ab91
call esi
cmp dword [ebp + 0x68], 0xffffffff
je 0x47aba4
mov dword [ebp + 0x50], 0xffffffef
cmp dword [ebp + 0x68], 0xffffffff
jne 0x47aba8
and dword [ebp + 0x68], 0
cmp dword [ebp + 0x50], 0xfffffff0
je 0x47a05d
cmp dword [ebp + 0x68], 0
jne 0x47a05d
call esi
jmp 0x479fbd
mov eax, dword [ebp + 0x78]
cmp word [eax], di
je 0x47ac13
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0044880d
mov eax, dword [ebp + 0x78]
cmp word [eax], di
pop ecx
pop ecx
je 0x47ac13
add dword [ebp + 0x78], 2
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0044880d
mov eax, dword [ebp + 0x78]
cmp word [eax], di
pop ecx
pop ecx
je 0x47ac10
add dword [ebp + 0x78], 2
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0044880d
pop ecx
pop ecx
mov esi, dword [ebp + 0x50]
push dword [ebp + 0x10]
push esi
push dword [ebp + 0x3c]
call dword [0x4be170]
cmp eax, edi
mov dword [ebp + 0x68], eax
jg 0x47a05d
xor esi, esi
inc esi
jmp 0x47aca8
cmp byte [ebp + 0x4b], 0
jne 0x47ac44
cmp byte [ebp + 0x3b], 0
jne 0x47ac44
mov edi, dword [esi + 0x150]
jmp 0x47ac47
mov edi, dword [ebp + 0x2c]
cmp byte [ebp + 0x3a], 0
je 0x47ac8a
push 0x4ae86c
lea ecx, [ebp + 0x4c]
call fcn.00445746
push dword [ebp + 8]
lea ecx, [ebp + 0x4c]
call fcn.0043d411
push str..del
lea ecx, [ebp + 0x4c]
call fcn.0043d411
push dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x2c]
push 0
push dword [ebp + 0x4c]
call fcn.0046fa31
lea ecx, [ebp + 0x4c]
call fcn.00437884
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.0043d92d
mov esi, dword [ebp + 0xc]
lea ecx, [ebp + 0x54]
call fcn.00437884
lea ecx, [ebp - 0x44]
call fcn.00437884
lea ecx, [ebp - 0x48]
call fcn.00437884
lea ecx, [ebp - 0x40]
call fcn.00437884
lea ecx, [ebp + 8]
call fcn.00437884
mov eax, esi
pop esi
pop ebx
pop edi
add ebp, 0x70
leave
ret 8