Function at 0x42f080
Capabilities:
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 0x5cea11
mov eax, dword fs:[0]
push eax
sub esp, 0x578
mov eax, dword [0x667d00]
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 0x42f0d5
sub edx, esi
lea esi, [edi + 4]
sar edx, 1
push edx
push ecx
mov ecx, esi
mov dword [ebp - 0x578], esi
call fcn.004032c0
mov ecx, dword [ebp - 0x580]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f100
sub ecx, edx
sar ecx, 1
push ecx
push dword [ebp - 0x580]
lea ecx, [edi + 0x1c]
call fcn.004032c0
mov ecx, dword [ebp - 0x57c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f127
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.004032c0
cmp dword [edi + 0x5c], 0
jne 0x42f162
push 9
push str.BKSvc.exe
lea ecx, [edi + 0x4c]
call fcn.004032c0
mov eax, dword [0x66937c]
test eax, eax
jne 0x42f1a0
push 0x15c
call fcn.0059ce1e
add esp, 4
mov dword [ebp - 0x56c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x42f192
mov ecx, eax
call fcn.00439760
jmp 0x42f194
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x66937c], eax
mov ecx, eax
call fcn.0043cd98
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 0x42f1d1
sub ecx, dword [ebp - 0x568]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x464]
call fcn.004032c0
mov eax, dword [0x66937c]
mov dword [ebp - 4], 1
test eax, eax
jne 0x42f230
push 0x15c
call fcn.0059ce1e
add esp, 4
mov dword [ebp - 0x56c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x42f225
mov ecx, eax
call fcn.00439760
jmp 0x42f227
xor eax, eax
mov byte [ebp - 4], 1
mov dword [0x66937c], eax
mov ecx, eax
call fcn.0043cd98
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 0x42f261
sub ecx, dword [ebp - 0x568]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x47c]
call fcn.004032c0
push 9
push str.BKSvc.exe
lea ecx, [ebp - 0x47c]
mov byte [ebp - 4], 3
call fcn.00405ab0
cmp dword [edi + 0x60], 8
lea eax, [edi + 0x4c]
jb 0x42f2a3
mov eax, dword [edi + 0x4c]
push dword [edi + 0x5c]
lea ecx, [ebp - 0x464]
push eax
call fcn.00405ab0
mov ecx, dword [ebp - 0x564]
cmp dword [ecx], 0
jne 0x42f2f4
cmp dword [ebp - 0x450], 8
lea eax, [ebp - 0x464]
cmovae eax, dword [ebp - 0x464]
push eax
call fcn.00453d89
cmp dword [ebp - 0x468], 8
lea eax, [ebp - 0x47c]
cmovae eax, dword [ebp - 0x47c]
push eax
call fcn.00453d89
add esp, 8
cmp dword [ebp - 0x468], 8
lea eax, [ebp - 0x47c]
cmovae eax, dword [ebp - 0x47c]
push eax
call fcn.0044721f
add esp, 4
test al, al
lea eax, [ebp - 0x47c]
jne 0x42f33b
cmp dword [ebp - 0x468], 8
cmovae eax, dword [ebp - 0x47c]
push eax
push 0x6c
call fcn.0043f58a
add esp, 8
xor esi, esi
jmp 0x42fdbd
push eax
lea ecx, [ebp - 0x530]
call fcn.00403da0
lea eax, [ebp - 0x464]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x518]
call fcn.00403da0
lea eax, [ebp - 0x530]
mov byte [ebp - 4], 5
push eax
call fcn.0044455a
lea eax, [ebp - 0x518]
push eax
call fcn.0044455a
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 0x42f3d3
test edx, edx
je 0x42f405
sub edi, ecx
nop dword [eax + eax]
mov ax, word [ecx + edi]
cmp ax, word [ecx]
jne 0x42f3d3
add ecx, 2
sub edx, 1
jne 0x42f3c0
jmp 0x42f405
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.00446b29
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 0x42f4f6
push 0x208
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.005a26c0
add esp, 0xc
lea ecx, [ebp - 0x4e8]
call fcn.00453a07
lea ecx, [ebp - 0x4e8]
mov byte [ebp - 4], 7
call fcn.00453a3b
test eax, eax
lea eax, [ebp - 0x244]
push 0x104
push eax
je 0x42f47b
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
jmp 0x42f481
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x244]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f490
sub ecx, edx
lea eax, [ebp - 0x244]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4ac]
call fcn.004032c0
push 0x10
push str._svchost.exe__k
lea ecx, [ebp - 0x4ac]
call fcn.00405ab0
cmp dword [edi + 0x90], 8
lea ecx, [edi + 0x7c]
jb 0x42f4d3
mov ecx, dword [edi + 0x7c]
push dword [edi + 0x8c]
push ecx
lea ecx, [ebp - 0x4ac]
call fcn.00405ab0
lea ecx, [ebp - 0x4e8]
mov byte [ebp - 4], 6
call fcn.00453a1a
jmp 0x42f540
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.004032c0
push 1
push 0x5d6b74
lea ecx, [ebp - 0x4ac]
call fcn.00405ab0
push 3
push 0x5d8950
lea ecx, [ebp - 0x4ac]
call fcn.00405ab0
push 0x6568d8
push str.bd5ca
lea eax, [ebp - 0x4c4]
push 0x5d4e18
push eax
call fcn.0045452f
push 0x6568d8
push str.37f86
lea eax, [ebp - 0x560]
mov byte [ebp - 4], 8
push 0x5d4e18
push eax
call fcn.0045452f
add esp, 0x20
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x548]
call fcn.00403da0
lea eax, [ebp - 0x560]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x500]
call fcn.00403da0
lea eax, [ebp - 0x500]
mov byte [ebp - 4], 0xb
push eax
call fcn.0044455a
lea eax, [ebp - 0x548]
push eax
call fcn.0044455a
lea eax, [ebp - 0x500]
push eax
lea eax, [ebp - 0x548]
push eax
call fcn.00406c80
add esp, 0x10
test al, al
je 0x42fa65
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.005a26c0
push esi
lea eax, [ebp - 0x244]
push str.SYSTEMCurrentControlSet_services_s
push eax
call fcn.00405e00
add esp, 0x18
lea eax, [ebp - 0x574]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x244]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42fa59
push 0x208
push eax
lea eax, [ebp - 0x44c]
push eax
call fcn.005a26c0
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.005b0112
add esp, 4
mov cx, word [eax]
cmp cx, word [edi]
jne 0x42f6de
test cx, cx
je 0x42f6da
mov cx, word [eax + 2]
cmp cx, word [edi + 2]
jne 0x42f6de
add eax, 4
add edi, 4
test cx, cx
jne 0x42f6b8
xor eax, eax
jmp 0x42f6e3
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42fa59
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.005a26c0
push esi
lea eax, [ebp - 0x44c]
push str.SYSTEMCurrentControlSet_services_s
push eax
call fcn.00405e00
add esp, 0x18
lea eax, [ebp - 0x574]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x44c]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42fa59
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 0x42fa59
push 4
xor eax, eax
mov dword [ebp - 0x1c], 0
push 0x5d8964
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.004032c0
mov ecx, dword [ebp - 0x564]
mov byte [ebp - 4], 0xc
cmp dword [ecx], 0
je 0x42f7db
push 4
push str..dll
lea ecx, [ebp - 0x2c]
call fcn.004032c0
lea eax, [ebp - 0x560]
push eax
lea ecx, [ebp - 0x494]
call fcn.00403da0
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 0x42f9a9
cmp dword [ebp - 0x484], 0
je 0x42f9a9
push 0x100
lea eax, [ebp - 0x13c]
push 0
push eax
call fcn.005a26c0
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 0x42f87e
nop dword [eax]
movzx eax, word [ecx]
cmp ax, word [ebp - 0x56c]
jae 0x42f8b6
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x13c], 1
cmp ecx, edx
jne 0x42f860
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 0x42f8a9
cmp byte [ebp + eax - 0x13c], 0
jne 0x42f907
cmp ecx, edi
je 0x42f9a9
sub ecx, 2
jmp 0x42f897
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 0x42f8e7
movzx esi, word [ecx]
cmp word [eax], si
je 0x42f8f0
add eax, 2
sub edx, 1
jne 0x42f8d4
mov esi, dword [ebp - 0x570]
cmp ecx, edi
je 0x42f8fc
sub ecx, 2
jmp 0x42f8c8
mov edx, dword [ebp - 0x484]
sub ecx, edi
sar ecx, 1
jmp 0x42f90b
mov edx, dword [ebp - 0x484]
or ecx, 0xffffffff
jmp 0x42f90b
sub ecx, edi
sar ecx, 1
cmp ecx, 0xffffffff
je 0x42f9a9
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.004032c0
lea ecx, [ebp - 0x494]
call fcn.00403060
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.00403060
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.00446b29
mov ecx, dword [ebp - 0x564]
lea eax, [ebp - 0x4c4]
add ecx, 0xf4
add esp, 8
cmp ecx, eax
je 0x42fa0b
cmp dword [ebp - 0x4b0], 8
push dword [ebp - 0x4b4]
cmovae eax, dword [ebp - 0x4c4]
push eax
call fcn.004032c0
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.0043f58a
add esp, 0xc
lea ecx, [ebp - 0x494]
call fcn.00403060
lea ecx, [ebp - 0x2c]
call fcn.00403060
xor esi, esi
jmp 0x42fd70
mov edi, dword [ebp - 0x564]
mov esi, dword [ebp - 0x578]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x42fa6f
mov eax, dword [esi]
push eax
mov ecx, edi
call fcn.0042fe90
mov ecx, edi
call fcn.0042e980
push dword [ebp - 0x570]
push str.bd5ca
push 0x5d4e18
call fcn.00454a0e
cmp dword [ebp - 0x498], 8
lea eax, [ebp - 0x4ac]
cmovae eax, dword [ebp - 0x4ac]
push eax
push str.37f86
push 0x5d4e18
call fcn.00454a0e
add esp, 0x18
call fcn.00419280
mov edi, eax
test edi, edi
je 0x42fb0b
mov edx, dword [ebp - 0x564]
add edx, 0xdc
cmp dword [edx + 0x14], 8
jb 0x42fad9
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 + 0x120]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x564]
cmp dword [eax], 0
je 0x42fb9c
lea ecx, [ebp - 0x4e4]
call fcn.004140d0
mov eax, dword [ebp - 0x564]
cmp dword [eax + 0xd8], 8
lea edx, [eax + 0xc4]
mov byte [ebp - 4], 0xe
jb 0x42fb47
mov edx, dword [edx]
cmp dword [eax + 0x30], 8
lea edi, [eax + 0x1c]
jb 0x42fb52
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x42fb5a
mov esi, dword [esi]
cmp dword [eax + 0x90], 8
lea ecx, [eax + 0x7c]
jb 0x42fb68
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.004141b0
lea ecx, [ebp - 0x4e4]
call fcn.00414140
jmp 0x42fd6b
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 0x42fbc8
push 0x6e
call fcn.0043f58a
add esp, 4
xor esi, esi
jmp 0x42fd70
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 0x42fbed
mov edx, dword [edx]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x42fbf7
mov ecx, dword [esi]
push 0
push 0
push 0x6568d8
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 0x42fcc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x12]
push eax
call fcn.00406cd0
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 0x42fc7b
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x4dc]
call fcn.004032c0
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.0043f58a
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x4dc]
call fcn.00403060
push 0x6f
call fcn.0043f58a
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
jmp 0x42fd70
mov ecx, dword [ebp - 0x584]
cmp dword [ecx + 0x14], 8
jb 0x42fcd7
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 0x42fd59
cmp dword [esi + 0x14], 8
jb 0x42fd24
mov esi, dword [esi]
push 0xf003f
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x42fd55
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x42fd50
push 0x72
call fcn.0043f58a
add esp, 4
push esi
call edi
jmp 0x42fd63
push 0x71
jmp 0x42fd5b
push 0x70
call fcn.0043f58a
add esp, 4
push dword [ebp - 0x584]
call edi
mov esi, 1
lea ecx, [ebp - 0x500]
call fcn.00403060
lea ecx, [ebp - 0x548]
call fcn.00403060
lea ecx, [ebp - 0x560]
call fcn.00403060
lea ecx, [ebp - 0x4c4]
call fcn.00403060
lea ecx, [ebp - 0x4ac]
call fcn.00403060
lea ecx, [ebp - 0x518]
call fcn.00403060
lea ecx, [ebp - 0x530]
call fcn.00403060
mov edx, dword [ebp - 0x468]
cmp edx, 8
jb 0x42fdfd
mov ecx, dword [ebp - 0x47c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42fdf3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42fe75
push edx
push ecx
call fcn.0059ce4e
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 0x42fe56
mov ecx, dword [ebp - 0x464]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42fe4c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42fe7a
push edx
push ecx
call fcn.0059ce4e
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.0059d38a
mov esp, ebp
pop ebp
ret 0xc
call fcn.005a5c79
call fcn.005a5c79
int3