Function at 0x10039af9
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
movzx eax, byte [ebp + 0x28]
test eax, eax
je 0x10039e50
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x6c], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x74]
movzx eax, byte [eax]
test eax, eax
je 0x10039b80
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [eax], 0xfffffff6
jmp 0x10039e4b
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x68], eax
push 2
mov ecx, dword [ebp - 0x18]
call fcn.10012743
cmp dword [eax], 0
je 0x10039ce6
push 0
mov ecx, dword [ebp - 0x18]
call fcn.10012743
push 1
mov ecx, dword [ebp - 0xc]
call fcn.10012743
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x10039c45
mov dword [ebp - 0x30], 1
jmp 0x10039c49
and dword [ebp - 0x30], 0
cmp dword [ebp - 0x30], 0
jne 0x10039c59
push 0
mov ecx, dword [ebp - 0x18]
call fcn.10012743
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, 0x6721f7d
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx]
jge 0x10039c82
push 1
mov ecx, dword [ebp - 0xc]
call fcn.10012743
cmp dword [eax], 0
je 0x10039c82
mov dword [ebp - 0x28], 1
jmp 0x10039c86
and dword [ebp - 0x28], 0
push 1
mov ecx, dword [ebp - 0xc]
call fcn.10012743
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax]
jge 0x10039ca2
or eax, 0xffffffff
jne 0x10039ca2
and dword [ebp - 0x40], 0
jmp 0x10039ca9
mov dword [ebp - 0x40], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x40], eax
je 0x10039cbc
mov dword [ebp - 0x14], 1
jmp 0x10039cc0
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
cmp dword [ebp - 0x14], 0xffffffff
jle 0x10039cdd
push 1
mov ecx, dword [ebp - 0xc]
call fcn.10012743
cmp dword [eax], 0
je 0x10039ce6
mov dword [ebp - 0x20], 1
jmp 0x10039cea
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 0xfe9f
jle 0x10039cfc
mov dword [ebp - 0x50], 1
jmp 0x10039d00
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x50], eax
jge 0x10039d13
mov dword [ebp - 0x38], 1
jmp 0x10039d17
and dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], 0x8dac
je 0x10039e42
mov dword [ebp - 0x10], 0xffffffff
mov byte [ebp - 5], 0
movzx eax, byte [ebp - 5]
test eax, eax
je 0x10039d50
push 0
push 0x121f
push 0
push 0x955
push 0x1fe2
call dword [sym.imp.GDI32.dll_ExtCreatePen]
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x10039e04
mov eax, dword [ebp - 0x48]
cmp dword [eax], 0
je 0x10039da2
cmp dword [ebp - 0x10], 0xe7ba
jge 0x10039d76
mov dword [ebp - 0x24], 1
jmp 0x10039d7a
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
sub eax, dword [ecx]
cmp dword [ebp - 0x24], eax
jne 0x10039da2
mov dword [ebp - 0x2c], 1
jmp 0x10039da6
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
dec eax
jne 0x10039db5
mov dword [ebp - 0x34], 1
jmp 0x10039db9
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0xe0], eax
push 1
mov ecx, dword [ebp - 0xc]
call fcn.10012743
xor eax, eax
jne 0x10039de6
mov eax, 0x1209
test eax, eax
je 0x10039df0
push 0
mov ecx, dword [ebp - 0xc]
call fcn.10012743
mov eax, 0xe198
neg eax
cmp eax, 0x1846e972
je 0x10039e04
and dword [ebp - 0x3c], 0
jmp 0x10039e0b
mov dword [ebp - 0x3c], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x3c], eax
jle 0x10039e1e
mov dword [ebp - 0x44], 1
jmp 0x10039e22
and dword [ebp - 0x44], 0
cmp dword [ebp - 0x44], 0x2db60270
jle 0x10039e34
mov dword [ebp - 0x4c], 1
jmp 0x10039e38
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x4c]
mov dword [eax], ecx
jmp 0x10039e4b
mov eax, dword [ebp - 0x68]
mov dword [eax], 0
jmp 0x10039f3d
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xb8], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x70]
movzx eax, byte [eax]
test eax, eax
je 0x10039f09
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax]
cmp dword [eax], 0
jbe 0x10039f07
push 1
push dword [ebp - 0x54]
push 1
push 1
mov eax, dword [ebp - 0xa8]
push dword [eax]
push 0x74ae
push 0x7ec2
mov eax, dword [ebp - 0xb0]
push dword [eax]
push 0x5dd2
push 0x15b7
push 0x62c8
call fcn.1002b2fa
add esp, 0x2c
jmp 0x10039ec1
jmp 0x10039f3d
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
movzx eax, byte [eax]
test eax, eax
je 0x10039f3d
push 0
push 0x207f
push 0
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov esp, ebp
pop ebp
ret