Function at 0x42ee10
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 0x5ce4f1
mov eax, dword fs:[0]
push eax
sub esp, 0x578
mov eax, dword [0x667ce0]
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 0x42ee65
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 0x42ee90
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 0x42eeb7
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 0x42eef2
push 9
push str.BKSvc.exe
lea ecx, [edi + 0x4c]
call fcn.00403240
mov eax, dword [0x66931c]
test eax, eax
jne 0x42ef30
push 0x15c
call fcn.0059c99d
add esp, 4
mov dword [ebp - 0x56c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x42ef22
mov ecx, eax
call fcn.004394d0
jmp 0x42ef24
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x66931c], eax
mov ecx, eax
call fcn.0043c9f8
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 0x42ef61
sub ecx, dword [ebp - 0x568]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x464]
call fcn.00403240
mov eax, dword [0x66931c]
mov dword [ebp - 4], 1
test eax, eax
jne 0x42efc0
push 0x15c
call fcn.0059c99d
add esp, 4
mov dword [ebp - 0x56c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x42efb5
mov ecx, eax
call fcn.004394d0
jmp 0x42efb7
xor eax, eax
mov byte [ebp - 4], 1
mov dword [0x66931c], eax
mov ecx, eax
call fcn.0043c9f8
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 0x42eff1
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.00405a30
cmp dword [edi + 0x60], 8
lea eax, [edi + 0x4c]
jb 0x42f033
mov eax, dword [edi + 0x4c]
push dword [edi + 0x5c]
lea ecx, [ebp - 0x464]
push eax
call fcn.00405a30
mov ecx, dword [ebp - 0x564]
cmp dword [ecx], 0
jne 0x42f084
cmp dword [ebp - 0x450], 8
lea eax, [ebp - 0x464]
cmovae eax, dword [ebp - 0x464]
push eax
call fcn.0045395b
cmp dword [ebp - 0x468], 8
lea eax, [ebp - 0x47c]
cmovae eax, dword [ebp - 0x47c]
push eax
call fcn.0045395b
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 0x42f0c9
cmp dword [ebp - 0x468], 8
cmovae eax, dword [ebp - 0x47c]
push eax
push 0x6c
call fcn.0043f1dd
add esp, 8
xor esi, esi
jmp 0x42fb3d
push eax
lea ecx, [ebp - 0x530]
call fcn.00403d20
lea eax, [ebp - 0x464]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x518]
call fcn.00403d20
lea eax, [ebp - 0x530]
mov byte [ebp - 4], 5
push eax
call fcn.004441ad
lea eax, [ebp - 0x518]
push eax
call fcn.004441ad
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 0x42f159
test edx, edx
je 0x42f18b
sub edi, ecx
mov ax, word [ecx + edi]
cmp ax, word [ecx]
jne 0x42f159
add ecx, 2
sub edx, 1
jne 0x42f146
jmp 0x42f18b
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.0044677c
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 0x42f276
push 0x208
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.005a2240
add esp, 0xc
lea ecx, [ebp - 0x4e8]
call fcn.004535d9
lea ecx, [ebp - 0x4e8]
mov byte [ebp - 4], 7
call fcn.0045360d
test eax, eax
lea eax, [ebp - 0x244]
push 0x104
push eax
je 0x42f201
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
jmp 0x42f207
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 0x42f210
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.00405a30
cmp dword [edi + 0x90], 8
lea ecx, [edi + 0x7c]
jb 0x42f253
mov ecx, dword [edi + 0x7c]
push dword [edi + 0x8c]
push ecx
lea ecx, [ebp - 0x4ac]
call fcn.00405a30
lea ecx, [ebp - 0x4e8]
mov byte [ebp - 4], 6
call fcn.004535ec
jmp 0x42f2c0
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 0x5d6b64
lea ecx, [ebp - 0x4ac]
call fcn.00405a30
push 3
push 0x5d8908
lea ecx, [ebp - 0x4ac]
call fcn.00405a30
push 0x656858
push str.bd5ca
lea eax, [ebp - 0x4c4]
push 0x5d4e0c
push eax
call fcn.00454101
push 0x656858
push str.37f86
lea eax, [ebp - 0x560]
mov byte [ebp - 4], 8
push 0x5d4e0c
push eax
call fcn.00454101
add esp, 0x20
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x548]
call fcn.00403d20
lea eax, [ebp - 0x560]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x500]
call fcn.00403d20
lea eax, [ebp - 0x500]
mov byte [ebp - 4], 0xb
push eax
call fcn.004441ad
lea eax, [ebp - 0x548]
push eax
call fcn.004441ad
lea eax, [ebp - 0x500]
push eax
lea eax, [ebp - 0x548]
push eax
call fcn.00406c00
add esp, 0x10
test al, al
je 0x42f7e5
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.005a2240
push esi
lea eax, [ebp - 0x244]
push str.SYSTEMCurrentControlSet_services_s
push eax
call fcn.00405d80
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 0x42f7d9
push 0x208
push eax
lea eax, [ebp - 0x44c]
push eax
call fcn.005a2240
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.005afc92
add esp, 4
mov cx, word [eax]
cmp cx, word [edi]
jne 0x42f45e
test cx, cx
je 0x42f45a
mov cx, word [eax + 2]
cmp cx, word [edi + 2]
jne 0x42f45e
add eax, 4
add edi, 4
test cx, cx
jne 0x42f438
xor eax, eax
jmp 0x42f463
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42f7d9
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.005a2240
push esi
lea eax, [ebp - 0x44c]
push str.SYSTEMCurrentControlSet_services_s
push eax
call fcn.00405d80
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 0x42f7d9
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 0x42f7d9
push 4
xor eax, eax
mov dword [ebp - 0x1c], 0
push 0x5d891c
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 0x42f55b
push 4
push str..dll
lea ecx, [ebp - 0x2c]
call fcn.00403240
lea eax, [ebp - 0x560]
push eax
lea ecx, [ebp - 0x494]
call fcn.00403d20
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 0x42f729
cmp dword [ebp - 0x484], 0
je 0x42f729
push 0x100
lea eax, [ebp - 0x13c]
push 0
push eax
call fcn.005a2240
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 0x42f5fe
nop dword [eax]
movzx eax, word [ecx]
cmp ax, word [ebp - 0x56c]
jae 0x42f636
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x13c], 1
cmp ecx, edx
jne 0x42f5e0
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 0x42f629
cmp byte [ebp + eax - 0x13c], 0
jne 0x42f687
cmp ecx, edi
je 0x42f729
sub ecx, 2
jmp 0x42f617
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 0x42f667
movzx esi, word [ecx]
cmp word [eax], si
je 0x42f670
add eax, 2
sub edx, 1
jne 0x42f654
mov esi, dword [ebp - 0x570]
cmp ecx, edi
je 0x42f67c
sub ecx, 2
jmp 0x42f648
mov edx, dword [ebp - 0x484]
sub ecx, edi
sar ecx, 1
jmp 0x42f68b
mov edx, dword [ebp - 0x484]
or ecx, 0xffffffff
jmp 0x42f68b
sub ecx, edi
sar ecx, 1
cmp ecx, 0xffffffff
je 0x42f729
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.0044677c
mov ecx, dword [ebp - 0x564]
lea eax, [ebp - 0x4c4]
add ecx, 0xf4
add esp, 8
cmp ecx, eax
je 0x42f78b
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.0043f1dd
add esp, 0xc
lea ecx, [ebp - 0x494]
call fcn.00402fe0
lea ecx, [ebp - 0x2c]
call fcn.00402fe0
xor esi, esi
jmp 0x42faf0
mov edi, dword [ebp - 0x564]
mov esi, dword [ebp - 0x578]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x42f7ef
mov eax, dword [esi]
push eax
mov ecx, edi
call fcn.0042fc00
mov ecx, edi
call fcn.0042e720
push dword [ebp - 0x570]
push str.bd5ca
push 0x5d4e0c
call fcn.004545e0
cmp dword [ebp - 0x498], 8
lea eax, [ebp - 0x4ac]
cmovae eax, dword [ebp - 0x4ac]
push eax
push str.37f86
push 0x5d4e0c
call fcn.004545e0
add esp, 0x18
call fcn.00418e60
mov edi, eax
test edi, edi
je 0x42f88b
mov edx, dword [ebp - 0x564]
add edx, 0xdc
cmp dword [edx + 0x14], 8
jb 0x42f859
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 0x42f91c
lea ecx, [ebp - 0x4e4]
call fcn.00413dd0
mov eax, dword [ebp - 0x564]
cmp dword [eax + 0xd8], 8
lea edx, [eax + 0xc4]
mov byte [ebp - 4], 0xe
jb 0x42f8c7
mov edx, dword [edx]
cmp dword [eax + 0x30], 8
lea edi, [eax + 0x1c]
jb 0x42f8d2
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x42f8da
mov esi, dword [esi]
cmp dword [eax + 0x90], 8
lea ecx, [eax + 0x7c]
jb 0x42f8e8
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.00413eb0
lea ecx, [ebp - 0x4e4]
call fcn.00413e40
jmp 0x42faeb
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 0x42f948
push 0x6e
call fcn.0043f1dd
add esp, 4
xor esi, esi
jmp 0x42faf0
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 0x42f96d
mov edx, dword [edx]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x42f977
mov ecx, dword [esi]
push 0
push 0
push 0x656858
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 0x42fa49
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x12]
push eax
call fcn.00406c50
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 0x42f9fb
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.0043f1dd
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x4dc]
call fcn.00402fe0
push 0x6f
call fcn.0043f1dd
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
jmp 0x42faf0
mov ecx, dword [ebp - 0x584]
cmp dword [ecx + 0x14], 8
jb 0x42fa57
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 0x42fad9
cmp dword [esi + 0x14], 8
jb 0x42faa4
mov esi, dword [esi]
push 0xf003f
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x42fad5
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x42fad0
push 0x72
call fcn.0043f1dd
add esp, 4
push esi
call edi
jmp 0x42fae3
push 0x71
jmp 0x42fadb
push 0x70
call fcn.0043f1dd
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 0x42fb7d
mov ecx, dword [ebp - 0x47c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42fb73
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42fbf5
push edx
push ecx
call fcn.0059c9cd
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 0x42fbd6
mov ecx, dword [ebp - 0x464]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42fbcc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42fbfa
push edx
push ecx
call fcn.0059c9cd
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.0059cf09
mov esp, ebp
pop ebp
ret 0xc
call fcn.005a57f9
call fcn.005a57f9
int3