Function at 0x426500
Capabilities:
Create service
Delete service
Modify service
Persist via windows service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a44b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x58], ecx
mov esi, dword [edi]
test esi, esi
jne 0x426537
mov edi, dword [0x476478]
mov dword [ebp - 0x4c], edi
jmp 0x426596
mov eax, dword [esi + 0x10]
xor edi, edi
mov esi, dword [esi + 0x28]
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x42656c
jmp 0x426550
push str.InstallService
push dword [esi]
call fcn.00446ab0
add esp, 8
test eax, eax
je 0x4265ba
inc edi
add esi, 8
cmp edi, dword [ebp - 0x10]
jl 0x426550
xor esi, esi
mov edi, dword [0x476478]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x4c], edi
test esi, esi
je 0x426599
mov eax, esi
shr eax, 0x10
test eax, eax
jne 0x4265bf
movzx eax, si
lea ecx, [ebp - 0x4c]
push eax
call fcn.0041c880
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov esi, dword [eax]
test esi, esi
jne 0x4265f2
mov esi, dword [0x476478]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
jmp 0x426662
mov esi, dword [esi + 4]
jmp 0x42656e
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x426599
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040a900
test eax, eax
je 0x426593
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x4c]
add eax, eax
push eax
push esi
push edi
mov dword [ebp - 0x20], edi
call fcn.004480a0
add esp, 0xc
jmp 0x426599
mov eax, dword [esi + 0x10]
mov esi, dword [esi + 0x28]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x426632
jmp 0x426610
push 0x464fa0
push dword [esi]
call fcn.00446ab0
add esp, 8
test eax, eax
je 0x426680
mov eax, dword [ebp - 0x10]
add esi, 8
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x18]
jl 0x426610
xor ecx, ecx
mov esi, dword [0x476478]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
test ecx, ecx
je 0x426662
mov eax, ecx
shr eax, 0x10
test eax, eax
jne 0x426685
movzx eax, cx
lea ecx, [ebp - 0x30]
push eax
call fcn.0041c880
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 1
mov esi, dword [ebp + 8]
mov esi, dword [esi]
test esi, esi
jne 0x4266b7
mov esi, dword [0x476478]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x38], esi
jmp 0x426722
mov ecx, dword [esi + 4]
jmp 0x426634
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x426662
push esi
lea ecx, [ebp - 0x30]
call fcn.0040a900
test eax, eax
je 0x42665c
lea eax, [esi + esi]
mov esi, dword [ebp - 0x30]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x2c], esi
push esi
call fcn.004480a0
add esp, 0xc
jmp 0x426662
mov eax, dword [esi + 0x10]
mov esi, dword [esi + 0x28]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x4266f2
jmp 0x4266d0
push str.DisplayName
push dword [esi]
call fcn.00446ab0
add esp, 8
test eax, eax
je 0x426740
mov eax, dword [ebp - 0x10]
add esi, 8
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x18]
jl 0x4266d0
xor ecx, ecx
mov esi, dword [0x476478]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x38], esi
test ecx, ecx
je 0x426722
mov eax, ecx
shr eax, 0x10
test eax, eax
jne 0x426745
movzx eax, cx
lea ecx, [ebp - 0x38]
push eax
call fcn.0041c880
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 2
mov esi, dword [ebp + 8]
mov esi, dword [esi]
test esi, esi
jne 0x426777
mov esi, dword [0x476478]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], esi
jmp 0x4267e2
mov ecx, dword [esi + 4]
jmp 0x4266f4
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x426722
push esi
lea ecx, [ebp - 0x38]
call fcn.0040a900
test eax, eax
je 0x42671c
lea eax, [esi + esi]
mov esi, dword [ebp - 0x38]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x54], esi
push esi
call fcn.004480a0
add esp, 0xc
jmp 0x426722
mov eax, dword [esi + 0x10]
mov esi, dword [esi + 0x28]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x4267b2
jmp 0x426790
push str.Description
push dword [esi]
call fcn.00446ab0
add esp, 8
test eax, eax
je 0x426800
mov eax, dword [ebp - 0x10]
add esi, 8
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x18]
jl 0x426790
xor ecx, ecx
mov esi, dword [0x476478]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], esi
test ecx, ecx
je 0x4267e2
mov eax, ecx
shr eax, 0x10
test eax, eax
jne 0x426805
movzx eax, cx
lea ecx, [ebp - 0x24]
push eax
call fcn.0041c880
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
mov esi, dword [ebp + 8]
mov esi, dword [esi]
test esi, esi
jne 0x426837
mov esi, dword [0x476478]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
jmp 0x4268a2
mov ecx, dword [esi + 4]
jmp 0x4267b4
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x4267e2
push esi
lea ecx, [ebp - 0x24]
call fcn.0040a900
test eax, eax
je 0x4267dc
lea eax, [esi + esi]
mov esi, dword [ebp - 0x24]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x18], esi
push esi
call fcn.004480a0
add esp, 0xc
jmp 0x4267e2
mov eax, dword [esi + 0x10]
mov esi, dword [esi + 0x28]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x426872
jmp 0x426850
push str.StartType
push dword [esi]
call fcn.00446ab0
add esp, 8
test eax, eax
je 0x4268c0
mov eax, dword [ebp - 0x10]
add esi, 8
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x14]
jl 0x426850
xor ecx, ecx
mov esi, dword [0x476478]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
test ecx, ecx
je 0x4268a2
mov eax, ecx
shr eax, 0x10
test eax, eax
jne 0x4268c5
movzx eax, cx
lea ecx, [ebp - 0x40]
push eax
call fcn.0041c880
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 4
mov esi, dword [ebp + 8]
mov esi, dword [esi]
test esi, esi
jne 0x4268f7
mov esi, dword [0x476478]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x50], esi
jmp 0x426962
mov ecx, dword [esi + 4]
jmp 0x426874
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x4268a2
push esi
lea ecx, [ebp - 0x40]
call fcn.0040a900
test eax, eax
je 0x42689c
lea eax, [esi + esi]
mov esi, dword [ebp - 0x40]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x44], esi
push esi
call fcn.004480a0
add esp, 0xc
jmp 0x4268a2
mov eax, dword [esi + 0x10]
mov esi, dword [esi + 0x28]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x426932
jmp 0x426910
push str.ProcessType
push dword [esi]
call fcn.00446ab0
add esp, 8
test eax, eax
je 0x42697c
mov eax, dword [ebp - 0x10]
add esi, 8
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x14]
jl 0x426910
xor ecx, ecx
mov esi, dword [0x476478]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x50], esi
test ecx, ecx
je 0x426962
mov eax, ecx
shr eax, 0x10
test eax, eax
jne 0x426981
movzx eax, cx
lea ecx, [ebp - 0x50]
push eax
call fcn.0041c880
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 5
mov esi, dword [ebp + 8]
mov esi, dword [esi]
test esi, esi
jne 0x4269b3
mov eax, dword [0x476478]
mov dword [ebp - 0x34], eax
jmp 0x426a1b
mov ecx, dword [esi + 4]
jmp 0x426934
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x426962
push esi
lea ecx, [ebp - 0x50]
call fcn.0040a900
test eax, eax
je 0x42695c
lea eax, [esi + esi]
mov esi, dword [ebp - 0x50]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x28], esi
push esi
call fcn.004480a0
add esp, 0xc
jmp 0x426962
mov eax, dword [esi + 0x10]
mov esi, dword [esi + 0x28]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x4269f2
jmp 0x4269d0
push str.StartService
push dword [esi]
call fcn.00446ab0
add esp, 8
test eax, eax
je 0x426a3c
mov eax, dword [ebp - 0x10]
add esi, 8
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x14]
jl 0x4269d0
xor esi, esi
mov eax, dword [0x476478]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], eax
test esi, esi
je 0x426a1e
mov eax, esi
shr eax, 0x10
test eax, eax
jne 0x426a41
movzx eax, si
lea ecx, [ebp - 0x34]
push eax
call fcn.0041c880
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
mov esi, dword [eax]
test esi, esi
jne 0x426a74
mov esi, dword [0x476478]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x48], esi
jmp 0x426ae2
mov esi, dword [esi + 4]
jmp 0x4269f4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x426a1e
push eax
lea ecx, [ebp - 0x34]
call fcn.0040a900
test eax, eax
je 0x426a18
mov eax, dword [ebp - 0x10]
add eax, eax
push eax
mov eax, dword [ebp - 0x34]
push esi
push eax
mov dword [ebp - 0x3c], eax
call fcn.004480a0
add esp, 0xc
jmp 0x426a1e
mov eax, dword [esi + 0x10]
mov esi, dword [esi + 0x28]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x426ab2
jmp 0x426a90
push str.StopService
push dword [esi]
call fcn.00446ab0
add esp, 8
test eax, eax
je 0x426afc
mov eax, dword [ebp - 0x10]
add esi, 8
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x14]
jl 0x426a90
xor ecx, ecx
mov esi, dword [0x476478]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x48], esi
test ecx, ecx
je 0x426ae2
mov eax, ecx
shr eax, 0x10
test eax, eax
jne 0x426b01
movzx eax, cx
lea ecx, [ebp - 0x48]
push eax
call fcn.0041c880
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 7
mov esi, dword [ebp + 8]
mov esi, dword [esi]
test esi, esi
jne 0x426b33
mov eax, dword [0x476478]
mov dword [ebp - 0x1c], eax
jmp 0x426bc9
mov ecx, dword [esi + 4]
jmp 0x426ab4
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x426ae2
push esi
lea ecx, [ebp - 0x48]
call fcn.0040a900
test eax, eax
je 0x426adc
lea eax, [esi + esi]
mov esi, dword [ebp - 0x48]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
push esi
call fcn.004480a0
add esp, 0xc
jmp 0x426ae2
mov eax, dword [esi + 0x10]
mov esi, dword [esi + 0x28]
mov dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x426b72
jmp 0x426b50
push str.BinaryFile
push dword [esi]
call fcn.00446ab0
add esp, 8
test eax, eax
je 0x426b97
mov eax, dword [ebp + 8]
add esi, 8
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [ebp - 0x10]
jl 0x426b50
xor esi, esi
mov eax, dword [0x476478]
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x426bc9
mov eax, esi
shr eax, 0x10
test eax, eax
jne 0x426b9c
movzx eax, si
lea ecx, [ebp - 0x1c]
push eax
call fcn.0041c880
jmp 0x426bc9
mov esi, dword [esi + 4]
jmp 0x426b74
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp + 8], eax
test eax, eax
je 0x426bc9
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040a900
test eax, eax
je 0x426bc9
mov eax, dword [ebp + 8]
add eax, eax
push eax
push esi
push dword [ebp - 0x1c]
call fcn.004480a0
add esp, 0xc
mov byte [ebp - 4], 8
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x58]
push eax
call fcn.00411850
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
push 0x64
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [edi - 8]
push 0xf01ff
push edi
add ecx, ecx
push esi
mov dword [edi - 4], ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
jne 0x426d07
cmp dword [edi - 8], eax
jle 0x426d07
mov esi, dword [ebp - 0x1c]
push str.auto
push dword [ebp - 0x44]
mov eax, dword [esi - 8]
add eax, eax
mov dword [esi - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x464fc8
push dword [ebp - 0x28]
test eax, eax
sete byte [ebp + 0xb]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
mov eax, dword [ebp - 0x54]
push 0
sete dl
push 0
mov ecx, dword [eax - 8]
add ecx, ecx
mov dword [eax - 4], ecx
mov ecx, dword [edi - 8]
add ecx, ecx
push 0
push 0
mov dword [edi - 4], ecx
xor ecx, ecx
cmp byte [ebp + 0xb], cl
push 0
push esi
push 1
sete cl
mov esi, 0x10
add ecx, 2
test dl, dl
push ecx
mov ecx, 0x20
cmovne ecx, esi
push ecx
push 0xf01ff
push eax
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
push 0x64
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x24]
call fcn.00414240
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x58]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov ecx, 0x40
lea edi, [ebp - 0x1a4]
mov esi, str.D:_A__CCLCSWRPWPDTLOCRRC___SY__A__CCDCLCSWRPWPDTLOCRSDRCWDWO___BA__A__CCLCSWLOCRRC___AU__A__CCLCSWRPWPDTLOCRRC___PU__A__RP___IU_
lea eax, [ebp - 0x5c]
rep movsd dword es:[edi], dword [esi]
push 0
push eax
push 1
lea eax, [ebp - 0x1a4]
movsw word es:[edi], word [esi]
push eax
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x5c]
mov esi, dword [ebp + 8]
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_SetServiceObjectSecurity]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x3c]
cmp dword [esi - 8], 0
je 0x426e0e
mov eax, dword [0x476478]
mov dword [ebp - 0x84], 0x463748
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 9
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x7c], 0
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x80], 0
je 0x426d70
lea ecx, [ebp - 0x84]
call fcn.0040cc20
mov eax, dword [ebp - 0x64]
cmp dword [eax - 8], 0
je 0x426d93
cmp dword [eax - 0x20], 0
lea ecx, [ebp - 0x64]
jl 0x426d89
call fcn.00427ff0
jmp 0x426d93
push 0x46155c
call fcn.00409040
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x80], eax
test eax, eax
jne 0x426db4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x426dff
xorps xmm0, xmm0
movlpd qword [ebp - 0x60], xmm0
mov eax, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x60]
mov dword [ebp + 8], eax
mov eax, dword [esi - 8]
lea ecx, [ebp - 0x84]
push 0
push 0
add eax, eax
push esi
mov dword [esi - 4], eax
call fcn.0042c320
test eax, eax
jne 0x426dfc
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 1
adc dword [ebp + 8], 0
js 0x426dc5
jg 0x426dfc
cmp edi, 0xa
jb 0x426dc5
mov edi, dword [ebp - 0x20]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x84]
call fcn.004086e0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x426eac
push 0xf01ff
push eax
push dword [ebp - 0x10]
add ecx, ecx
mov dword [eax - 4], ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x426ea5
xor edi, edi
mov esi, eax
jmp 0x426e40
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x88], 0
xorps xmm0, xmm0
push eax
push esi
movdqu xmmword [ebp - 0xa0], xmm0
movq qword [ebp - 0x90], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x9c], 1
je 0x426e95
lea eax, [ebp - 0xa0]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xa
jl 0x426e40
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov esi, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [ebp - 4], 7
or edx, 0xffffffff
mov eax, dword [ebp - 0x1c]
lea ecx, [eax - 0x20]
cmp ecx, dword [0x476474]
je 0x426ee4
lea ecx, [eax - 0x20]
mov eax, edx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x426ee4
push ecx
call fcn.004471aa
add esp, 4
or edx, 0xffffffff
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x14]
lea ecx, [eax - 0x20]
cmp ecx, dword [0x476474]
je 0x426f0d
lea ecx, [eax - 0x20]
mov eax, edx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x426f0d
push ecx
call fcn.004471aa
add esp, 4
mov byte [ebp - 4], 5
lea eax, [esi - 0x20]
cmp eax, dword [0x476474]
je 0x426f38
lea ecx, [esi - 0x20]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x426f3b
push ecx
call fcn.004471aa
add esp, 4
jmp 0x426f3b
or esi, 0xffffffff
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x28]
lea ecx, [eax - 0x20]
cmp ecx, dword [0x476474]
je 0x426f64
lea ecx, [eax - 0x20]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x426f64
push ecx
call fcn.004471aa
add esp, 4
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x44]
lea ecx, [eax - 0x20]
cmp ecx, dword [0x476474]
je 0x426f8d
lea ecx, [eax - 0x20]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x426f8d
push ecx
call fcn.004471aa
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
lea ecx, [eax - 0x20]
cmp ecx, dword [0x476474]
je 0x426fb6
lea ecx, [eax - 0x20]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x426fb6
push ecx
call fcn.004471aa
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x54]
lea ecx, [eax - 0x20]
cmp ecx, dword [0x476474]
je 0x426fdf
lea ecx, [eax - 0x20]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x426fdf
push ecx
call fcn.004471aa
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
lea ecx, [eax - 0x20]
cmp ecx, dword [0x476474]
je 0x427008
lea ecx, [eax - 0x20]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x427008
push ecx
call fcn.004471aa
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [edi - 0x20]
cmp eax, dword [0x476474]
je 0x42702f
add edi, 0xffffffe0
lock xadd dword [edi], esi
dec esi
test esi, esi
jg 0x42702f
push edi
call fcn.004471aa
add esp, 4
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4