Function at 0x4036db
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push ebx
push esi
push edi
push 4
pop esi
push esi
lea ecx, [ebp - 0x38]
call fcn.00422862
mov dword [ebp - 4], 0xfffffffb
xor ebx, ebx
mov dword [ebp - 0x14], 0xfffffffc
inc ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 0
jmp 0x403723
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x38]
mov dword [eax + ecx*4], esi
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], esi
jl 0x403717
mov dword [ebp - 4], 3
cmp dword [ebp - 4], 0
jl 0x403890
mov dword [ebp - 0xc], 0xd013d0bb
lea ecx, [ebp - 0x2c]
push 2
call fcn.00422862
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x403761
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + edx*4], 0xfffffffd
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 2
jl 0x403751
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + edx*4], eax
je 0x403869
mov edi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x38]
mov ecx, dword [ecx + edx*4]
mov dword [esi + edi*4], ecx
test ecx, ecx
je 0x4037aa
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + edx*4], eax
jne 0x40379e
mov ecx, eax
cmp dword [ebp - 4], eax
je 0x4037a0
mov ecx, ebx
mov dword [ebp - 0x14], ecx
mov ecx, ebx
cmp dword [ebp - 0x14], eax
jne 0x4037ac
mov ecx, eax
mov esi, dword [ebp - 0x2c]
xor ebx, ebx
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x2c]
imul edx, dword [esi + 4]
add edx, dword [ecx]
mov ecx, dword [ebp - 4]
cmp edx, ecx
mov ecx, dword [ebp - 0x2c]
setle bl
add ebx, dword [ecx]
neg ebx
sbb ebx, ebx
inc ebx
mov dword [esi + 4], ebx
je 0x4037da
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 4]
sub esi, 0x4128
neg esi
sbb esi, esi
xor edx, edx
inc esi
add esi, dword [ebp - 4]
mov ecx, dword [ebp - 4]
cmp ecx, esi
setg dl
xor ebx, ebx
mov dword [ebp - 0x18], edx
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp - 0x18], ecx
je 0x403869
mov dword [ebp - 0xc], 0xd37f4a1d
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 0xc], eax
jl 0x403860
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x18], eax
jl 0x40385b
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + edx*4], eax
jne 0x40385b
mov dword [ebp - 0x14], 3
cmp dword [ebp - 0x14], eax
jl 0x403856
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + edx*4], eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x403851
push 0x1309
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffW]
xor eax, eax
dec dword [ebp - 0x14]
jns 0x403831
dec dword [ebp - 0x18]
jns 0x40381a
dec dword [ebp - 0xc]
jns 0x403812
mov dword [ebp - 0xc], 0xfffffffe
jmp 0x403875
mov dword [ebp - 0xc], 0xffffffff
cmp dword [ebp - 0xc], eax
jne 0x403888
lea ecx, [ebp - 0x2c]
call fcn.00422eed
dec dword [ebp - 4]
jns 0x403739
jmp 0x403890
lea ecx, [ebp - 0x2c]
call fcn.00422eed
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
cmp ecx, eax
mov eax, dword [ebp - 8]
setg dl
xor ecx, ecx
cmp edx, eax
setg cl
sub ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
neg ecx
sbb ecx, ecx
inc ecx
sub eax, ecx
jne 0x4038c4
cmp dword [ebp - 0x14], eax
je 0x4038c6
mov eax, ebx
cmp dword [ebp - 4], eax
jge 0x4038d7
mov eax, dword [ebp - 0x38]
cmp dword [eax], 0
jne 0x4038d7
xor ecx, ecx
jmp 0x4038d9
mov ecx, ebx
mov eax, dword [ebp - 8]
sub ecx, eax
sub ecx, dword [ebp - 8]
neg ecx
sbb ecx, ecx
inc ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x38]
call fcn.00422eed
push 3
pop edi
push edi
lea ecx, [ebp - 0x44]
call fcn.00422862
mov dword [ebp - 0xc], 0xcd9d7540
xor eax, eax
mov dword [ebp - 4], 0xe55a
mov dword [ebp - 8], eax
jmp 0x40391e
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x44]
mov dword [ecx + edx*4], ebx
inc dword [ebp - 8]
cmp dword [ebp - 8], edi
jl 0x403912
mov ecx, dword [ebp - 0x44]
cmp dword [ecx], eax
jne 0x403944
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
imul edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x44]
cmp edx, dword [ecx]
jge 0x40393e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 0x44]
dec edx
neg edx
sbb edx, edx
mov ecx, dword [esi]
neg edx
add ecx, 0xfffffffa
add ecx, edx
je 0x4039b0
push edi
lea ecx, [ebp - 0x98]
call fcn.00422862
mov dword [ebp - 8], 0x37d437f1
mov dword [ebp - 8], 0
jmp 0x40398c
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x98]
mov dword [eax + ecx*4], 0x860b
inc dword [ebp - 8]
cmp dword [ebp - 8], edi
jl 0x403979
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x98]
dec dword [eax]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
neg eax
mov dword [ebp - 8], eax
call fcn.00422eed
jmp 0x4039fa
mov dword [ebp - 8], 0x9dfeee83
mov dword [ebp - 8], 0x404e5477
cmp dword [esi], eax
je 0x4039ce
mov dword [ebp - 8], 0x83428364
cmp dword [ebp - 8], eax
jne 0x4039d5
mov ecx, eax
cmp dword [ebp - 4], eax
je 0x4039d7
mov ecx, ebx
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 8], edx
mov dword [ebp - 4], 0xffffffe5
jmp 0x4039f4
cmp dword [ebp - 8], eax
jne 0x4039fa
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x19
jge 0x4039ec
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0xc], eax
call fcn.00422eed
mov byte [ebp - 0xe], 0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0xc], 0xb0f7
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x18], ebx
push 4
call fcn.00422862
push dword [ebp - 0x20]
movdqa xmm0, xmmword [str._A5__A5__A5__A5_]
lea ecx, [ebp - 0x98]
push ecx
xor eax, eax
mov dword [ebp - 0x14], 0xdcb0c7b2
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x1c], 0xfd90538e
push ecx
mov dword [ebp - 0x1c], 0x6aece011
lea ecx, [ebp - 0x50]
push eax
movdqu xmmword [ebp - 0xa8], xmm0
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
call fcn.0042415b
push dword [ebp - 0x20]
lea ecx, [ebp - 0xa8]
xor eax, eax
push ecx
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x5c], eax
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x58], eax
push eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x54], eax
movdqu xmmword [ebp - 0xb8], xmm0
call fcn.0042415b
mov dword [ebp - 0x1c], 0xcdb5cf63
xor eax, eax
mov dword [ebp - 0x1c], 0xb2933530
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
jmp 0x403aca
mov ecx, dword [ebp - 4]
mov dword [ebp + ecx*4 - 0x68], 0xf07b4bc6
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
jl 0x403abc
mov dword [ebp - 4], eax
jmp 0x403ae7
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x8c]
mov dword [ecx + edx*4], 0x422d
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
jl 0x403ad4
cmp dword [ebp - 0xc], eax
je 0x403b44
mov dword [ebp - 0xc], 0xfffffff7
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], al
je 0x403b0a
push eax
push eax
push eax
call dword [sym.imp.USER32.dll_UnionRect]
inc dword [ebp - 8]
jne 0x403b1a
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 8]
jne 0x403b1a
mov eax, dword [ebp - 0x64]
mov eax, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 0x60]
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp ecx, eax
mov eax, dword [ebp - 0x8c]
setg dl
mov dword [eax + 8], edx
jmp 0x403b71
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], al
je 0x403b5c
push eax
push eax
push eax
push 0x4ee
call dword [sym.imp.GDI32.dll_CreateEnhMetaFileW]
xor eax, eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x403b71
push 0x37d
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
sub ecx, eax
mov eax, dword [ebp - 0x50]
neg ecx
sbb ecx, ecx
inc ecx
mov dword [eax + 4], ecx
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x5c]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x64], eax
call fcn.00422eed
lea ecx, [ebp - 0x50]
call fcn.00422eed
lea ecx, [ebp - 0x8c]
call fcn.00422eed
cmp byte [ebp - 0xe], 0
je 0x403c5f
mov dword [ebp - 0x14], 0x928c176b
mov dword [ebp - 0x14], 0
jmp 0x403c50
mov dword [ebp - 0xc], 8
lea ecx, [ebp - 0x80]
push 4
call fcn.00422862
mov dword [ebp - 8], 0
jmp 0x403bef
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x80]
mov dword [eax + ecx*4], 0xfffffffc
inc dword [ebp - 8]
cmp dword [ebp - 8], 4
jl 0x403bdf
mov dword [ebp - 0xc], 0x18
cmp dword [ebp - 0xc], 0xfffffffa
jg 0x403c45
mov esi, dword [ebp - 0x80]
push ebx
lea ecx, [ebp - 0x74]
call fcn.00422862
mov dword [ebp - 8], 0
jmp 0x403c27
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x74]
mov dword [eax + ecx*4], 0x5d811f07
inc dword [ebp - 8]
cmp dword [ebp - 8], ebx
jl 0x403c17
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x74]
mov eax, dword [eax]
mov dword [esi + 8], eax
call fcn.00422eed
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xfffffffa
jle 0x403c05
lea ecx, [ebp - 0x80]
call fcn.00422eed
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x11
jge 0x403bc5
call fcn.004021ba
mov dword [ebp - 4], ebx
xor eax, eax
mov dword [ebp - 0xc], 6
mov dword [ebp - 8], eax
jmp 0x403c7a
mov ecx, dword [ebp - 8]
mov dword [ebp + ecx*4 - 0x20], ebx
inc dword [ebp - 8]
cmp dword [ebp - 8], ebx
jl 0x403c70
mov byte [ebp - 0xe], al
cmp byte [ebp - 0xe], al
je 0x403c91
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x403d11
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0x9beab1d6
mov ecx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], 0xffffffff
cmp dword [ebp - 0xc], eax
je 0x403cce
cmp dword [ebp - 8], eax
je 0x403cce
mov ecx, ebx
cmp dword [ebp - 0xc], eax
jne 0x403cd0
mov ecx, eax
mov dword [ebp - 8], ecx
xor ebx, ebx
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp edx, ecx
setle bl
mov dword [ebp - 0xc], ebx
xor ebx, ebx
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
cmp edx, ecx
setl bl
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0xe], al
cmp byte [ebp - 0xe], 0
je 0x403d0b
push eax
push 0x34d
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
xor eax, eax
dec dword [ebp - 4]
push 1
pop ebx
cmp dword [ebp - 4], 0xfffffff5
jne 0x403c96
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret