Function at 0x42ecf0
Capabilities:
Check if file exists
Create service
Get common file path
Modify service
Persist via windows service
Query or enumerate registry value
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ce3c1
mov eax, dword fs:[0]
push eax
sub esp, 0x578
mov eax, dword [0x664340]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x564], edi
mov ecx, dword [ebp + 8]
mov edx, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x580], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x570], ecx
lea esi, [edx + 2]
mov dword [ebp - 0x57c], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42ed45
sub edx, esi
lea esi, [edi + 4]
sar edx, 1
push edx
push ecx
mov ecx, esi
mov dword [ebp - 0x578], esi
call fcn.00403240
mov ecx, dword [ebp - 0x580]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ed70
sub ecx, edx
sar ecx, 1
push ecx
push dword [ebp - 0x580]
lea ecx, [edi + 0x1c]
call fcn.00403240
mov ecx, dword [ebp - 0x57c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ed97
sub ecx, edx
lea eax, [edi + 0x34]
sar ecx, 1
push ecx
push dword [ebp - 0x57c]
mov ecx, eax
mov dword [ebp - 0x584], eax
call fcn.00403240
cmp dword [edi + 0x5c], 0
jne 0x42edd2
push 9
push str.BKSvc.exe
lea ecx, [edi + 0x4c]
call fcn.00403240
mov eax, dword [0x6692fc]
test eax, eax
jne 0x42ee10
push 0x15c
call fcn.0044a2e5
add esp, 4
mov dword [ebp - 0x56c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x42ee02
mov ecx, eax
call fcn.004393b0
jmp 0x42ee04
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x6692fc], eax
mov ecx, eax
call fcn.0044f059
mov edx, eax
mov dword [ebp - 0x454], 0
mov ecx, edx
mov dword [ebp - 0x450], 7
xor eax, eax
mov word [ebp - 0x464], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x568], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ee41
sub ecx, dword [ebp - 0x568]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x464]
call fcn.00403240
mov eax, dword [0x6692fc]
mov dword [ebp - 4], 1
test eax, eax
jne 0x42eea0
push 0x15c
call fcn.0044a2e5
add esp, 4
mov dword [ebp - 0x56c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x42ee95
mov ecx, eax
call fcn.004393b0
jmp 0x42ee97
xor eax, eax
mov byte [ebp - 4], 1
mov dword [0x6692fc], eax
mov ecx, eax
call fcn.0044f059
mov edx, eax
mov dword [ebp - 0x46c], 0
mov ecx, edx
mov dword [ebp - 0x468], 7
xor eax, eax
mov word [ebp - 0x47c], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x568], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42eed1
sub ecx, dword [ebp - 0x568]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x47c]
call fcn.00403240
push 9
push str.BKSvc.exe
lea ecx, [ebp - 0x47c]
mov byte [ebp - 4], 3
call fcn.004058f0
cmp dword [edi + 0x60], 8
lea eax, [edi + 0x4c]
jb 0x42ef13
mov eax, dword [edi + 0x4c]
push dword [edi + 0x5c]
lea ecx, [ebp - 0x464]
push eax
call fcn.004058f0
mov ecx, dword [ebp - 0x564]
cmp dword [ecx], 0
jne 0x42ef64
cmp dword [ebp - 0x450], 8
lea eax, [ebp - 0x464]
cmovae eax, dword [ebp - 0x464]
push eax
call fcn.00464b87
cmp dword [ebp - 0x468], 8
lea eax, [ebp - 0x47c]
cmovae eax, dword [ebp - 0x47c]
push eax
call fcn.00464b87
add esp, 8
cmp dword [ebp - 0x468], 8
lea eax, [ebp - 0x47c]
cmovae eax, dword [ebp - 0x47c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea eax, [ebp - 0x47c]
jne 0x42efa9
cmp dword [ebp - 0x468], 8
cmovae eax, dword [ebp - 0x47c]
push eax
push 0x6c
call fcn.00451635
add esp, 8
xor esi, esi
jmp 0x42fa1d
push eax
lea ecx, [ebp - 0x530]
call fcn.00403ce0
lea eax, [ebp - 0x464]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x518]
call fcn.00403ce0
lea eax, [ebp - 0x530]
mov byte [ebp - 4], 5
push eax
call fcn.004560e5
lea eax, [ebp - 0x518]
push eax
call fcn.004560e5
mov edx, dword [ebp - 0x520]
lea ecx, [ebp - 0x518]
add esp, 8
lea edi, [ebp - 0x530]
cmp dword [ebp - 0x504], 8
cmovae ecx, dword [ebp - 0x518]
cmp dword [ebp - 0x51c], 8
cmovae edi, dword [ebp - 0x530]
cmp edx, dword [ebp - 0x508]
jne 0x42f039
test edx, edx
je 0x42f06b
sub edi, ecx
mov ax, word [ecx + edi]
cmp ax, word [ecx]
jne 0x42f039
add ecx, 2
sub edx, 1
jne 0x42f026
jmp 0x42f06b
cmp dword [ebp - 0x450], 8
lea ecx, [ebp - 0x464]
lea eax, [ebp - 0x47c]
cmovae ecx, dword [ebp - 0x464]
cmp dword [ebp - 0x468], 8
push ecx
cmovae eax, dword [ebp - 0x47c]
push eax
call fcn.004580a9
add esp, 8
xor eax, eax
mov dword [ebp - 0x49c], 0
mov dword [ebp - 0x498], 7
mov word [ebp - 0x4ac], ax
mov edi, dword [ebp - 0x564]
mov byte [ebp - 4], 6
cmp dword [edi], eax
je 0x42f156
push 0x208
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.0046cf80
add esp, 0xc
lea ecx, [ebp - 0x4e8]
call fcn.00464805
lea ecx, [ebp - 0x4e8]
mov byte [ebp - 4], 7
call fcn.00464839
test eax, eax
lea eax, [ebp - 0x244]
push 0x104
push eax
je 0x42f0e1
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
jmp 0x42f0e7
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x244]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f0f0
sub ecx, edx
lea eax, [ebp - 0x244]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4ac]
call fcn.00403240
push 0x10
push str._svchost.exe__k
lea ecx, [ebp - 0x4ac]
call fcn.004058f0
cmp dword [edi + 0x90], 8
lea ecx, [edi + 0x7c]
jb 0x42f133
mov ecx, dword [edi + 0x7c]
push dword [edi + 0x8c]
push ecx
lea ecx, [ebp - 0x4ac]
call fcn.004058f0
lea ecx, [ebp - 0x4e8]
mov byte [ebp - 4], 6
call fcn.00464818
jmp 0x42f1a0
cmp dword [ebp - 0x450], 8
lea eax, [ebp - 0x464]
push dword [ebp - 0x454]
cmovae eax, dword [ebp - 0x464]
lea ecx, [ebp - 0x4ac]
push eax
call fcn.00403240
push 1
push 0x5d6b4c
lea ecx, [ebp - 0x4ac]
call fcn.004058f0
push 3
push 0x5d8900
lea ecx, [ebp - 0x4ac]
call fcn.004058f0
push 0x6568a4
push str.bd5ca
lea eax, [ebp - 0x4c4]
push 0x5d4df4
push eax
call fcn.0046532d
push 0x6568a4
push str.37f86
lea eax, [ebp - 0x560]
mov byte [ebp - 4], 8
push 0x5d4df4
push eax
call fcn.0046532d
add esp, 0x20
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x548]
call fcn.00403ce0
lea eax, [ebp - 0x560]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x500]
call fcn.00403ce0
lea eax, [ebp - 0x500]
mov byte [ebp - 4], 0xb
push eax
call fcn.004560e5
lea eax, [ebp - 0x548]
push eax
call fcn.004560e5
lea eax, [ebp - 0x500]
push eax
lea eax, [ebp - 0x548]
push eax
call fcn.00406c30
add esp, 0x10
test al, al
je 0x42f6c5
cmp dword [ebp - 0x4ec], 8
lea edi, [ebp - 0x500]
push 0x208
cmovae edi, dword [ebp - 0x500]
lea eax, [ebp - 0x244]
cmp dword [ebp - 0x4b0], 8
lea esi, [ebp - 0x4c4]
push 0
cmovae esi, dword [ebp - 0x4c4]
push eax
call fcn.0046cf80
push esi
lea eax, [ebp - 0x244]
push str.SYSTEMCurrentControlSet_services_s
push eax
call fcn.00405db0
add esp, 0x18
lea eax, [ebp - 0x574]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x244]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42f6b9
push 0x208
push eax
lea eax, [ebp - 0x44c]
push eax
call fcn.0046cf80
add esp, 0xc
mov dword [ebp - 0x568], 0x208
lea eax, [ebp - 0x568]
push eax
lea eax, [ebp - 0x44c]
push eax
push 0
push 0
push str.ImagePath
push dword [ebp - 0x574]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x574]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x44c]
push eax
call fcn.0047a632
add esp, 4
mov cx, word [eax]
cmp cx, word [edi]
jne 0x42f33e
test cx, cx
je 0x42f33a
mov cx, word [eax + 2]
cmp cx, word [edi + 2]
jne 0x42f33e
add eax, 4
add edi, 4
test cx, cx
jne 0x42f318
xor eax, eax
jmp 0x42f343
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42f6b9
cmp dword [ebp - 0x4b0], 8
lea esi, [ebp - 0x4c4]
push 0x208
cmovae esi, dword [ebp - 0x4c4]
push eax
lea eax, [ebp - 0x44c]
push eax
call fcn.0046cf80
push esi
lea eax, [ebp - 0x44c]
push str.SYSTEMCurrentControlSet_services_s
push eax
call fcn.00405db0
add esp, 0x18
lea eax, [ebp - 0x574]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x44c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42f6b9
mov dword [ebp - 0x568], eax
lea eax, [ebp - 0x56c]
push eax
lea eax, [ebp - 0x568]
mov dword [ebp - 0x56c], 4
push eax
push 0
push 0
push str.Start
push dword [ebp - 0x574]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x574]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x568], 2
jne 0x42f6b9
push 4
xor eax, eax
mov dword [ebp - 0x1c], 0
push 0x5d8914
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00403240
mov ecx, dword [ebp - 0x564]
mov byte [ebp - 4], 0xc
cmp dword [ecx], 0
je 0x42f43b
push 4
push str..dll
lea ecx, [ebp - 0x2c]
call fcn.00403240
lea eax, [ebp - 0x560]
push eax
lea ecx, [ebp - 0x494]
call fcn.00403ce0
cmp dword [ebp - 0x18], 8
lea esi, [ebp - 0x2c]
lea edi, [ebp - 0x494]
mov byte [ebp - 4], 0xd
cmovae esi, dword [ebp - 0x2c]
cmp dword [ebp - 0x480], 8
mov dword [ebp - 0x570], esi
cmovae edi, dword [ebp - 0x494]
cmp dword [ebp - 0x1c], 0
je 0x42f609
cmp dword [ebp - 0x484], 0
je 0x42f609
push 0x100
lea eax, [ebp - 0x13c]
push 0
push eax
call fcn.0046cf80
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, esi
mov dword [ebp - 0x56c], 0x100
lea edx, [esi + eax*2]
cmp esi, edx
je 0x42f4de
nop dword [eax]
movzx eax, word [ecx]
cmp ax, word [ebp - 0x56c]
jae 0x42f516
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x13c], 1
cmp ecx, edx
jne 0x42f4c0
mov edx, dword [ebp - 0x484]
or ecx, 0xffffffff
mov esi, 0x100
lea eax, [edx - 1]
cmp eax, ecx
cmovb ecx, eax
lea ecx, [edi + ecx*2]
movzx eax, word [ecx]
cmp ax, si
jae 0x42f509
cmp byte [ebp + eax - 0x13c], 0
jne 0x42f567
cmp ecx, edi
je 0x42f609
sub ecx, 2
jmp 0x42f4f7
mov eax, dword [ebp - 0x484]
or ecx, 0xffffffff
dec eax
cmp eax, ecx
cmovb ecx, eax
lea ecx, [edi + ecx*2]
mov edx, dword [ebp - 0x1c]
mov eax, esi
test edx, edx
je 0x42f547
movzx esi, word [ecx]
cmp word [eax], si
je 0x42f550
add eax, 2
sub edx, 1
jne 0x42f534
mov esi, dword [ebp - 0x570]
cmp ecx, edi
je 0x42f55c
sub ecx, 2
jmp 0x42f528
mov edx, dword [ebp - 0x484]
sub ecx, edi
sar ecx, 1
jmp 0x42f56b
mov edx, dword [ebp - 0x484]
or ecx, 0xffffffff
jmp 0x42f56b
sub ecx, edi
sar ecx, 1
cmp ecx, 0xffffffff
je 0x42f609
xor eax, eax
mov dword [ebp - 0x4cc], 0
inc ecx
mov word [ebp - 0x4dc], ax
cmp edx, ecx
mov dword [ebp - 0x4c8], 7
lea eax, [ebp - 0x494]
cmovb ecx, edx
cmp dword [ebp - 0x480], 8
push ecx
cmovae eax, dword [ebp - 0x494]
lea ecx, [ebp - 0x4dc]
push eax
call fcn.00403240
lea ecx, [ebp - 0x494]
call fcn.00402fe0
movups xmm0, xmmword [ebp - 0x4dc]
xor eax, eax
lea ecx, [ebp - 0x4dc]
mov word [ebp - 0x4dc], ax
movups xmmword [ebp - 0x494], xmm0
movq xmm0, qword [ebp - 0x4cc]
movq qword [ebp - 0x484], xmm0
mov dword [ebp - 0x4cc], 0
mov dword [ebp - 0x4c8], 7
call fcn.00402fe0
cmp dword [ebp - 0x480], 8
lea ecx, [ebp - 0x494]
lea eax, [ebp - 0x464]
cmovae ecx, dword [ebp - 0x494]
cmp dword [ebp - 0x450], 8
push ecx
cmovae eax, dword [ebp - 0x464]
push eax
call fcn.004580a9
mov ecx, dword [ebp - 0x564]
lea eax, [ebp - 0x4c4]
add ecx, 0xf4
add esp, 8
cmp ecx, eax
je 0x42f66b
cmp dword [ebp - 0x4b0], 8
push dword [ebp - 0x4b4]
cmovae eax, dword [ebp - 0x4c4]
push eax
call fcn.00403240
cmp dword [ebp - 0x480], 8
lea ecx, [ebp - 0x494]
lea eax, [ebp - 0x4c4]
cmovae ecx, dword [ebp - 0x494]
cmp dword [ebp - 0x4b0], 8
push ecx
cmovae eax, dword [ebp - 0x4c4]
push eax
push 0x6d
call fcn.00451635
add esp, 0xc
lea ecx, [ebp - 0x494]
call fcn.00402fe0
lea ecx, [ebp - 0x2c]
call fcn.00402fe0
xor esi, esi
jmp 0x42f9d0
mov edi, dword [ebp - 0x564]
mov esi, dword [ebp - 0x578]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x42f6cf
mov eax, dword [esi]
push eax
mov ecx, edi
call fcn.0042fae0
mov ecx, edi
call fcn.0042e600
push dword [ebp - 0x570]
push str.bd5ca
push 0x5d4df4
call fcn.0046580c
cmp dword [ebp - 0x498], 8
lea eax, [ebp - 0x4ac]
cmovae eax, dword [ebp - 0x4ac]
push eax
push str.37f86
push 0x5d4df4
call fcn.0046580c
add esp, 0x18
call fcn.00418eb0
mov edi, eax
test edi, edi
je 0x42f76b
mov edx, dword [ebp - 0x564]
add edx, 0xdc
cmp dword [edx + 0x14], 8
jb 0x42f739
mov edx, dword [edx]
cmp dword [ebp - 0x498], 8
lea ecx, [ebp - 0x4ac]
mov eax, dword [edi]
cmovae ecx, dword [ebp - 0x4ac]
push edx
push ecx
push dword [ebp - 0x57c]
mov ecx, edi
push dword [ebp - 0x580]
push dword [ebp - 0x570]
call dword [eax + 0x11c]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x564]
cmp dword [eax], 0
je 0x42f7fc
lea ecx, [ebp - 0x4e4]
call fcn.00413e20
mov eax, dword [ebp - 0x564]
cmp dword [eax + 0xd8], 8
lea edx, [eax + 0xc4]
mov byte [ebp - 4], 0xe
jb 0x42f7a7
mov edx, dword [edx]
cmp dword [eax + 0x30], 8
lea edi, [eax + 0x1c]
jb 0x42f7b2
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x42f7ba
mov esi, dword [esi]
cmp dword [eax + 0x90], 8
lea ecx, [eax + 0x7c]
jb 0x42f7c8
mov ecx, dword [ecx]
cmp dword [ebp - 0x450], 8
lea eax, [ebp - 0x464]
push edx
cmovae eax, dword [ebp - 0x464]
push edi
push esi
push ecx
push eax
lea ecx, [ebp - 0x4e4]
call fcn.00413f00
lea ecx, [ebp - 0x4e4]
call fcn.00413e90
jmp 0x42f9cb
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x568], edi
test edi, edi
jne 0x42f828
push 0x6e
call fcn.00451635
add esp, 4
xor esi, esi
jmp 0x42f9d0
cmp dword [ebp - 0x498], 8
lea eax, [ebp - 0x4ac]
mov edx, dword [ebp - 0x564]
cmovae eax, dword [ebp - 0x4ac]
add edx, 0x1c
cmp dword [edx + 0x14], 8
jb 0x42f84d
mov edx, dword [edx]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x42f857
mov ecx, dword [esi]
push 0
push 0
push 0x6568a4
push 0
push 0
push eax
push 1
push 2
push 0x110
push 0xf01ff
push edx
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x570], eax
test eax, eax
jne 0x42f929
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x12]
push eax
call fcn.00406c80
mov ecx, eax
mov dword [ebp - 0x4cc], 0
xor eax, eax
add esp, 8
mov word [ebp - 0x4dc], ax
mov edx, 7
lea eax, [ebp - 0x12]
mov dword [ebp - 0x4c8], edx
cmp ecx, eax
je 0x42f8db
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x4dc]
call fcn.00403240
mov edx, dword [ebp - 0x4c8]
cmp edx, 8
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x4dc]
cmovae eax, dword [ebp - 0x4dc]
push eax
push str.LastError
push 0xad
call fcn.00451635
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x4dc]
call fcn.00402fe0
push 0x6f
call fcn.00451635
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
jmp 0x42f9d0
mov ecx, dword [ebp - 0x584]
cmp dword [ecx + 0x14], 8
jb 0x42f937
mov ecx, dword [ecx]
mov dword [ebp - 0x56c], ecx
lea ecx, [ebp - 0x56c]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push dword [ebp - 0x570]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push dword [ebp - 0x568]
call edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x584], eax
test eax, eax
je 0x42f9b9
cmp dword [esi + 0x14], 8
jb 0x42f984
mov esi, dword [esi]
push 0xf003f
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x42f9b5
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x42f9b0
push 0x72
call fcn.00451635
add esp, 4
push esi
call edi
jmp 0x42f9c3
push 0x71
jmp 0x42f9bb
push 0x70
call fcn.00451635
add esp, 4
push dword [ebp - 0x584]
call edi
mov esi, 1
lea ecx, [ebp - 0x500]
call fcn.00402fe0
lea ecx, [ebp - 0x548]
call fcn.00402fe0
lea ecx, [ebp - 0x560]
call fcn.00402fe0
lea ecx, [ebp - 0x4c4]
call fcn.00402fe0
lea ecx, [ebp - 0x4ac]
call fcn.00402fe0
lea ecx, [ebp - 0x518]
call fcn.00402fe0
lea ecx, [ebp - 0x530]
call fcn.00402fe0
mov edx, dword [ebp - 0x468]
cmp edx, 8
jb 0x42fa5d
mov ecx, dword [ebp - 0x47c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42fa53
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42fad5
push edx
push ecx
call fcn.0044a315
add esp, 8
mov edx, dword [ebp - 0x450]
xor eax, eax
mov dword [ebp - 0x46c], 0
mov dword [ebp - 0x468], 7
mov word [ebp - 0x47c], ax
cmp edx, 8
jb 0x42fab6
mov ecx, dword [ebp - 0x464]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42faac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42fada
push edx
push ecx
call fcn.0044a315
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044a851
mov esp, ebp
pop ebp
ret 0xc
call fcn.00470179
call fcn.00470179
int3