Function at 0x1003213b
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1006037d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push esi
push edi
mov dword [esp + 0x14], 0x1ddd
cmp dword [esp + 0x14], 0x6a1
push 0
mov dword [esp + 0x2c], edx
mov dword [esp + 0x44], ecx
pop esi
jge 0x100323a3
lea eax, [esp + 0x20]
push eax
push 0x10067aa4
call fcn.10048926
mov eax, dword [esp + 0x28]
or dword [esp + 0x4c], 0xffffffff
inc eax
pop ecx
pop ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], esi
push ecx
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call fcn.100142ea
mov dword [esp + 0xa4], esi
cmp dword [esp + 0x20], esi
jle 0x100321e0
mov ebx, dword [esp + 0x2c]
mov edi, esi
push ebx
push 0x10067aa4
call fcn.10048926
inc edi
add ebx, 4
pop ecx
pop ecx
cmp edi, dword [esp + 0x20]
jl 0x100321c9
mov edi, dword [esp + 0x2c]
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call fcn.10034ec0
mov dword [esp + 0x18], eax
mov byte [esp + 0xa4], 1
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x14], esi
lea eax, [ebx - 1]
mov dword [esp + 0x10], eax
test ebx, ebx
js 0x1003224c
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], esi
call fcn.10034d49
test eax, eax
jne 0x1003224a
movzx eax, byte [0x1015804a]
push eax
push edi
push ecx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x28]
call fcn.10034eeb
mov ebx, dword [esp + 0x20]
inc esi
add edi, 4
cmp esi, ebx
jle 0x10032214
xor esi, esi
mov eax, dword [esp + 0xc]
lea edi, [ebx - 1]
cmp edi, eax
jl 0x1003229e
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0xc]
lea ebx, [eax + edi*4]
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], edi
call fcn.10034d49
test eax, eax
jne 0x10032294
movzx eax, byte [0x1015804a]
push eax
push ebx
push ecx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x28]
call fcn.10034eeb
dec edi
sub ebx, 4
cmp edi, esi
jge 0x10032262
mov ebx, dword [esp + 0x20]
xor esi, esi
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edi, [ebx - 1]
sub ecx, eax
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x18]
push dword [eax + 4]
call fcn.1002001a
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x18]
mov dword [eax], eax
mov eax, dword [esp + 0x18]
mov dword [eax + 8], eax
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x1c], esi
js 0x1003231c
lea esi, [ebx + eax*4]
mov ebx, eax
push esi
lea ecx, [esp + 0x1c]
mov edi, ebx
call fcn.10034d49
test eax, eax
jne 0x10032316
movzx eax, byte [0x1015804a]
push eax
push esi
push ecx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x28]
call fcn.10034eeb
sub esi, 4
dec ebx
jns 0x100322e8
mov ebx, dword [esp + 0x2c]
xor esi, esi
mov dword [esp + 0x24], esi
test edi, edi
js 0x10032360
mov dword [esp + 0x14], ebx
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], esi
call fcn.10034d49
test eax, eax
jne 0x1003235a
movzx eax, byte [0x1015804a]
push eax
push ebx
push ecx
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x28]
call fcn.10034eeb
inc esi
add ebx, 4
cmp esi, edi
jle 0x10032328
mov ebx, dword [esp + 0x2c]
xor esi, esi
sub edi, dword [esp + 0xc]
inc edi
cmp dword [esp + 0x10], edi
cmovl edi, dword [esp + 0x10]
push edi
push str._ld_n
call fcn.10046d04
pop ecx
pop ecx
lea ecx, [esp + 0x18]
call fcn.1001fd91
or dword [esp + 0xa4], 0xffffffff
test ebx, ebx
je 0x100323a3
push ebx
call fcn.10046ed9
pop ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x14], 0x68df
cmp dword [esp + 0x14], 0x6a5b
jle 0x10032429
mov edi, esi
mov dword [esp + 0xc], esi
mov ebx, esi
mov dword [esp + 0x10], esi
mov ecx, ebx
mov dword [esp + 0x24], edi
mov ebx, edi
mov dword [esp + 0x38], esi
sar ebx, cl
mov edi, esi
mov eax, ebx
lea ecx, [esp + 0x68]
xor eax, edi
cdq
push edx
push eax
call fcn.10001a75
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x100323eb
mov eax, dword [eax]
push eax
call fcn.10046d04
pop ecx
push esi
push 1
lea ecx, [esp + 0x70]
call fcn.1000205c
inc edi
cmp edi, 0x2788
jl 0x100323d1
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, 0x5dd5
jl 0x100323c1
inc edi
mov dword [esp + 0xc], edi
cmp edi, 0x5a38
jl 0x100323bb
mov dword [esp + 0x24], 0x7c11
cmp dword [esp + 0x24], 0x7e19
jle 0x100324c6
mov edi, esi
mov dword [esp + 0xc], esi
mov ebx, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x38], ebx
and ebx, edi
mov dword [esp + 0x3c], esi
mov edi, esi
mov eax, ebx
lea ecx, [esp + 0x80]
xor eax, edi
cdq
push edx
push eax
call fcn.10001a75
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10032474
mov eax, dword [eax]
push eax
call fcn.10046d04
pop ecx
push esi
push 1
lea ecx, [esp + 0x88]
call fcn.1000205c
inc edi
cmp edi, 0x3957
jl 0x10032457
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, 0x544a
jl 0x1003244b
inc edi
mov dword [esp + 0xc], edi
cmp edi, 0x772d
jl 0x10032445
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
cmp byte [ebp + 0xc], 0
je 0x100324fd
mov eax, dword [ebp + 0x30]
push 0x1a
pop esi
mov ecx, dword [eax]
cmp ecx, esi
jge 0x100324e2
mov eax, dword [ebp + 0x38]
movzx edx, word [eax]
add edx, ecx
jmp 0x100324ef
mov eax, ecx
cdq
idiv esi
mov eax, dword [ebp + 0x3c]
movzx eax, word [eax]
add edx, eax
mov ecx, dword [ebp + 0x10]
push edx
call fcn.1001390a
jmp 0x100325ae
mov eax, dword [ebp + 0x14]
xor ecx, ecx
mov edi, dword [ebp + 0x24]
mov edx, dword [eax]
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
cmp eax, dword [edx]
mov eax, dword [esp + 0x28]
setg cl
xor ebx, ebx
mov eax, dword [eax]
cmp ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
sete bl
mov dword [edx], ebx
xor edx, edx
mov ecx, dword [edi]
mov eax, dword [eax]
cmp dword [eax + ecx*4], ebx
mov eax, dword [ebp + 0x20]
sete dl
mov eax, dword [eax]
add eax, edx
mov edx, dword [esp + 0x28]
cmp eax, dword [edi]
jl 0x1003254d
mov eax, dword [edx]
cmp dword [eax + 4], esi
je 0x1003254d
xor ebx, ebx
inc ebx
jmp 0x1003254f
mov ebx, esi
mov ecx, dword [edi]
mov eax, dword [edx]
xor edx, edx
cmp ebx, dword [eax + ecx*4]
mov eax, dword [ebp + 0x20]
setge dl
cmp edx, dword [eax]
jne 0x10032567
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov eax, dword [edi]
xor ecx, ecx
mov eax, dword [edi]
mov eax, dword [edi]
mov edi, dword [ebp + 0x44]
mov eax, dword [edi]
cmp eax, 1
mov eax, dword [edi]
setg cl
xor edx, edx
cmp ecx, 0x76ec
setge dl
xor ecx, ecx
cmp edx, eax
setg cl
cmp ecx, 2
sbb eax, eax
inc eax
cmp eax, dword [edi]
jle 0x1003259f
mov eax, dword [ebp + 8]
cmp dword [eax], esi
je 0x100325a2
xor esi, esi
inc esi
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
mov eax, dword [eax]
add eax, esi
mov dword [edi], eax
cmp dword [esp + 0x24], 0x7b36
jge 0x100325c3
push str.tclpmgp_ldy_pkjzgewas_iwoi_ygwvm_qgwx
call fcn.10046d04
pop ecx
cmp dword [esp + 0x14], 0x65cd
jge 0x100325d8
push str.gdl_taci_ttyrdsgte_nvftg_vznbjdo_zghgzcd_yfoj_vcpyksyf_cckiwzhtk_wcthn_wbyo
call fcn.10046d04
pop ecx
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret