Function at 0x4030b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4de340
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
mov ebp, dword [esp + 0x44]
mov eax, dword [ebp]
mov edi, dword [eax + 0xc]
sub edi, dword [eax + 8]
mov dword [esp + 0x18], edi
test edi, edi
jle 0x403132
push 0
push edi
push 4
push 4
call fcn.00413540
mov esi, eax
add esp, 0x10
mov dword [esp + 0x44], esi
test esi, esi
jne 0x40310e
call fcn.004103f0
mov dword [esi + 4], edi
mov eax, dword [esi + 0xc]
lea ecx, [eax + edi*4]
add eax, esi
add ecx, esi
sub ecx, eax
and ecx, 0xfffffffc
push ecx
push 0
push eax
call fcn.004c2280
mov edi, dword [esp + 0x24]
add esp, 0xc
jmp 0x40313b
mov esi, 0x4ed20c
mov dword [esp + 0x44], esi
mov eax, 0x51a640
mov dword [esp + 0x38], 0
mov dword [esp + 0x14], eax
xor ebx, ebx
mov byte [esp + 0x38], 1
test edi, edi
jle 0x4031ca
or esi, 0xffffffff
lea ebx, [ebx]
mov ecx, dword [ebp]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ecx + 8]
add eax, ebx
lea ecx, [ecx + eax*4]
add ecx, 0x10
call fcn.0041e8d0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 2
call fcn.00401a10
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x38], 1
mov ecx, dword [eax]
test ecx, ecx
je 0x4031ac
cmp ecx, 0xffffffff
je 0x4031b9
mov ecx, esi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x4031b9
mov eax, dword [esp + 0x1c]
push 4
push 1
push eax
call fcn.00413640
add esp, 0xc
mov edi, dword [esp + 0x18]
inc ebx
cmp ebx, edi
jl 0x403160
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x44]
xor ebx, ebx
test edi, edi
jle 0x403297
lea ebp, [ebx + 1]
mov ecx, dword [eax]
cmp ecx, 1
je 0x4031f2
test ecx, ecx
je 0x4031f2
push dword [eax + 4]
lea ecx, [esp + 0x18]
call fcn.00401e60
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
add ecx, ebx
lea edi, [eax + ecx*4]
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
cmp eax, 1
je 0x403208
test eax, eax
jne 0x40320e
cmp dword [ecx + 0xc], 0x10
je 0x403228
xor eax, eax
test dword [ecx + 8], 0x80000000
cmovne eax, ebp
push eax
mov eax, dword [ecx + 4]
lea ecx, [edi + 0x10]
inc eax
push eax
call fcn.00414b80
mov eax, dword [edi + 0x10]
mov edi, dword [eax + 0xc]
add edi, eax
mov eax, dword [esi]
cmp eax, 1
je 0x40327e
test eax, eax
je 0x40327e
test dword [esi + 8], 0x7fffffff
jne 0x40325c
push 2
push 0
push 4
push 4
call fcn.00413540
mov esi, eax
add esp, 0x10
mov dword [esp + 0x44], esi
jmp 0x40327e
push ecx
mov eax, esp
lea ecx, [esp + 0x48]
mov dword [eax], 0
mov eax, dword [esi + 8]
and eax, 0x7fffffff
push eax
push dword [esi + 4]
call fcn.00443900
mov esi, dword [esp + 0x44]
mov eax, dword [esi + 0xc]
lea eax, [eax + ebx*4]
inc ebx
mov dword [eax + esi], edi
cmp ebx, dword [esp + 0x18]
jge 0x403297
mov eax, dword [esp + 0x14]
jmp 0x4031d7
mov bl, byte [esp + 0x40]
mov ebp, dword [esp + 0x20]
test bl, bl
je 0x4032ae
mov ecx, ebp
call fcn.00405390
test al, al
je 0x403319
mov eax, dword [esi]
cmp eax, 1
je 0x4032fc
test eax, eax
je 0x4032fc
test dword [esi + 8], 0x7fffffff
jne 0x4032da
push 2
push 0
push 4
push 4
call fcn.00413540
mov esi, eax
add esp, 0x10
mov dword [esp + 0x44], esi
jmp 0x4032fc
push ecx
mov eax, esp
lea ecx, [esp + 0x48]
mov dword [eax], 0
mov eax, dword [esi + 8]
and eax, 0x7fffffff
push eax
push dword [esi + 4]
call fcn.00443900
mov esi, dword [esp + 0x44]
mov ecx, dword [ebp]
mov eax, dword [esi + 0xc]
add eax, esi
push eax
mov edx, dword [ecx]
lea eax, [esp + 0x1c]
push eax
call dword [edx + 0x18]
mov edi, dword [0x64c5d8]
test edi, edi
jne 0x403323
mov dword [esp + 0x40], 0xffffffff
jmp 0x40338c
test bl, bl
je 0x40332e
mov ecx, ebp
call fcn.00448e70
push 0
lea ecx, [esp + 0x28]
call fcn.004099a0
mov dword [esp + 0x24], vtable.QtServiceStarter.0
mov dword [esp + 0x2c], ebp
push str.1slotStart__
lea eax, [esp + 0x28]
mov byte [esp + 0x3c], 3
push eax
push 0
call fcn.0041f3e0
mov ecx, dword [ebp]
add esp, 0xc
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov dword [esp + 0x40], eax
mov ecx, edi
mov eax, dword [edi]
push 1
call dword [eax + 0xc]
test bl, bl
je 0x40337e
mov ecx, ebp
call fcn.00405360
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 1
call fcn.0040a0f0
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x38], 0
mov dword [esp + 0x20], ebx
mov eax, dword [ebx]
test eax, eax
je 0x4033bb
or ecx, 0xffffffff
cmp eax, ecx
je 0x403414
mov eax, ecx
lock xadd dword [ebx], eax
setne al
test al, al
jne 0x403414
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x20], ebx
mov edi, dword [ebx + 0xc]
mov ebp, dword [ebx + 8]
add edi, 4
add ebp, 4
lea edi, [ebx + edi*4]
lea ebp, [ebx + ebp*4]
cmp ebp, edi
je 0x403408
or ebx, 0xffffffff
mov ecx, dword [edi - 4]
sub edi, 4
mov eax, dword [ecx]
test eax, eax
je 0x4033f2
cmp eax, 0xffffffff
je 0x403400
mov eax, ebx
lock xadd dword [ecx], eax
setne al
test al, al
jne 0x403400
push 4
push 1
push dword [edi]
call fcn.00413640
add esp, 0xc
cmp edi, ebp
jne 0x4033d4
mov ebx, dword [esp + 0x20]
push ebx
call fcn.004bee90
add esp, 4
or ecx, 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x40342b
cmp eax, 0xffffffff
je 0x403438
lock xadd dword [esi], ecx
dec ecx
setne cl
test cl, cl
jne 0x403438
push 4
push 4
push esi
call fcn.00413640
add esp, 0xc
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8