Function at 0x409129
Capabilities:
Acquire debug privileges
Check for time delay via gettickcount
Check mutex on windows
Create process on windows
Read file via mapping
Resume thread

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x134
push ebx
push esi
push edi
push 0xffffffffffffffff
xor ebx, ebx
push 0xffffffffffffffff
mov esi, eax
mov byte [ebp + 0x6e], 1
mov byte [ebp + 0x6b], 1
mov byte [ebp + 0x2c], bl
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_SetProcessWorkingSetSize]
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
pop ecx
xor eax, eax
mov dword [ebp - 0xac], 0x48
mov dword [ebp - 0xa8], ebx
lea edi, [ebp - 0xa4]
rep stosd dword es:[edi], eax
or byte [ebp - 0x80], 0x80
mov ecx, esi
mov dword [ebp + 0x70], esi
call fcn.0040419b
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x18], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp + 0x6d], bl
mov byte [ebp + 0x6f], bl
mov byte [ebp + 0x6a], bl
mov byte [ebp + 0x6c], bl
mov dword [ebp + 0x28], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 0x54], ebx
mov byte [ebp + 0x5a], bl
mov dword [ebp], ebx
mov byte [ebp - 0x50], bl
mov ecx, eax
jmp 0x4095ec
push 2
lea eax, [ebp + 0x70]
push eax
push 0x4bd940
call fcn.00445f31
add esp, 0xc
test al, al
jne 0x40960d
push 3
lea eax, [ebp + 0x70]
push eax
push 0x4bd93c
call fcn.00445f31
add esp, 0xc
test al, al
je 0x4091f9
or byte [ebp + 0x6f], 2
jmp 0x4095e9
push 5
lea eax, [ebp + 0x70]
push eax
push 0x4bd934
call fcn.00445f31
add esp, 0xc
test al, al
je 0x409219
mov byte [ebp + 0x6a], 1
jmp 0x4095e9
push 5
lea eax, [ebp + 0x70]
push eax
push 0x4bd92c
call fcn.00445f31
add esp, 0xc
test al, al
je 0x40923c
mov dword [ebp + 0x54], 1
jmp 0x4095e9
push 6
pop edi
push edi
lea eax, [ebp + 0x70]
push eax
push 0x4bd924
call fcn.00445f31
add esp, 0xc
test al, al
je 0x40925e
mov byte [ebp + 0x6c], 2
jmp 0x4095e9
push 7
lea eax, [ebp + 0x70]
push eax
push 0x4bd91c
call fcn.00445f31
add esp, 0xc
test al, al
je 0x40927d
mov byte [ebp + 0x6c], bl
jmp 0x4095e9
mov esi, dword [sym.imp.SHLWAPI.DLL_StrCmpNIW]
push edi
push dword [ebp + 0x70]
push 0x4bd90c
call esi
test eax, eax
jne 0x4092cd
add dword [ebp + 0x70], 0xc
mov esi, dword [ebp + 0x70]
lea eax, [ebp + 0x70]
push eax
mov dword [ebp + 0x28], esi
call fcn.00405615
pop ecx
mov ecx, dword [ebp + 0x70]
mov eax, ecx
sub eax, esi
sar eax, 1
mov dword [ebp + 4], eax
call fcn.00404099
or byte [ebp + 0x6f], 1
mov dword [ebp + 0x70], eax
mov byte [ebp + 0x6b], bl
mov byte [ebp + 0x6e], 1
mov dword [ebp - 0x80], ebx
jmp 0x4095e9
push edi
push dword [ebp + 0x70]
push 0x4bd8fc
call esi
test eax, eax
jne 0x40930f
add dword [ebp + 0x70], 0xc
mov eax, dword [ebp + 0x70]
push 0x8d
mov dword [ebp + 0x50], eax
lea eax, [ebp + 0x50]
push ebx
push eax
call fcn.00419ccc
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x50]
add esp, 0xc
cmp word [eax], bx
je 0x4095e9
mov dword [ebp - 0x40], eax
jmp 0x4095e9
push 5
lea eax, [ebp + 0x70]
push eax
push 0x4bd8f4
call fcn.00445f31
add esp, 0xc
test al, al
je 0x40932f
mov byte [ebp + 0x6b], 1
jmp 0x4095e9
push 7
lea eax, [ebp + 0x70]
push eax
push 0x4bd8ec
call fcn.00445f31
add esp, 0xc
test al, al
je 0x40934e
mov byte [ebp + 0x6b], bl
jmp 0x4095e9
push edi
lea eax, [ebp + 0x70]
push eax
push 0x4bd8e4
call fcn.00445f31
add esp, 0xc
test al, al
je 0x40936d
mov byte [ebp + 0x6d], 1
jmp 0x4095e9
push edi
lea eax, [ebp + 0x70]
push eax
push 0x4bd8dc
call fcn.00445f31
add esp, 0xc
test al, al
je 0x40938c
mov byte [ebp + 0x6e], 1
jmp 0x4095e9
push 7
lea eax, [ebp + 0x70]
push eax
push 0x4bd8d4
call fcn.00445f31
add esp, 0xc
test al, al
jne 0x4095e9
push 8
lea eax, [ebp + 0x70]
push eax
push 0x4bd8c8
call fcn.00445f31
add esp, 0xc
test al, al
je 0x4093c6
mov byte [ebp + 0x6e], bl
jmp 0x4095e9
push 0xa
lea eax, [ebp + 0x70]
push eax
push 0x4bd8bc
call fcn.00445f31
add esp, 0xc
test al, al
je 0x4093e6
mov byte [ebp + 0x5a], 1
jmp 0x4095e9
push edi
lea eax, [ebp + 0x70]
push eax
push 0x4bd8b4
call fcn.00445f31
add esp, 0xc
test al, al
lea eax, [ebp + 0x70]
je 0x40941d
lea edx, [ebp + 0x64]
mov dword [ebp + 0x64], ebx
call fcn.004041ae
test eax, eax
je 0x4095e9
mov eax, dword [ebp + 0x64]
mov dword [ebp - 0x20], eax
jmp 0x4095e9
push 0xa
push eax
push 0x4bd8a8
call fcn.00445f31
add esp, 0xc
test al, al
je 0x40943a
mov byte [ebp + 0x2c], 1
jmp 0x4095e9
push 9
lea eax, [ebp + 0x70]
push eax
push 0x4bd89c
call fcn.00445f31
add esp, 0xc
test al, al
lea eax, [ebp + 0x70]
je 0x409478
mov esi, dword [ebp + 0x70]
push eax
call fcn.00405615
mov eax, dword [ebp + 0x70]
pop ecx
sub eax, esi
push 0xffffffffffffffff
sar eax, 1
push eax
push esi
mov ecx, 0x4d7cc8
call fcn.00443ee3
jmp 0x4095e9
push 0xe
push eax
push 0x4bd88c
call fcn.00445f31
add esp, 0xc
test al, al
lea eax, [ebp + 0x70]
je 0x4094e1
lea edx, [ebp + 0x64]
mov dword [ebp + 0x64], ebx
call fcn.004041ae
test eax, eax
je 0x4095e9
cmp dword [ebp + 0x7c], 1
jne 0x4095e9
mov esi, dword [ebp + 0x64]
lea eax, [esi + 0x63]
push 0x64
cdq
pop ecx
idiv ecx
mov edi, eax
jmp 0x4094c7
dec edi
js 0x4094cf
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp byte [0x4d62ec], bl
jg 0x4094bc
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, esi
mov dword [0x4d7c48], eax
jmp 0x4095e9
push 0xa
push eax
push 0x4bd880
call fcn.00445f31
add esp, 0xc
test al, al
je 0x409597
mov esi, dword [ebp + 0x70]
mov dword [ebp + 0x4c], esi
xor eax, eax
jmp 0x409511
call fcn.0043daaf
test al, al
jne 0x409519
inc esi
inc esi
mov dword [ebp + 0x70], esi
mov ax, word [esi]
cmp ax, bx
jne 0x409503
sub esi, dword [ebp + 0x4c]
sar esi, 1
cmp esi, ebx
jle 0x4095e9
lea eax, [esi + esi + 0xc]
mov dword [ebp], eax
push dword [ebp]
push ebx
push dword [0x4d81f4]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov edi, eax
cmp edi, ebx
jne 0x409550
push 2
call fcn.00443c92
cmp eax, 4
pop ecx
je 0x40952d
lea eax, [esi + esi + 4]
cdq
mov dword [edi], eax
mov eax, dword [ebp + 0x4c]
mov dword [edi + 4], 0xaa55
mov dword [edi + 4], edx
mov cx, word [eax]
add edi, 8
cmp cx, 0x2a
mov dword [ebp], edi
je 0x409579
cmp cx, 0x21
jne 0x409584
mov cl, byte [eax]
inc eax
inc eax
mov byte [ebp - 0x50], cl
mov dword [ebp + 0x4c], eax
dec esi
push esi
push dword [ebp + 0x4c]
push edi
call fcn.004055fd
add esp, 0xc
mov word [edi + esi*2], bx
jmp 0x4095e9
push 7
push dword [ebp + 0x70]
push 0x4bd878
call fcn.0043eeea
add esp, 0xc
test al, al
je 0x4095cd
add dword [ebp + 0x70], 0xe
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0x70]
push eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call fcn.004472b5
mov eax, dword [ebp - 0x38]
pop ecx
mov dword [ebp + 0x18], eax
jmp 0x4095e8
mov eax, dword [ebp + 0x70]
mov cx, word [eax]
cmp cx, 0x2d
jne 0x4095f3
cmp word [eax + 2], cx
jne 0x4095f3
lea eax, [ebp + 0x70]
push eax
call fcn.00405615
pop ecx
mov ecx, dword [ebp + 0x70]
call fcn.00404099
jmp 0x4095ff
cmp cx, 0x3d
jne 0x409610
inc eax
inc eax
mov byte [ebp + 0x6e], 1
mov dword [ebp + 0x70], eax
cmp word [eax], bx
jne 0x4091be
jmp 0x409610
mov eax, dword [ebp + 0x70]
mov ecx, eax
call fcn.00404099
mov edi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
push eax
mov dword [ebp + 0x70], eax
call edi
push ebx
mov dword [ebp + 0x7c], eax
mov byte [ebp + 0x4c], bl
call dword [sym.imp.KERNEL32.DLL_SetLastError]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_SetProcessWorkingSetSize]
cmp dword [ebp - 0x20], ebx
jbe 0x409655
push dword [ebp - 0x20]
call fcn.00404002
pop ecx
mov esi, dword [0x4d7cc4]
push esi
call edi
cmp eax, 0x11
jl 0x409666
push 0x11
pop eax
mov ecx, dword [ebp + 0x7c]
lea esi, [esi + eax*2]
lea eax, [eax + ecx + 0xa0]
push eax
lea ecx, [ebp + 0x20]
call fcn.00443f79
cmp word [esi], 0x3d
jne 0x409688
inc esi
inc esi
mov byte [ebp + 0x6e], 1
push esi
call edi
mov dword [ebp + 0x7c], eax
inc eax
push eax
push esi
push dword [ebp + 0x20]
call fcn.004055fd
mov esi, dword [ebp + 0x7c]
add esp, 0xc
push dword [ebp + 0x70]
call edi
inc eax
push eax
mov eax, dword [ebp + 0x20]
push dword [ebp + 0x70]
lea eax, [eax + esi*2]
push eax
call fcn.004055fd
push 0x4bd864
push dword [ebp + 0x20]
call fcn.004040e1
add esp, 0x14
cmp eax, ebx
je 0x4096df
movzx eax, word [eax + 0x10]
cmp ax, bx
je 0x4096db
call fcn.0043daaf
test al, al
je 0x4096df
mov byte [ebp + 0x4c], 1
xor eax, eax
mov byte [ebp - 0xc0], bl
or dword [ebp + 0x5c], 0xffffffff
lea edi, [ebp - 0xbf]
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 - 0xc0]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x30], 8
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x4c], 0xc
mov dword [ebp - 0x44], ebx
call fcn.0044070a
cmp byte [0x4d62ec], bl
mov eax, dword [ebp - 0x40]
pop ecx
mov dword [ebp + 0x50], eax
mov dword [ebp + 8], ebx
jle 0x40a0d9
call fcn.00402de0
mov eax, dword [ebp + 0x20]
xor esi, esi
xor edx, edx
cmp word [eax], bx
mov byte [ebp + 0x7f], 0xa
mov dword [ebp + 0x64], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp + 0x24], ebx
je 0x4097eb
mov ecx, dword [ebp + 0x7c]
cmp edx, 4
jg 0x4097eb
mov cx, word [eax]
or cx, 0x20
cmp cx, 0x61
mov byte [ebp + edx - 0x58], cl
jb 0x409781
cmp cx, 0x7a
ja 0x409781
inc edx
inc eax
inc eax
cmp word [eax], bx
jne 0x409759
cmp edx, 4
jne 0x4097eb
mov ax, word [eax]
call fcn.0043daaf
test al, al
jne 0x4097ad
cmp dword [ebp - 0x58], 0x6d616574
jne 0x4097eb
cmp cx, 0x5c
je 0x4097eb
cmp cx, 0x2f
je 0x4097eb
cmp cx, 0x2e
je 0x4097eb
push 0x4bd83c
lea ecx, [ebp + 0x7c]
call fcn.0044cd74
push dword [ebp + 0x70]
lea ecx, [ebp + 0x7c]
call fcn.00443fc7
mov al, byte [ebp + 0x6c]
push dword [ebp + 0x7c]
or al, 1
mov byte [0x4d7be0], al
call fcn.00403eec
pop ecx
lea ecx, [ebp + 0x7c]
mov byte [0x4d7be0], bl
call fcn.0043db4f
jmp 0x40a0c0
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_SetProcessWorkingSetSize]
cmp byte [ebp + 0x6f], bl
je 0x409805
or byte [ebp + 0x6f], 2
mov al, byte [ebp + 0x6a]
mov dword [ebp + 0x1c], 4
mov byte [ebp + 0x63], al
cmp dword [ebp + 0x54], ebx
je 0x40982f
cmp dword [ebp + 0x24], ebx
je 0x40982f
push 1
call fcn.0043f8c7
pop ecx
push 0xffffffffffffffff
push dword [ebp + 0x24]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp dword [ebp + 0x28], ebx
mov eax, dword [ebp + 0x20]
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x38], ebx
mov dword [ebp - 0x3c], eax
mov dword [ebp + 0xc], ebx
je 0x409c56
lea ecx, [ebp + 0x30]
mov dword [ebp + 0x18], ebx
call fcn.00443f5b
mov edi, dword [ebp + 0x54]
neg edi
sbb edi, edi
and edi, 0x100000
cmp esi, ebx
mov byte [ebp + 0x5b], bl
mov dword [ebp - 0x28], edi
jne 0x4099fe
cmp dword [ebp + 0x64], ebx
jne 0x4099a6
mov ecx, dword [ebp + 0x28]
mov eax, dword [ebp + 4]
lea eax, [ecx + eax*2]
xor ecx, ecx
mov cx, word [eax]
cmp cx, bx
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x10], ecx
je 0x409892
mov word [eax], bx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x4bcbe4
lea ecx, [ebp + 0x30]
call fcn.00444016
push dword [ebp + 0x28]
lea ecx, [ebp + 0x30]
call fcn.00443fc7
push dword [ebp + 0x30]
push ebx
push 6
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingW]
push ebx
mov dword [ebp + 0x64], eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
cmp dword [ebp + 0x54], ebx
je 0x40996d
cmp dword [ebp - 0x18], ebx
jne 0x409926
push 0xffffffffffffffff
push 0x4bcbcc
lea ecx, [ebp - 4]
call fcn.0044cdaa
push dword [ebp + 0x28]
lea ecx, [ebp - 4]
call fcn.00443fc7
push dword [ebp - 4]
lea eax, [ebp - 0x4c]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
jmp 0x409904
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
push dword [ebp - 4]
lea eax, [ebp - 0x4c]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x4098fc
lea ecx, [ebp - 4]
call fcn.0043db4f
cmp dword [ebp - 0x18], ebx
je 0x40996d
cmp dword [ebp + 0x24], ebx
jne 0x40996d
push 0xffffffffffffffff
push 0x4bcbb4
lea ecx, [ebp - 0x1c]
call fcn.0044cdaa
push dword [ebp + 0x28]
lea ecx, [ebp - 0x1c]
call fcn.00443fc7
jmp 0x40994f
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x4c]
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
cmp eax, ebx
mov dword [ebp + 0x24], eax
je 0x409947
lea ecx, [ebp - 0x1c]
call fcn.0043db4f
mov eax, dword [ebp + 0x10]
cmp ax, bx
je 0x40997b
mov ecx, dword [ebp + 0x14]
mov word [ecx], ax
cmp dword [ebp + 0x64], ebx
jne 0x4099a6
push dword [ebp + 0x30]
lea eax, [edi + 0x80]
push eax
push ebx
push 4
lea eax, [ebp - 0x4c]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
cmp eax, ebx
setne byte [ebp + 0x5b]
cmp eax, ebx
mov dword [ebp + 0x64], eax
je 0x4099bc
lea eax, [edi + 0x80]
push eax
push ebx
push ebx
push 6
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov esi, eax
cmp byte [ebp + 0x5b], bl
je 0x4099fe
cmp esi, ebx
je 0x4099d4
push 0x80
push ebx
push esi
call fcn.004040ac
add esp, 0xc
cmp dword [ebp + 0x24], ebx
je 0x4099fe
lea ecx, [ebp + 0x30]
call fcn.0043db4f
lea ecx, [ebp + 0xc]
call fcn.0043db4f
lea ecx, [ebp + 0x38]
call fcn.0043db4f
lea ecx, [ebp + 0x48]
call fcn.0043db4f
jmp 0x409812
cmp byte [ebp + 0x7f], bl
jle 0x409a17
dec byte [ebp + 0x7f]
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_SetProcessWorkingSetSize]
xor edx, edx
xor edi, edi
cmp esi, ebx
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x34], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp + 0x14], ebx
je 0x409a5a
mov edi, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
push 0xfffffffffffffffe
pop eax
and ecx, eax
mov dword [ebp + 0x34], ecx
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
and ecx, eax
and edi, eax
and edx, eax
mov eax, dword [esi + 0x30]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [ebp + 0x44], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp + 0x14], eax
mov dword [esi + 0x20], ebx
cmp dword [ebp + 0x54], ebx
je 0x409a9e
cmp esi, ebx
je 0x409a71
mov eax, dword [esi]
cmp eax, 0xffffffff
mov ecx, dword [esi + 4]
jne 0x409a71
cmp ecx, eax
je 0x409a9e
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea ecx, [ebp + 0x30]
call fcn.0043db4f
lea ecx, [ebp + 0xc]
call fcn.0043db4f
lea ecx, [ebp + 0x38]
call fcn.0043db4f
lea ecx, [ebp + 0x48]
call fcn.0043db4f
jmp 0x409805
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x28]
add eax, edx
add eax, dword [ebp + 0x34]
add ecx, 0x80
lea eax, [eax + edi + 0x80]
cmp eax, ecx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x40], esi
jle 0x409ad4
push eax
push ebx
push ebx
push 6
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x10], eax
cmp dword [ebp - 0x28], ebx
jle 0x409b1e
cmp edi, ebx
jle 0x409b1e
lea eax, [edi + 8]
push eax
lea ecx, [ebp + 0xc]
call fcn.00443e29
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [esi + 0x80]
push ecx
push eax
mov dword [ebp - 0x3c], eax
call fcn.00413de4
mov eax, dword [ebp - 0x3c]
mov word [edi + eax], bx
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
and eax, 1
and ecx, ebx
add esp, 0xc
or eax, ecx
je 0x409b1e
mov al, byte [ebp + 0x6a]
and al, 0xfe
mov byte [ebp + 0x63], al
cmp dword [ebp + 0x34], ebx
lea eax, [edi + 0x80]
mov dword [ebp + 0x3c], eax
jle 0x409b79
mov eax, dword [ebp - 0x28]
sub eax, edi
jns 0x409b35
xor eax, eax
cmp dword [ebp + 0x44], eax
jle 0x409b3d
mov dword [ebp + 0x44], eax
cmp dword [ebp + 0x40], ebx
je 0x409b79
mov eax, dword [ebp + 0x34]
add eax, 8
push eax
lea ecx, [ebp + 0x38]
call fcn.00443e29
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp + 0x34]
push 8
add ecx, eax
push ebx
push ecx
call fcn.004040ac
mov ecx, dword [ebp + 0x3c]
push dword [ebp + 0x34]
mov eax, dword [ebp + 0x40]
add eax, ecx
push eax
push dword [ebp + 0x38]
call fcn.00413de4
add esp, 0x18
mov eax, dword [ebp + 0x34]
add dword [ebp + 0x3c], eax
cmp dword [ebp + 0x44], ebx
jle 0x409bcc
mov eax, dword [ebp - 0x28]
sub eax, edi
jns 0x409b8d
xor eax, eax
cmp dword [ebp + 0x44], eax
jle 0x409b95
mov dword [ebp + 0x44], eax
cmp dword [ebp + 0x40], ebx
je 0x409bcc
mov edi, dword [ebp + 0x44]
lea eax, [edi + 8]
push eax
lea ecx, [ebp + 0x48]
call fcn.00443e29
mov ecx, dword [ebp + 0x3c]
mov eax, dword [ebp + 0x40]
push edi
add eax, ecx
push eax
push dword [ebp + 0x48]
call fcn.00413de4
mov eax, dword [ebp + 0x48]
push 8
add edi, eax
push ebx
push edi
call fcn.004040ac
add esp, 0x18
mov eax, dword [ebp + 0x44]
add dword [ebp + 0x3c], eax
cmp dword [ebp - 0x24], ebx
jle 0x409c14
cmp dword [ebp + 0x40], ebx
je 0x409c14
mov edi, dword [ebp - 0x24]
lea eax, [edi + 8]
push eax
lea ecx, [ebp + 8]
call fcn.00443e29
mov ecx, dword [ebp + 0x3c]
mov eax, dword [ebp + 0x40]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00413de4
mov eax, dword [ebp + 8]
push 8
add edi, eax
push ebx
push edi
call fcn.004040ac
mov eax, dword [ebp + 8]
add esp, 0x18
mov dword [ebp + 0x50], eax
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
add eax, ecx
add eax, dword [ebp - 0x24]
cmp dword [ebp + 0x14], 0x10
jl 0x409c40
cmp dword [eax], 0x10
jb 0x409c40
cmp dword [eax + 4], 0x10
jne 0x409c40
push dword [eax + 0xc]
push dword [eax + 8]
call fcn.00408392
pop ecx
pop ecx
mov dword [ebp + 0x18], eax
cmp dword [ebp + 0x10], ebx
je 0x409c4e
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
lea ecx, [ebp + 0x30]
call fcn.0043db4f
cmp dword [ebp + 0x54], ebx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
je 0x409c7c
push 6
lea eax, [ebp - 0x34]
push eax
push 0x4bd8e4
call fcn.00445f31
add esp, 0xc
test al, al
je 0x409c7c
mov byte [ebp + 0x6d], 1
cmp byte [ebp + 0x6d], bl
je 0x409c89
or dword [ebp - 0x80], 1
mov word [ebp - 0x7c], bx
xor eax, eax
cmp dword [ebp + 0x18], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x68], ebx
je 0x409cba
lea eax, [ebp - 0xac]
push eax
push dword [ebp + 0x18]
lea ecx, [ebp - 0x64]
call fcn.00404884
mov eax, dword [ebp - 0x60]
neg eax
sbb eax, eax
and eax, 0x80000
cmp dword [ebp + 0x48], ebx
je 0x409cc6
mov dword [ebp + 0x1c], 0x404
or eax, dword [ebp + 0x1c]
cmp byte [ebp + 0x6c], bl
jne 0x409cf1
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xac]
push ecx
push dword [ebp + 0x38]
push dword [ebp + 0x48]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x34]
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
jmp 0x409d20
movsx ecx, byte [ebp + 0x63]
push ebx
push 0x4bd3f8
push ebx
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xac]
push ecx
push dword [ebp + 0x38]
push dword [ebp + 0x48]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x34]
push dword [ebp + 0x50]
call fcn.00405766
add esp, 0x38
lea ecx, [ebp - 0x64]
mov dword [ebp + 0x1c], eax
call fcn.00404947
cmp dword [ebp + 0x54], ebx
je 0x409d5b
mov edi, dword [ebp - 0xac]
push 0x48
lea eax, [ebp - 0xac]
push ebx
push eax
call fcn.004040ac
add esp, 0xc
mov dword [ebp - 0xac], edi
mov dword [ebp - 0x80], 0x80
mov byte [ebp + 0x6d], bl
mov dword [ebp + 0x50], ebx
lea ecx, [ebp + 0xc]
call fcn.0043db4f
lea ecx, [ebp + 0x38]
call fcn.0043db4f
lea ecx, [ebp + 0x48]
call fcn.0043db4f
mov edi, dword [ebp - 0xc]
cmp edi, ebx
je 0x409d7f
mov dword [ebp - 0x54], ebx
jmp 0x409d85
or edi, 0xffffffff
mov dword [ebp - 0x54], edi
cmp esi, ebx
je 0x409db3
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
cmp dword [ebp + 0x54], ebx
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x54]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], eax
mov dword [esi], 1
mov dword [esi + 4], ebx
jne 0x409db3
push esi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
cmp dword [ebp + 0x1c], ebx
jne 0x409dc1
cmp dword [ebp + 0x54], ebx
je 0x40a0d9
cmp byte [ebp + 0x2c], bl
je 0x409e06
test byte [0x4d8d7c], 8
jne 0x409de6
or byte [0x4d8d7c], 8
push ebx
push 2
push 0x4bd814
call fcn.00412ebf
add esp, 0xc
test byte [0x4d8d7c], 4
jne 0x409e06
or byte [0x4d8d7c], 4
push ebx
push 2
push 0x4bca20
call fcn.00412ebf
add esp, 0xc
cmp byte [ebp + 0x6b], bl
je 0x409e20
cmp dword [0x4d7ce8], ebx
jne 0x409e28
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateJobObjectW]
mov dword [0x4d7ce8], eax
cmp dword [0x4d7ce8], ebx
je 0x409e37
push dword [ebp - 0x14]
push dword [0x4d7ce8]
call dword [sym.imp.KERNEL32.DLL_AssignProcessToJobObject]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
cmp dword [ebp - 0x14], ebx
je 0x409e53
push 0x1388
push dword [ebp - 0x14]
call dword [sym.imp.USER32.DLL_WaitForInputIdle]
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call edi
push 0xffffffffffffffff
push 0xffffffffffffffff
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_SetProcessWorkingSetSize]
cmp dword [0x4d7c4c], ebx
je 0x409e82
push dword [0x4d7c4c]
call edi
cmp dword [ebp + 0x54], ebx
mov eax, dword [ebp - 0x14]
mov dword [0x4d7c4c], ebx
mov dword [0x4d7c4c], eax
je 0x409ea0
push eax
call edi
mov dword [ebp - 0x14], ebx
jmp 0x409805
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_SetProcessWorkingSetSize]
mov edi, dword [sym.imp.USER32.DLL_GetLastInputInfo]
lea eax, [ebp - 0x30]
push eax
call edi
push 1
call fcn.0043f8c7
cmp dword [ebp - 0x20], ebx
pop ecx
jbe 0x40a06e
lea eax, [ebp - 0x30]
mov esi, 0x103
push eax
mov dword [ebp + 0x5c], esi
call edi
cmp byte [ebp + 0x5a], bl
jne 0x409fc9
cmp byte [ebp + 0x4c], bl
je 0x40a01c
cmp byte [0x4d62ec], bl
jle 0x40a0c0
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edi, 0xc8
call esi
mov dword [ebp + 4], eax
mov dword [ebp + 0x7c], eax
mov dword [ebp + 0x50], ebx
cmp byte [0x4d62ec], bl
jle 0x409f5c
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.DLL_GetLastInputInfo]
mov eax, dword [ebp - 0x2c]
sub eax, dword [0x4d7c48]
test eax, eax
jg 0x409f5c
cmp byte [ebp + 0x6e], bl
je 0x409f5c
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
call esi
mov dword [ebp + 0x7c], eax
sub eax, dword [ebp + 4]
cmp eax, 0x64
jae 0x409f5c
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
inc dword [ebp + 0x50]
cmp dword [ebp + 0x50], 3
jl 0x409f10
mov eax, dword [ebp + 0x7c]
sub eax, dword [ebp + 4]
cmp byte [0x4d62ec], bl
mov dword [ebp + 0x7c], eax
jle 0x409fd6
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [0x4d7c48]
test ecx, ecx
jg 0x409fd6
cmp byte [ebp + 0x6e], bl
je 0x409f84
cmp eax, 0x64
jb 0x409fd6
cmp eax, edi
jae 0x409f94
mov eax, edi
sub eax, dword [ebp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp byte [0x4d62ec], bl
jg 0x409f05
jmp 0x40a0c0
push 0x64
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
lea eax, [ebp + 0x5c]
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0x5c], esi
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
cmp dword [ebp + 0x5c], esi
jne 0x40a0ab
cmp byte [0x4d62ec], bl
jge 0x409fa5
jmp 0x40a0ab
mov eax, dword [ebp - 0x2c]
mov ecx, eax
sub ecx, dword [0x4d7c48]
test ecx, ecx
jle 0x409fea
mov dword [0x4d7c48], eax
push dword [ebp + 0x4c]
mov edi, 0x4d7ce8
push dword [ebp + 0x2c]
lea eax, [ebp - 0x14]
call fcn.004090a3
cmp dword [ebp], ebx
pop ecx
pop ecx
je 0x40a014
push 1
push dword [ebp - 0x50]
push dword [ebp]
call fcn.00405f3a
add esp, 0xc
mov dword [ebp + 0x5c], ebx
jmp 0x40a0c0
cmp byte [0x4d62ec], bl
jl 0x40a06b
mov edi, 0xc8
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
je 0x40a043
cmp eax, ebx
jne 0x40a043
cmp dword [ebp + 0x5c], esi
jne 0x40a06b
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.DLL_GetLastInputInfo]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
sub ecx, dword [0x4d7c48]
test ecx, ecx
jg 0x40a066
cmp byte [0x4d62ec], bl
jge 0x40a029
jmp 0x40a06b
mov dword [0x4d7c48], eax
push ebx
jmp 0x40a0ae
cmp byte [ebp + 0x6e], bl
mov dword [ebp + 0x5c], ebx
je 0x40a0c0
cmp byte [0x4d62ec], bl
jl 0x40a0ab
mov esi, 0x103
push 0x64
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
lea eax, [ebp + 0x5c]
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0x5c], esi
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
cmp dword [ebp + 0x5c], esi
jne 0x40a0ab
cmp byte [0x4d62ec], bl
jge 0x40a083
push dword [ebp + 0x4c]
push dword [ebp + 0x2c]
lea eax, [ebp - 0x14]
mov edi, 0x4d7ce8
call fcn.004090a3
pop ecx
pop ecx
test byte [ebp + 0x6f], 2
je 0x40a0d9
push ebx
push ebx
push 0x895440
mov ecx, 0x4d80e8
call fcn.004159e8
jmp 0x40a0c6
mov esi, dword [ebp + 0x5c]
lea ecx, [ebp + 8]
call fcn.0043db4f
lea ecx, [ebp + 0x20]
call fcn.0043db4f
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4