Function at 0x490223
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.0043f71e
xor edi, edi
cmp dword [0x4d82cc], edi
jne 0x49024c
xor eax, eax
inc eax
jmp 0x491545
push ebx
push esi
lea ecx, [ebp + 0x78]
call fcn.0043f942
lea ecx, [ebp + 8]
call fcn.004441a1
lea ecx, [ebp - 0x40]
call fcn.004441a1
lea ecx, [ebp - 0x48]
call fcn.004441a1
lea ecx, [ebp - 0x44]
call fcn.004441a1
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.0043dcd9
mov byte [ebp + 0x63], 0
mov dword [ebp + 0x58], 3
jmp 0x49046b
cmp word [esi + 2], 0x2d
jne 0x490479
push 0xf
push esi
push str.__gethostbyname
call fcn.0043f11b
add esp, 0xc
test al, al
je 0x49032d
add esi, 0x1e
xor ecx, ecx
mov dword [ebp + 0x78], esi
mov cx, word [esi]
cmp cx, di
je 0x4902eb
mov eax, ecx
call fcn.0040f4c7
test al, al
je 0x49031a
mov byte [ebp + 0x63], 1
jmp 0x49031a
mov eax, ecx
call fcn.0040f4c7
test al, al
jne 0x49031f
cmp cx, 0x2a
jne 0x490308
or byte [ebp + 0x63], 2
jmp 0x490312
cmp cx, 0x23
jne 0x490312
or byte [ebp + 0x63], 4
add esi, ebx
mov dword [ebp + 0x78], esi
mov cx, word [esi]
cmp cx, di
jne 0x4902f1
lea eax, [ebp + 0x78]
push eax
call fcn.0043dcd9
jmp 0x49046b
or esi, 0xffffffff
push esi
lea eax, [ebp + 0x78]
push eax
push str.__file
call fcn.004460ea
add esp, 0xc
test al, al
je 0x49034e
mov dword [ebp + 0x50], esi
jmp 0x49046c
push esi
lea eax, [ebp + 0x78]
push eax
push str.__shm
call fcn.004460ea
add esp, 0xc
test al, al
je 0x490370
mov dword [ebp + 0x50], 0xfffffffe
jmp 0x49046c
push esi
lea eax, [ebp + 0x78]
push eax
push str.__event
call fcn.004460ea
add esp, 0xc
test al, al
je 0x490392
mov dword [ebp + 0x50], 0xfffffffc
jmp 0x49046c
push esi
lea eax, [ebp + 0x78]
push eax
push str.__semaphore
call fcn.004460ea
add esp, 0xc
test al, al
je 0x4903b4
mov dword [ebp + 0x50], 0xffffffe0
jmp 0x49046c
push esi
lea eax, [ebp + 0x78]
push eax
push str.__sem
call fcn.004460ea
add esp, 0xc
test al, al
jne 0x4903a8
push esi
lea eax, [ebp + 0x78]
push eax
push str.__mutex
call fcn.004460ea
add esp, 0xc
test al, al
je 0x4903ec
mov dword [ebp + 0x50], 0xffffffc0
jmp 0x49046c
push esi
lea eax, [ebp + 0x78]
push eax
push str.__mailslot
call fcn.004460ea
add esp, 0xc
test al, al
je 0x49040b
mov dword [ebp + 0x50], 0xfffffff8
jmp 0x49046c
push esi
lea eax, [ebp + 0x78]
push eax
push str.__pipe
call fcn.004460ea
add esp, 0xc
test al, al
je 0x49042a
mov dword [ebp + 0x50], 0xfffffff0
jmp 0x49046c
push esi
lea eax, [ebp + 0x78]
push eax
push str.__exist
call fcn.004460ea
add esp, 0xc
test al, al
je 0x490446
mov byte [ebp + 0x6f], 1
jmp 0x49046c
push esi
lea eax, [ebp + 0x78]
push eax
push str.__only
call fcn.004460ea
add esp, 0xc
test al, al
je 0x490462
mov byte [ebp + 0x3a], 1
jmp 0x49046c
lea eax, [ebp + 0x78]
push eax
call fcn.00408ddd
pop ecx
mov esi, dword [ebp + 0x78]
cmp word [esi], 0x2d
je 0x4902b1
cmp word [esi], 0x2a
mov byte [ebp + 0x3b], 0
jne 0x490499
lea eax, [ebp + 0x78]
add esi, ebx
push eax
mov byte [ebp + 0x3b], 1
mov dword [ebp + 0x78], esi
call fcn.0043dcd9
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 0x4904e4
cmp word [esi + 2], 0x3a
jne 0x4904e4
mov eax, dword [0x4d8108]
add esi, 4
mov dword [ebp + 0x78], esi
mov byte [ebp + 0x4b], 1
mov dword [ebp + 0x2c], 0x4d80e0
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.00438f7b
mov esi, dword [ebp + 0x50]
xor bl, bl
cmp esi, 0xfffffffe
jne 0x490536
mov ecx, dword [ebp + 0x78]
mov ax, word [ecx]
and ax, 0xffdf
cmp ax, 0x57
jne 0x49052c
inc bl
inc ecx
inc ecx
mov dword [ebp + 0x78], ecx
jmp 0x49052c
inc ecx
inc ecx
cmp ax, 0x2c
mov dword [ebp + 0x78], ecx
je 0x490545
cmp ax, 0x3b
je 0x490545
mov ax, word [ecx]
cmp ax, di
jne 0x49051b
jmp 0x490545
cmp esi, 0xfffffffc
je 0x490545
cmp esi, 0xffffffe0
je 0x490545
cmp esi, 0xffffffc0
jne 0x49057b
mov eax, dword [ebp + 0x78]
mov ax, word [eax]
cmp ax, 0x2e
jne 0x490560
add dword [ebp + 0x78], 2
push 0xffffffffffffffff
push 0xffffffffffffffff
push str.Local_
jmp 0x490573
cmp ax, 0x23
jne 0x49056a
add dword [ebp + 0x78], 2
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x4c83b0
lea ecx, [ebp + 0x54]
call fcn.0044425c
cmp byte [ebp + 0x63], 0
je 0x490739
lea ecx, [ebp + 0x50]
call fcn.004441a1
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00438f7b
lea eax, [ebp + 0x50]
push eax
lea ecx, [ebp + 0x5c]
mov dword [ebp + 0x64], 4
xor ebx, ebx
call fcn.004385fa
lea ecx, [ebp + 0x3c]
call fcn.004441a1
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 0x490622
cmp byte [esi], bl
je 0x4905eb
push esi
call dword [0x4d8314]
cmp eax, 0xffffffff
mov dword [ebp + 0x2c], eax
jne 0x490622
and dword [ebp + 0x2c], ebx
push esi
call dword [0x4d8318]
test eax, eax
je 0x490622
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 0x490622
mov cl, byte [ebp + 0x63]
mov byte [ebp + 0x7f], cl
mov eax, dword [eax]
test eax, eax
je 0x49070c
add dword [ebp + 0x58], 4
mov edi, eax
mov dword [ebp + 0xc], edi
test byte [ebp + 0x63], 4
lea ecx, [ebp + 0x3c]
je 0x490695
lea eax, [ebx + 0x3e]
push eax
call fcn.004441e6
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 0x49065e
push 0x20
pop eax
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x7c]
push eax
call fcn.00413fe3
push str.0x_08I64X
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push dword [ebp + 0x78]
call fcn.00497dbc
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 0x4906e9
movsx esi, word [ebp + 0x64]
lea eax, [esi + esi*2]
lea eax, [ebx + eax*2]
push eax
call fcn.004441e6
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 0x4906e3
inc esi
movzx eax, byte [edi]
push eax
push 0x4c8850
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 0x4906b8
dec eax
dec eax
and word [eax], 0
test byte [ebp + 0x7f], 2
je 0x49070c
mov ecx, dword [ebp + 0x58]
cmp dword [ecx], 0
je 0x49070c
mov word [eax], 0x20
sub eax, dword [ebp + 0x10]
inc eax
inc eax
sar eax, 1
add ebx, eax
mov eax, ecx
jmp 0x49060f
push dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x4c]
push dword [ebp + 8]
call fcn.004438ac
lea ecx, [ebp + 0x3c]
call fcn.0043dd41
lea ecx, [ebp + 0x5c]
call fcn.0043dd41
lea ecx, [ebp + 0x50]
call fcn.0043dd41
xor esi, esi
jmp 0x491519
cmp esi, 0xffffffff
mov dword [ebp + 0xc], edi
jne 0x490911
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 0x490778
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 0x490790
inc eax
inc eax
mov dword [ebp + 0x58], 3
mov dword [ebp + 0x78], eax
cmp word [eax], 0x2d
jne 0x4907a0
xor esi, esi
xor ebx, ebx
inc esi
inc eax
inc eax
mov dword [ebp + 0x78], eax
xor ecx, ecx
jmp 0x4907da
inc eax
inc eax
cmp cx, 0x2c
mov dword [ebp + 0x78], eax
je 0x4907e2
cmp cx, 0x3b
je 0x4907e2
and ecx, edx
cmp esi, edi
je 0x4907da
cmp cx, 0x52
jne 0x4907c6
or ebx, 1
jmp 0x4907da
cmp cx, 0x57
jne 0x4907d1
or ebx, 2
jmp 0x4907da
cmp cx, 0x44
jne 0x4907da
or ebx, 4
mov cx, word [eax]
cmp cx, di
jne 0x4907a4
lea ecx, [ebp + 0x34]
call fcn.004441a1
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x34]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00438f7b
push dword [ebp + 0x34]
call fcn.00412ce4
mov esi, eax
mov ax, word [esi]
cmp ax, di
pop ecx
jne 0x490835
lea ecx, [ebp + 0x34]
call fcn.0043dd41
cmp byte [ebp + 0x6f], 0
je 0x4912ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x49082e
inc eax
mov esi, eax
jmp 0x491519
cmp dword [ebp + 0x58], 3
jne 0x49088c
cmp ebx, edi
je 0x49088c
cmp ax, 0x5c
jne 0x490876
cmp word [esi + 2], ax
jne 0x490876
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.0040569f
cmp dword [ebp + 0x64], edi
lea ecx, [ebp + 0x64]
jne 0x49086f
call fcn.00402c9f
jmp 0x4908a5
call fcn.00402c9f
jmp 0x49088c
push esi
call fcn.004a976c
and eax, 0x10
and edx, 1
cmp eax, edi
pop ecx
jne 0x4908a5
cmp edx, 1
jne 0x4908a5
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.0040569f
mov dword [ebp + 0x68], eax
cmp byte [ebp + 0x6f], 0
je 0x4908b3
lea ecx, [ebp + 0x34]
jmp 0x49107b
cmp dword [ebp + 0x68], edi
jne 0x4908c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + 0x34]
jmp 0x4911fd
lea ecx, [ebp + 0x34]
call fcn.0043dd41
mov esi, dword [ebp - 0x3c]
test esi, esi
jne 0x4914a1
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.00412570
mov esi, dword [esi + 0x28]
test esi, esi
pop ecx
pop ecx
jne 0x4914a1
cmp dword [ebp + 0x68], esi
je 0x4912ce
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4912ce
cmp esi, 0xfffffffe
jne 0x490d39
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 0x490961
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.004441a1
lea ecx, [ebp + 0x28]
call fcn.004441a1
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00438f7b
mov eax, dword [ebp + 0x78]
cmp word [eax], di
je 0x4909d3
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0045030b
mov eax, dword [ebp + 0x78]
cmp word [eax], di
pop ecx
pop ecx
je 0x4909d3
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.00438f7b
mov eax, dword [ebp + 0x78]
cmp word [eax], di
je 0x4909d3
lea eax, [ebp]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0045030b
pop ecx
pop ecx
mov eax, dword [ebp + 0x24]
cmp word [eax], di
je 0x490d29
mov esi, dword [ebp + 0x20]
cmp esi, edi
jl 0x490d29
jg 0x4909f5
cmp dword [ebp + 0x1c], edi
jb 0x490d29
cmp dword [ebp + 4], edi
jl 0x490d29
jg 0x490a09
cmp dword [ebp], edi
jb 0x490d29
mov eax, dword [ebp + 0x78]
cmp word [eax], di
je 0x490a4b
add dword [ebp + 0x78], 2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00405656
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp + 0x40], eax
jle 0x490a34
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 0x490a4b
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00405656
pop ecx
pop ecx
or dword [ebp + 0x68], 0xffffffff
and dword [ebp + 0x3c], 0
push str.pecmd2012.shm.
lea ecx, [ebp + 0x54]
call fcn.0044420d
push dword [ebp + 0x24]
lea ecx, [ebp + 0x54]
call fcn.0044420d
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 0x490ae4
mov eax, dword [ebp + 0x5c]
lea ecx, [ebp + 0x28]
mov dword [ebp + 0x68], eax
call fcn.0043dd41
lea ecx, [ebp + 0x24]
jmp 0x49107b
cmp dword [ebp + 0x5c], 0
jne 0x490ba5
mov eax, dword [ebp + 0x28]
cmp word [eax], 0
je 0x490b32
push eax
call fcn.00412ce4
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.0040569f
test eax, eax
mov dword [ebp + 0x68], eax
jne 0x490b32
call edi
lea ecx, [ebp + 0x28]
mov esi, eax
call fcn.0043dd41
lea ecx, [ebp + 0x24]
jmp 0x4911ff
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.00440955
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 0x490b9e
jl 0x490b92
cmp dword [ebp + 0x14], 0
ja 0x490b9e
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 0x490bcd
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 0x490bdc
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 0x490c03
cmp ebx, ecx
je 0x490bf8
cmp ebx, 0xffffffff
je 0x490bf8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x490b20
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 0x490c1d
cmp esi, ecx
je 0x490c1d
mov dword [edi], ebx
mov dword [edi + 4], eax
add edi, esi
cmp dword [ebp + 0x64], ecx
mov dword [ebp + 0x3c], edi
je 0x490c3e
cmp dword [ebp + 0x34], ecx
je 0x490c3e
push dword [ebp + 0x34]
lea eax, [ebx + edi]
push ecx
push eax
call fcn.004aa0a0
add esp, 0xc
xor ecx, ecx
cmp dword [ebp + 0x64], ecx
mov dword [ebp - 8], ebx
je 0x490d19
cmp dword [ebp + 0x40], ecx
jle 0x490d19
mov eax, dword [ebp + 0x18]
cmp eax, ecx
jl 0x490d19
jg 0x490c69
cmp dword [ebp + 0x14], ecx
jbe 0x490d19
cmp edi, ecx
je 0x490d19
mov esi, dword [ebp - 0xc]
cmp esi, 1
jb 0x490cae
ja 0x490c80
cmp dword [ebp - 0x10], ecx
jb 0x490cae
push ecx
push 8
push eax
push dword [ebp + 0x14]
call fcn.004aa100
dec eax
js 0x490d19
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 0x490d19
cmp esi, ecx
ja 0x490cbd
mov ebx, dword [ebp - 0x10]
cmp ebx, 0x10000
jb 0x490cd6
push ecx
push 4
push eax
push dword [ebp + 0x14]
call fcn.004aa100
dec eax
js 0x490d19
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x10]
rep stosd dword es:[edi], eax
jmp 0x490d19
cmp esi, ecx
ja 0x490ce2
cmp ebx, 0x100
jb 0x490d0c
push ecx
push 2
push eax
push dword [ebp + 0x14]
call fcn.004aa100
dec eax
js 0x490d19
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 0x490d19
push dword [ebp + 0x14]
push ebx
push edi
call fcn.004aa0a0
add esp, 0xc
lea ecx, [ebp + 0x28]
call fcn.0043dd41
lea ecx, [ebp + 0x24]
jmp 0x4908c9
lea ecx, [ebp + 0x28]
call fcn.0043dd41
lea ecx, [ebp + 0x24]
jmp 0x4912c9
cmp esi, 0xfffffffc
jne 0x490e7c
lea ecx, [ebp + 0x30]
call fcn.004441a1
lea ecx, [ebp + 0x64]
call fcn.004441a1
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00438f7b
mov eax, dword [ebp + 0x30]
cmp word [eax], di
jne 0x490d7e
lea ecx, [ebp + 0x64]
call fcn.0043dd41
lea ecx, [ebp + 0x30]
jmp 0x4912c9
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.0047b6b7
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0047b6b7
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0047b6b7
add esp, 0x18
push str.pecmd2012.event.
lea ecx, [ebp + 0x54]
call fcn.0044420d
push dword [ebp + 0x30]
lea ecx, [ebp + 0x54]
call fcn.0044420d
cmp byte [ebp + 0x6f], 0
jne 0x490dd4
cmp dword [ebp + 0x58], edi
jne 0x490e02
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 0x490dfe
lea ecx, [ebp + 0x64]
call fcn.0043dd41
lea ecx, [ebp + 0x30]
jmp 0x49107b
cmp eax, edi
jne 0x490e6c
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.00440955
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 0x490e6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + 0x64]
mov esi, eax
call fcn.0043dd41
lea ecx, [ebp + 0x30]
jmp 0x4911ff
lea ecx, [ebp + 0x64]
call fcn.0043dd41
lea ecx, [ebp + 0x30]
jmp 0x4908c9
cmp esi, 0xffffffe0
jne 0x490fe9
lea ecx, [ebp + 0x44]
call fcn.004441a1
lea ecx, [ebp + 0x64]
call fcn.004441a1
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00438f7b
mov eax, dword [ebp + 0x44]
cmp word [eax], di
jne 0x490ec1
lea ecx, [ebp + 0x64]
call fcn.0043dd41
lea ecx, [ebp + 0x44]
jmp 0x4912c9
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.0047b6b7
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0047b6b7
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0047b6b7
mov esi, dword [ebp + 0x40]
add esp, 0x18
cmp esi, ebx
jge 0x490f00
mov esi, ebx
mov ebx, dword [ebp + 0x58]
cmp ebx, esi
jle 0x490f09
mov ebx, esi
push str.pecmd2012.semaphore.
lea ecx, [ebp + 0x54]
call fcn.0044420d
push dword [ebp + 0x44]
lea ecx, [ebp + 0x54]
call fcn.0044420d
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 0x490f49
lea ecx, [ebp + 0x64]
call fcn.0043dd41
lea ecx, [ebp + 0x44]
jmp 0x49107b
cmp eax, edi
jne 0x490fd9
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.00440955
test ebx, ebx
pop ecx
jge 0x490f8d
xor ebx, ebx
test ebx, ebx
jle 0x490f93
mov eax, ebx
jmp 0x490f96
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 0x490fc9
lea ecx, [ebp + 0x64]
call fcn.0043dd41
lea ecx, [ebp + 0x44]
jmp 0x4911ff
cmp ebx, 1
jge 0x490fd9
push 0xffffffffffffffff
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp + 0x64]
call fcn.0043dd41
lea ecx, [ebp + 0x44]
jmp 0x4908c9
cmp esi, 0xffffffc0
jne 0x49110f
lea ecx, [ebp + 0x5c]
call fcn.004441a1
lea ecx, [ebp + 0x58]
call fcn.004441a1
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00438f7b
mov eax, dword [ebp + 0x5c]
cmp word [eax], di
jne 0x49102e
lea ecx, [ebp + 0x58]
call fcn.0043dd41
lea ecx, [ebp + 0x5c]
jmp 0x4912c9
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x78]
push eax
mov dword [ebp + 0x64], edi
call fcn.0047b6b7
pop ecx
pop ecx
push str.pecmd2012.mutex.
lea ecx, [ebp + 0x54]
call fcn.0044420d
push dword [ebp + 0x5c]
lea ecx, [ebp + 0x54]
call fcn.0044420d
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 0x491085
lea ecx, [ebp + 0x58]
call fcn.0043dd41
lea ecx, [ebp + 0x5c]
call fcn.0043dd41
jmp 0x491372
cmp eax, edi
jne 0x4910ff
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.00440955
cmp dword [ebp + 0x64], edi
pop ecx
jge 0x4910c6
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 0x4910ff
lea ecx, [ebp + 0x58]
call fcn.0043dd41
lea ecx, [ebp + 0x5c]
jmp 0x4911ff
lea ecx, [ebp + 0x58]
call fcn.0043dd41
lea ecx, [ebp + 0x5c]
jmp 0x4908c9
cmp esi, 0xfffffff8
jne 0x491289
lea ecx, [ebp + 0x58]
call fcn.004441a1
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00438f7b
mov eax, dword [ebp + 0x58]
cmp word [eax], di
jne 0x491144
lea ecx, [ebp + 0x58]
jmp 0x4912c9
or dword [ebp + 0x5c], 0xffffffff
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x78]
push eax
mov dword [ebp + 0x64], edi
call fcn.0047b6b7
cmp dword [ebp + 0x64], edi
pop ecx
pop ecx
jne 0x491162
mov dword [ebp + 0x5c], edi
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0047b6b7
pop ecx
pop ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push str..mailslotpecmd2012.mailslot.
lea ecx, [ebp + 0x54]
call fcn.0044425c
push dword [ebp + 0x58]
lea ecx, [ebp + 0x54]
call fcn.0044420d
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.00440955
cmp byte [ebp + 0x6f], 0
pop ecx
jne 0x491209
cmp dword [ebp + 0x64], esi
je 0x491209
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 0x4911ea
and dword [ebp + 0x68], 0
cmp dword [ebp + 0x68], 0
jne 0x491281
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + 0x58]
mov esi, eax
call fcn.0043dd41
jmp 0x491519
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 0x491274
cmp dword [ebp + 0x68], 0xffffffff
jne 0x4911ea
cmp dword [ebp + 0x5c], 0xffffffff
je 0x491256
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0x40]
cmp eax, dword [ebp + 0x5c]
jae 0x4911e6
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 0x49123c
lea ecx, [ebp + 0x58]
call fcn.0043dd41
jmp 0x491368
lea ecx, [ebp + 0x58]
jmp 0x4908c9
cmp esi, 0xfffffff0
jne 0x491434
lea ecx, [ebp + 0x64]
call fcn.004441a1
lea ecx, [ebp + 0x58]
call fcn.004441a1
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00438f7b
mov eax, dword [ebp + 0x64]
cmp word [eax], di
jne 0x4912d8
lea ecx, [ebp + 0x58]
call fcn.0043dd41
lea ecx, [ebp + 0x64]
call fcn.0043dd41
mov esi, 0x80070057
jmp 0x491519
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0047b6b7
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0047b6b7
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0047b6b7
add esp, 0x18
push 0xffffffffffffffff
push 0xffffffffffffffff
push str..pipepecmd2012.pipe.
lea ecx, [ebp + 0x54]
call fcn.0044425c
push dword [ebp + 0x64]
lea ecx, [ebp + 0x54]
call fcn.0044420d
or dword [ebp + 0x68], 0xffffffff
cmp byte [ebp + 0x6f], 0
je 0x49132c
xor ebx, ebx
jmp 0x49132f
mov ebx, dword [ebp + 0x40]
lea ecx, [ebp + 0x58]
call fcn.0043dd41
lea ecx, [ebp + 0x64]
call fcn.0043dd41
test bl, 4
jne 0x49138c
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.00440974
add esp, 0xc
cmp byte [ebp + 0x6f], 0
mov dword [ebp + 0x68], eax
je 0x49138c
cmp dword [ebp + 0x68], 0xffffffff
jne 0x491372
and dword [ebp + 0x68], 0
cmp dword [ebp + 0x68], 0
je 0x490823
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x49082e
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.00440955
test bl, 2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
pop ecx
jne 0x49140f
cmp dword [ebp + 0x68], 0xffffffff
jne 0x4908ce
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 0x491402
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x491402
call esi
cmp dword [ebp + 0x68], 0xffffffff
je 0x491415
mov dword [ebp + 0x50], 0xffffffef
cmp dword [ebp + 0x68], 0xffffffff
jne 0x491419
and dword [ebp + 0x68], 0
cmp dword [ebp + 0x50], 0xfffffff0
je 0x4908ce
cmp dword [ebp + 0x68], 0
jne 0x4908ce
call esi
jmp 0x49082e
mov eax, dword [ebp + 0x78]
cmp word [eax], di
je 0x491484
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.004504ce
mov eax, dword [ebp + 0x78]
cmp word [eax], di
pop ecx
pop ecx
je 0x491484
add dword [ebp + 0x78], 2
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.004504ce
mov eax, dword [ebp + 0x78]
cmp word [eax], di
pop ecx
pop ecx
je 0x491481
add dword [ebp + 0x78], 2
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.004504ce
pop ecx
pop ecx
mov esi, dword [ebp + 0x50]
push dword [ebp + 0x10]
push esi
push dword [ebp + 0x3c]
call dword [0x4d82cc]
cmp eax, edi
mov dword [ebp + 0x68], eax
jg 0x4908ce
xor esi, esi
inc esi
jmp 0x491519
cmp byte [ebp + 0x4b], 0
jne 0x4914b5
cmp byte [ebp + 0x3b], 0
jne 0x4914b5
mov edi, dword [esi + 0x194]
jmp 0x4914b8
mov edi, dword [ebp + 0x2c]
cmp byte [ebp + 0x3a], 0
je 0x4914fb
push 0x4c87b4
lea ecx, [ebp + 0x4c]
call fcn.0044cf2d
push dword [ebp + 8]
lea ecx, [ebp + 0x4c]
call fcn.0044420d
push str..del
lea ecx, [ebp + 0x4c]
call fcn.0044420d
push dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x2c]
push 0
push dword [ebp + 0x4c]
call fcn.0048a88d
lea ecx, [ebp + 0x4c]
call fcn.0043dd41
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.0044474b
mov esi, dword [ebp + 0xc]
lea ecx, [ebp + 0x54]
call fcn.0043dd41
lea ecx, [ebp - 0x44]
call fcn.0043dd41
lea ecx, [ebp - 0x48]
call fcn.0043dd41
lea ecx, [ebp - 0x40]
call fcn.0043dd41
lea ecx, [ebp + 8]
call fcn.0043dd41
mov eax, esi
pop esi
pop ebx
pop edi
add ebp, 0x70
leave
ret 8