Function at 0x493388
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.0043f4ed
xor edi, edi
cmp dword [0x4d82d4], edi
jne 0x4933b1
xor eax, eax
inc eax
jmp 0x4946aa
push ebx
push esi
lea ecx, [ebp + 0x78]
call fcn.0043f711
lea ecx, [ebp + 8]
call fcn.00443f5b
lea ecx, [ebp - 0x40]
call fcn.00443f5b
lea ecx, [ebp - 0x48]
call fcn.00443f5b
lea ecx, [ebp - 0x44]
call fcn.00443f5b
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.0043dae7
mov byte [ebp + 0x63], 0
mov dword [ebp + 0x58], 3
jmp 0x4935d0
cmp word [esi + 2], 0x2d
jne 0x4935de
push 0xf
push esi
push 0x4c89ac
call fcn.0043eeea
add esp, 0xc
test al, al
je 0x493492
add esi, 0x1e
xor ecx, ecx
mov dword [ebp + 0x78], esi
mov cx, word [esi]
cmp cx, di
je 0x493450
mov eax, ecx
call fcn.0043daaf
test al, al
je 0x49347f
mov byte [ebp + 0x63], 1
jmp 0x49347f
mov eax, ecx
call fcn.0043daaf
test al, al
jne 0x493484
cmp cx, 0x2a
jne 0x49346d
or byte [ebp + 0x63], 2
jmp 0x493477
cmp cx, 0x23
jne 0x493477
or byte [ebp + 0x63], 4
add esi, ebx
mov dword [ebp + 0x78], esi
mov cx, word [esi]
cmp cx, di
jne 0x493456
lea eax, [ebp + 0x78]
push eax
call fcn.0043dae7
jmp 0x4935d0
or esi, 0xffffffff
push esi
lea eax, [ebp + 0x78]
push eax
push 0x4c89a4
call fcn.00445f31
add esp, 0xc
test al, al
je 0x4934b3
mov dword [ebp + 0x50], esi
jmp 0x4935d1
push esi
lea eax, [ebp + 0x78]
push eax
push 0x4c899c
call fcn.00445f31
add esp, 0xc
test al, al
je 0x4934d5
mov dword [ebp + 0x50], 0xfffffffe
jmp 0x4935d1
push esi
lea eax, [ebp + 0x78]
push eax
push 0x4c8994
call fcn.00445f31
add esp, 0xc
test al, al
je 0x4934f7
mov dword [ebp + 0x50], 0xfffffffc
jmp 0x4935d1
push esi
lea eax, [ebp + 0x78]
push eax
push 0x4c8988
call fcn.00445f31
add esp, 0xc
test al, al
je 0x493519
mov dword [ebp + 0x50], 0xffffffe0
jmp 0x4935d1
push esi
lea eax, [ebp + 0x78]
push eax
push 0x4c8980
call fcn.00445f31
add esp, 0xc
test al, al
jne 0x49350d
push esi
lea eax, [ebp + 0x78]
push eax
push 0x4c8978
call fcn.00445f31
add esp, 0xc
test al, al
je 0x493551
mov dword [ebp + 0x50], 0xffffffc0
jmp 0x4935d1
push esi
lea eax, [ebp + 0x78]
push eax
push 0x4c896c
call fcn.00445f31
add esp, 0xc
test al, al
je 0x493570
mov dword [ebp + 0x50], 0xfffffff8
jmp 0x4935d1
push esi
lea eax, [ebp + 0x78]
push eax
push 0x4c8964
call fcn.00445f31
add esp, 0xc
test al, al
je 0x49358f
mov dword [ebp + 0x50], 0xfffffff0
jmp 0x4935d1
push esi
lea eax, [ebp + 0x78]
push eax
push 0x4c895c
call fcn.00445f31
add esp, 0xc
test al, al
je 0x4935ab
mov byte [ebp + 0x6f], 1
jmp 0x4935d1
push esi
lea eax, [ebp + 0x78]
push eax
push 0x4c8954
call fcn.00445f31
add esp, 0xc
test al, al
je 0x4935c7
mov byte [ebp + 0x3a], 1
jmp 0x4935d1
lea eax, [ebp + 0x78]
push eax
call fcn.00408ddd
pop ecx
mov esi, dword [ebp + 0x78]
cmp word [esi], 0x2d
je 0x493416
cmp word [esi], 0x2a
mov byte [ebp + 0x3b], 0
jne 0x4935fe
lea eax, [ebp + 0x78]
add esi, ebx
push eax
mov byte [ebp + 0x3b], 1
mov dword [ebp + 0x78], esi
call fcn.0043dae7
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 0x493649
cmp word [esi + 2], 0x3a
jne 0x493649
mov eax, dword [0x4d8110]
add esi, 4
mov dword [ebp + 0x78], esi
mov byte [ebp + 0x4b], 1
mov dword [ebp + 0x2c], 0x4d80e8
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.00438db7
mov esi, dword [ebp + 0x50]
xor bl, bl
cmp esi, 0xfffffffe
jne 0x49369b
mov ecx, dword [ebp + 0x78]
mov ax, word [ecx]
and ax, 0xffdf
cmp ax, 0x57
jne 0x493691
inc bl
inc ecx
inc ecx
mov dword [ebp + 0x78], ecx
jmp 0x493691
inc ecx
inc ecx
cmp ax, 0x2c
mov dword [ebp + 0x78], ecx
je 0x4936aa
cmp ax, 0x3b
je 0x4936aa
mov ax, word [ecx]
cmp ax, di
jne 0x493680
jmp 0x4936aa
cmp esi, 0xfffffffc
je 0x4936aa
cmp esi, 0xffffffe0
je 0x4936aa
cmp esi, 0xffffffc0
jne 0x4936e0
mov eax, dword [ebp + 0x78]
mov ax, word [eax]
cmp ax, 0x2e
jne 0x4936c5
add dword [ebp + 0x78], 2
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x4c8558
jmp 0x4936d8
cmp ax, 0x23
jne 0x4936cf
add dword [ebp + 0x78], 2
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x4c8550
lea ecx, [ebp + 0x54]
call fcn.00444016
cmp byte [ebp + 0x63], 0
je 0x49389e
lea ecx, [ebp + 0x50]
call fcn.00443f5b
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00438db7
lea eax, [ebp + 0x50]
push eax
lea ecx, [ebp + 0x5c]
mov dword [ebp + 0x64], 4
xor ebx, ebx
call fcn.00438420
lea ecx, [ebp + 0x3c]
call fcn.00443f5b
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 0x493787
cmp byte [esi], bl
je 0x493750
push esi
call dword [0x4d831c]
cmp eax, 0xffffffff
mov dword [ebp + 0x2c], eax
jne 0x493787
and dword [ebp + 0x2c], ebx
push esi
call dword [0x4d8320]
test eax, eax
je 0x493787
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 0x493787
mov cl, byte [ebp + 0x63]
mov byte [ebp + 0x7f], cl
mov eax, dword [eax]
test eax, eax
je 0x493871
add dword [ebp + 0x58], 4
mov edi, eax
mov dword [ebp + 0xc], edi
test byte [ebp + 0x63], 4
lea ecx, [ebp + 0x3c]
je 0x4937fa
lea eax, [ebx + 0x3e]
push eax
call fcn.00443fa0
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 0x4937c3
push 0x20
pop eax
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x7c]
push eax
call fcn.00413de4
push 0x4c5bfc
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push dword [ebp + 0x78]
call fcn.00497e6e
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 0x49384e
movsx esi, word [ebp + 0x64]
lea eax, [esi + esi*2]
lea eax, [ebx + eax*2]
push eax
call fcn.00443fa0
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 0x493848
inc esi
movzx eax, byte [edi]
push eax
push 0x4c894c
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 0x49381d
dec eax
dec eax
and word [eax], 0
test byte [ebp + 0x7f], 2
je 0x493871
mov ecx, dword [ebp + 0x58]
cmp dword [ecx], 0
je 0x493871
mov word [eax], 0x20
sub eax, dword [ebp + 0x10]
inc eax
inc eax
sar eax, 1
add ebx, eax
mov eax, ecx
jmp 0x493774
push dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x4c]
push dword [ebp + 8]
call fcn.00443666
lea ecx, [ebp + 0x3c]
call fcn.0043db4f
lea ecx, [ebp + 0x5c]
call fcn.0043db4f
lea ecx, [ebp + 0x50]
call fcn.0043db4f
xor esi, esi
jmp 0x49467e
cmp esi, 0xffffffff
mov dword [ebp + 0xc], edi
jne 0x493a76
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 0x4938dd
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 0x4938f5
inc eax
inc eax
mov dword [ebp + 0x58], 3
mov dword [ebp + 0x78], eax
cmp word [eax], 0x2d
jne 0x493905
xor esi, esi
xor ebx, ebx
inc esi
inc eax
inc eax
mov dword [ebp + 0x78], eax
xor ecx, ecx
jmp 0x49393f
inc eax
inc eax
cmp cx, 0x2c
mov dword [ebp + 0x78], eax
je 0x493947
cmp cx, 0x3b
je 0x493947
and ecx, edx
cmp esi, edi
je 0x49393f
cmp cx, 0x52
jne 0x49392b
or ebx, 1
jmp 0x49393f
cmp cx, 0x57
jne 0x493936
or ebx, 2
jmp 0x49393f
cmp cx, 0x44
jne 0x49393f
or ebx, 4
mov cx, word [eax]
cmp cx, di
jne 0x493909
lea ecx, [ebp + 0x34]
call fcn.00443f5b
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x34]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00438db7
push dword [ebp + 0x34]
call fcn.00412ae5
mov esi, eax
mov ax, word [esi]
cmp ax, di
pop ecx
jne 0x49399a
lea ecx, [ebp + 0x34]
call fcn.0043db4f
cmp byte [ebp + 0x6f], 0
je 0x494433
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x493993
inc eax
mov esi, eax
jmp 0x49467e
cmp dword [ebp + 0x58], 3
jne 0x4939f1
cmp ebx, edi
je 0x4939f1
cmp ax, 0x5c
jne 0x4939db
cmp word [esi + 2], ax
jne 0x4939db
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 0x4939d4
call fcn.00402cb5
jmp 0x493a0a
call fcn.00402cb5
jmp 0x4939f1
push esi
call fcn.004a96f2
and eax, 0x10
and edx, 1
cmp eax, edi
pop ecx
jne 0x493a0a
cmp edx, 1
jne 0x493a0a
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 0x493a18
lea ecx, [ebp + 0x34]
jmp 0x4941e0
cmp dword [ebp + 0x68], edi
jne 0x493a2b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [ebp + 0x34]
jmp 0x494362
lea ecx, [ebp + 0x34]
call fcn.0043db4f
mov esi, dword [ebp - 0x3c]
test esi, esi
jne 0x494606
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.00412371
mov esi, dword [esi + 0x28]
test esi, esi
pop ecx
pop ecx
jne 0x494606
cmp dword [ebp + 0x68], esi
je 0x494433
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x494433
cmp esi, 0xfffffffe
jne 0x493e9e
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 0x493ac6
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.00443f5b
lea ecx, [ebp + 0x28]
call fcn.00443f5b
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00438db7
mov eax, dword [ebp + 0x78]
cmp word [eax], di
je 0x493b38
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00450152
mov eax, dword [ebp + 0x78]
cmp word [eax], di
pop ecx
pop ecx
je 0x493b38
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.00438db7
mov eax, dword [ebp + 0x78]
cmp word [eax], di
je 0x493b38
lea eax, [ebp]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00450152
pop ecx
pop ecx
mov eax, dword [ebp + 0x24]
cmp word [eax], di
je 0x493e8e
mov esi, dword [ebp + 0x20]
cmp esi, edi
jl 0x493e8e
jg 0x493b5a
cmp dword [ebp + 0x1c], edi
jb 0x493e8e
cmp dword [ebp + 4], edi
jl 0x493e8e
jg 0x493b6e
cmp dword [ebp], edi
jb 0x493e8e
mov eax, dword [ebp + 0x78]
cmp word [eax], di
je 0x493bb0
add dword [ebp + 0x78], 2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0040567a
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp + 0x40], eax
jle 0x493b99
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 0x493bb0
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0040567a
pop ecx
pop ecx
or dword [ebp + 0x68], 0xffffffff
and dword [ebp + 0x3c], 0
push 0x4c892c
lea ecx, [ebp + 0x54]
call fcn.00443fc7
push dword [ebp + 0x24]
lea ecx, [ebp + 0x54]
call fcn.00443fc7
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 0x493c49
mov eax, dword [ebp + 0x5c]
lea ecx, [ebp + 0x28]
mov dword [ebp + 0x68], eax
call fcn.0043db4f
lea ecx, [ebp + 0x24]
jmp 0x4941e0
cmp dword [ebp + 0x5c], 0
jne 0x493d0a
mov eax, dword [ebp + 0x28]
cmp word [eax], 0
je 0x493c97
push eax
call fcn.00412ae5
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 0x493c97
call edi
lea ecx, [ebp + 0x28]
mov esi, eax
call fcn.0043db4f
lea ecx, [ebp + 0x24]
jmp 0x494364
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.0044070a
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 0x493d03
jl 0x493cf7
cmp dword [ebp + 0x14], 0
ja 0x493d03
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 0x493d32
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 0x493d41
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 0x493d68
cmp ebx, ecx
je 0x493d5d
cmp ebx, 0xffffffff
je 0x493d5d
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x493c85
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 0x493d82
cmp esi, ecx
je 0x493d82
mov dword [edi], ebx
mov dword [edi + 4], eax
add edi, esi
cmp dword [ebp + 0x64], ecx
mov dword [ebp + 0x3c], edi
je 0x493da3
cmp dword [ebp + 0x34], ecx
je 0x493da3
push dword [ebp + 0x34]
lea eax, [ebx + edi]
push ecx
push eax
call fcn.004aa020
add esp, 0xc
xor ecx, ecx
cmp dword [ebp + 0x64], ecx
mov dword [ebp - 8], ebx
je 0x493e7e
cmp dword [ebp + 0x40], ecx
jle 0x493e7e
mov eax, dword [ebp + 0x18]
cmp eax, ecx
jl 0x493e7e
jg 0x493dce
cmp dword [ebp + 0x14], ecx
jbe 0x493e7e
cmp edi, ecx
je 0x493e7e
mov esi, dword [ebp - 0xc]
cmp esi, 1
jb 0x493e13
ja 0x493de5
cmp dword [ebp - 0x10], ecx
jb 0x493e13
push ecx
push 8
push eax
push dword [ebp + 0x14]
call fcn.004aa080
dec eax
js 0x493e7e
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 0x493e7e
cmp esi, ecx
ja 0x493e22
mov ebx, dword [ebp - 0x10]
cmp ebx, 0x10000
jb 0x493e3b
push ecx
push 4
push eax
push dword [ebp + 0x14]
call fcn.004aa080
dec eax
js 0x493e7e
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x10]
rep stosd dword es:[edi], eax
jmp 0x493e7e
cmp esi, ecx
ja 0x493e47
cmp ebx, 0x100
jb 0x493e71
push ecx
push 2
push eax
push dword [ebp + 0x14]
call fcn.004aa080
dec eax
js 0x493e7e
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 0x493e7e
push dword [ebp + 0x14]
push ebx
push edi
call fcn.004aa020
add esp, 0xc
lea ecx, [ebp + 0x28]
call fcn.0043db4f
lea ecx, [ebp + 0x24]
jmp 0x493a2e
lea ecx, [ebp + 0x28]
call fcn.0043db4f
lea ecx, [ebp + 0x24]
jmp 0x49442e
cmp esi, 0xfffffffc
jne 0x493fe1
lea ecx, [ebp + 0x30]
call fcn.00443f5b
lea ecx, [ebp + 0x64]
call fcn.00443f5b
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00438db7
mov eax, dword [ebp + 0x30]
cmp word [eax], di
jne 0x493ee3
lea ecx, [ebp + 0x64]
call fcn.0043db4f
lea ecx, [ebp + 0x30]
jmp 0x49442e
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.0040565a
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0040565a
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0040565a
add esp, 0x18
push 0x4c852c
lea ecx, [ebp + 0x54]
call fcn.00443fc7
push dword [ebp + 0x30]
lea ecx, [ebp + 0x54]
call fcn.00443fc7
cmp byte [ebp + 0x6f], 0
jne 0x493f39
cmp dword [ebp + 0x58], edi
jne 0x493f67
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 0x493f63
lea ecx, [ebp + 0x64]
call fcn.0043db4f
lea ecx, [ebp + 0x30]
jmp 0x4941e0
cmp eax, edi
jne 0x493fd1
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.0044070a
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 0x493fd1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [ebp + 0x64]
mov esi, eax
call fcn.0043db4f
lea ecx, [ebp + 0x30]
jmp 0x494364
lea ecx, [ebp + 0x64]
call fcn.0043db4f
lea ecx, [ebp + 0x30]
jmp 0x493a2e
cmp esi, 0xffffffe0
jne 0x49414e
lea ecx, [ebp + 0x44]
call fcn.00443f5b
lea ecx, [ebp + 0x64]
call fcn.00443f5b
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00438db7
mov eax, dword [ebp + 0x44]
cmp word [eax], di
jne 0x494026
lea ecx, [ebp + 0x64]
call fcn.0043db4f
lea ecx, [ebp + 0x44]
jmp 0x49442e
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.0040565a
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0040565a
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0040565a
mov esi, dword [ebp + 0x40]
add esp, 0x18
cmp esi, ebx
jge 0x494065
mov esi, ebx
mov ebx, dword [ebp + 0x58]
cmp ebx, esi
jle 0x49406e
mov ebx, esi
push 0x4c8900
lea ecx, [ebp + 0x54]
call fcn.00443fc7
push dword [ebp + 0x44]
lea ecx, [ebp + 0x54]
call fcn.00443fc7
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 0x4940ae
lea ecx, [ebp + 0x64]
call fcn.0043db4f
lea ecx, [ebp + 0x44]
jmp 0x4941e0
cmp eax, edi
jne 0x49413e
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.0044070a
test ebx, ebx
pop ecx
jge 0x4940f2
xor ebx, ebx
test ebx, ebx
jle 0x4940f8
mov eax, ebx
jmp 0x4940fb
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 0x49412e
lea ecx, [ebp + 0x64]
call fcn.0043db4f
lea ecx, [ebp + 0x44]
jmp 0x494364
cmp ebx, 1
jge 0x49413e
push 0xffffffffffffffff
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
lea ecx, [ebp + 0x64]
call fcn.0043db4f
lea ecx, [ebp + 0x44]
jmp 0x493a2e
cmp esi, 0xffffffc0
jne 0x494274
lea ecx, [ebp + 0x5c]
call fcn.00443f5b
lea ecx, [ebp + 0x58]
call fcn.00443f5b
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00438db7
mov eax, dword [ebp + 0x5c]
cmp word [eax], di
jne 0x494193
lea ecx, [ebp + 0x58]
call fcn.0043db4f
lea ecx, [ebp + 0x5c]
jmp 0x49442e
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x78]
push eax
mov dword [ebp + 0x64], edi
call fcn.0040565a
pop ecx
pop ecx
push 0x4c88dc
lea ecx, [ebp + 0x54]
call fcn.00443fc7
push dword [ebp + 0x5c]
lea ecx, [ebp + 0x54]
call fcn.00443fc7
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 0x4941ea
lea ecx, [ebp + 0x58]
call fcn.0043db4f
lea ecx, [ebp + 0x5c]
call fcn.0043db4f
jmp 0x4944d7
cmp eax, edi
jne 0x494264
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.0044070a
cmp dword [ebp + 0x64], edi
pop ecx
jge 0x49422b
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 0x494264
lea ecx, [ebp + 0x58]
call fcn.0043db4f
lea ecx, [ebp + 0x5c]
jmp 0x494364
lea ecx, [ebp + 0x58]
call fcn.0043db4f
lea ecx, [ebp + 0x5c]
jmp 0x493a2e
cmp esi, 0xfffffff8
jne 0x4943ee
lea ecx, [ebp + 0x58]
call fcn.00443f5b
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00438db7
mov eax, dword [ebp + 0x58]
cmp word [eax], di
jne 0x4942a9
lea ecx, [ebp + 0x58]
jmp 0x49442e
or dword [ebp + 0x5c], 0xffffffff
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x78]
push eax
mov dword [ebp + 0x64], edi
call fcn.0040565a
cmp dword [ebp + 0x64], edi
pop ecx
pop ecx
jne 0x4942c7
mov dword [ebp + 0x5c], edi
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0040565a
pop ecx
pop ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x4c88b8
lea ecx, [ebp + 0x54]
call fcn.00444016
push dword [ebp + 0x58]
lea ecx, [ebp + 0x54]
call fcn.00443fc7
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.0044070a
cmp byte [ebp + 0x6f], 0
pop ecx
jne 0x49436e
cmp dword [ebp + 0x64], esi
je 0x49436e
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 0x49434f
and dword [ebp + 0x68], 0
cmp dword [ebp + 0x68], 0
jne 0x4943e6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [ebp + 0x58]
mov esi, eax
call fcn.0043db4f
jmp 0x49467e
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 0x4943d9
cmp dword [ebp + 0x68], 0xffffffff
jne 0x49434f
cmp dword [ebp + 0x5c], 0xffffffff
je 0x4943bb
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [ebp + 0x40]
cmp eax, dword [ebp + 0x5c]
jae 0x49434b
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 0x4943a1
lea ecx, [ebp + 0x58]
call fcn.0043db4f
jmp 0x4944cd
lea ecx, [ebp + 0x58]
jmp 0x493a2e
cmp esi, 0xfffffff0
jne 0x494599
lea ecx, [ebp + 0x64]
call fcn.00443f5b
lea ecx, [ebp + 0x58]
call fcn.00443f5b
mov ecx, dword [ebp + 0x4c]
push 0x3b
push 0x2c
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00438db7
mov eax, dword [ebp + 0x64]
cmp word [eax], di
jne 0x49443d
lea ecx, [ebp + 0x58]
call fcn.0043db4f
lea ecx, [ebp + 0x64]
call fcn.0043db4f
mov esi, 0x80070057
jmp 0x49467e
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0040565a
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0040565a
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0040565a
add esp, 0x18
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x4c2f80
lea ecx, [ebp + 0x54]
call fcn.00444016
push dword [ebp + 0x64]
lea ecx, [ebp + 0x54]
call fcn.00443fc7
or dword [ebp + 0x68], 0xffffffff
cmp byte [ebp + 0x6f], 0
je 0x494491
xor ebx, ebx
jmp 0x494494
mov ebx, dword [ebp + 0x40]
lea ecx, [ebp + 0x58]
call fcn.0043db4f
lea ecx, [ebp + 0x64]
call fcn.0043db4f
test bl, 4
jne 0x4944f1
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.00440729
add esp, 0xc
cmp byte [ebp + 0x6f], 0
mov dword [ebp + 0x68], eax
je 0x4944f1
cmp dword [ebp + 0x68], 0xffffffff
jne 0x4944d7
and dword [ebp + 0x68], 0
cmp dword [ebp + 0x68], 0
je 0x493988
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x493993
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.0044070a
test bl, 2
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
pop ecx
jne 0x494574
cmp dword [ebp + 0x68], 0xffffffff
jne 0x493a33
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 0x494567
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_ConnectNamedPipe]
test eax, eax
jne 0x494567
call esi
cmp dword [ebp + 0x68], 0xffffffff
je 0x49457a
mov dword [ebp + 0x50], 0xffffffef
cmp dword [ebp + 0x68], 0xffffffff
jne 0x49457e
and dword [ebp + 0x68], 0
cmp dword [ebp + 0x50], 0xfffffff0
je 0x493a33
cmp dword [ebp + 0x68], 0
jne 0x493a33
call esi
jmp 0x493993
mov eax, dword [ebp + 0x78]
cmp word [eax], di
je 0x4945e9
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.004503bc
mov eax, dword [ebp + 0x78]
cmp word [eax], di
pop ecx
pop ecx
je 0x4945e9
add dword [ebp + 0x78], 2
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.004503bc
mov eax, dword [ebp + 0x78]
cmp word [eax], di
pop ecx
pop ecx
je 0x4945e6
add dword [ebp + 0x78], 2
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.004503bc
pop ecx
pop ecx
mov esi, dword [ebp + 0x50]
push dword [ebp + 0x10]
push esi
push dword [ebp + 0x3c]
call dword [0x4d82d4]
cmp eax, edi
mov dword [ebp + 0x68], eax
jg 0x493a33
xor esi, esi
inc esi
jmp 0x49467e
cmp byte [ebp + 0x4b], 0
jne 0x49461a
cmp byte [ebp + 0x3b], 0
jne 0x49461a
mov edi, dword [esi + 0x194]
jmp 0x49461d
mov edi, dword [ebp + 0x2c]
cmp byte [ebp + 0x3a], 0
je 0x494660
push 0x4c88b0
lea ecx, [ebp + 0x4c]
call fcn.0044cd74
push dword [ebp + 8]
lea ecx, [ebp + 0x4c]
call fcn.00443fc7
push 0x4c88a0
lea ecx, [ebp + 0x4c]
call fcn.00443fc7
push dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x2c]
push 0
push dword [ebp + 0x4c]
call fcn.0048ee6f
lea ecx, [ebp + 0x4c]
call fcn.0043db4f
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.00444521
mov esi, dword [ebp + 0xc]
lea ecx, [ebp + 0x54]
call fcn.0043db4f
lea ecx, [ebp - 0x44]
call fcn.0043db4f
lea ecx, [ebp - 0x48]
call fcn.0043db4f
lea ecx, [ebp - 0x40]
call fcn.0043db4f
lea ecx, [ebp + 8]
call fcn.0043db4f
mov eax, esi
pop esi
pop ebx
pop edi
add ebp, 0x70
leave
ret 8