Function at 0x77c99714
Capabilities:
Check mutex on windows
Query environment variable

Disassembly:
call sym.ADVAPI32.dll_RevertToSelf
mov edi, eax
jmp 0x77c9a197
push dword [ebp - 0x4f4]
push ebx
call sym.ADVAPI32.dll_SetThreadToken
test eax, eax
jne 0x77c9a1da
jmp 0x77cdef13
push dword [ebp - 0x4f4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x77c9a1e6
push dword [ebp - 0x4ec]
push 0x4a4
push 0x77c9a6a8
call fcn.77c9e3db
jmp 0x77c9a234
mov esi, 0x482
jmp 0x77c998de
cmp esi, ebx
push 8
pop edi
je 0x77c99955
jmp 0x77c999aa
cmp dword [ebp - 0x4d4], ebx
je 0x77c99aee
jmp 0x77c99b38
cmp dword [ebp - 0x4c8], edi
jne 0x77c99d70
jmp 0x77c99d8e
cmp dword [ebp - 0x4c8], 8
jne 0x77c99dda
jmp 0x77c99df4
cmp al, 1
jae 0x77cdee1f
jmp 0x77c9b1e1
and eax, 0xffff
jmp 0x77c9a211
mov eax, dword [esi + 0x140]
cmp eax, dword [ebp - 0x518]
jne 0x77cdeea0
mov eax, dword [esi + 0x144]
cmp eax, dword [ebp - 0x514]
jne 0x77cdeea0
push dword [ebp - 0x500]
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x77cdeea0
push dword [ebp - 0x504]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x77cdeea0
push dword [ebp - 0x4f8]
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x77cdeea0
push dword [ebp - 0x51c]
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x77cdeea0
cmp esi, ebx
je 0x77c99e97
mov dword [ebp - 0x4e8], esi
mov byte [esi + 0x1cc], bl
mov byte [esi + 0x1cd], bl
jmp 0x77c9a21b
cmp dword [ebp - 0x4fc], 0xffffffff
je 0x77c99e73
push 1
lea eax, [ebp - 0x4c8]
push eax
push ebx
lea eax, [ebp - 0x4cc]
push eax
push ebx
mov esi, 0x77c99064
push esi
push dword [ebp - 0x4fc]
mov dword [ebp - 0x4c8], ebx
mov dword [ebp - 0x4cc], ebx
call fcn.77c9e52f
cmp eax, ebx
je 0x77c98fc5
cmp eax, 0xea
jne 0x77cdee50
cmp dword [ebp - 0x4cc], 1
jne 0x77c9b1a2
mov eax, dword [ebp - 0x4c8]
add eax, 2
push eax
push 0x36c
push 0x77c9a6a8
call fcn.77c9e393
cmp eax, ebx
mov dword [ebp - 0x4ec], eax
je 0x77cdee63
push 1
lea eax, [ebp - 0x4c8]
push eax
push dword [ebp - 0x4ec]
lea eax, [ebp - 0x4cc]
push eax
push ebx
push esi
push dword [ebp - 0x4fc]
mov dword [ebp - 0x4cc], ebx
call fcn.77c9e52f
mov esi, eax
cmp esi, ebx
jne 0x77cdee3b
cmp dword [ebp - 0x4cc], 1
jne 0x77c9b1b4
mov eax, dword [ebp - 0x4c8]
inc eax
mov dword [ebp - 0x4d4], eax
add eax, 7
and eax, 0xfffffff8
add dword [ebp - 0x4d0], eax
push dword [ebp - 0x4fc]
call sym.ADVAPI32.dll_RegCloseKey
jmp 0x77c99e81
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x558], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [0x77d1e66c]
mov dword [ebp - 0x4d8], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [eax + 4]
mov dword [ebp - 0x510], eax
mov dword [ebp - 0x548], ebx
mov dword [ebp - 0x4e8], ebx
mov dword [ebp - 0x4f4], ebx
mov dword [ebp - 0x518], ebx
mov dword [ebp - 0x514], ebx
mov dword [ebp - 0x4e0], ebx
mov dword [ebp - 0x4d0], 0x1d0
mov dword [ebp - 0x4ec], ebx
mov dword [ebp - 0x50c], ebx
mov dword [ebp - 0x4dc], edi
mov dword [ebp - 0x54c], ebx
cmp esi, ebx
mov dword [ebp - 0x544], esi
je 0x77c997bd
push edi
push dword [esi + 0x150]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x77c997bd
mov dword [ebp - 0x54c], esi
mov esi, dword [esi]
jmp 0x77c99798
mov eax, 0x1708
push eax
push 0x142
push 0x77c9a6a8
mov dword [ebp - 0x4c8], eax
call fcn.77c9e393
cmp eax, ebx
mov dword [ebp - 0x508], eax
je 0x77cde9c7
xor eax, eax
lea edi, [ebp - 0x568]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x77d1e7b8]
push 1
mov dword [ebp - 0x528], eax
mov dword [ebp - 0x52c], eax
lea eax, [ebp - 0x4c8]
push eax
push dword [ebp - 0x508]
lea eax, [ebp - 0x4cc]
push eax
push ebx
push 0x77c9a278
push dword [ebp - 0x4d8]
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x534], ebx
mov dword [ebp - 0x530], ebx
mov dword [ebp - 0x550], 0x3e8
mov dword [ebp - 0x4c8], 0x430
call fcn.77c9e52f
mov esi, eax
cmp esi, ebx
jne 0x77c9b1c6
mov eax, dword [ebp - 0x4c8]
add eax, 8
and eax, 0xfffffff8
add eax, dword [ebp - 0x508]
cmp dword [ebp - 0x4cc], 2
push 8
mov dword [ebp - 0x500], eax
pop edi
je 0x77c9b10e
cmp dword [ebp - 0x4cc], 1
jne 0x77cde9ce
push ebx
push dword [ebp - 0x500]
push 0x218
push ebx
push dword [ebp - 0x508]
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
cmp eax, 0x218
mov dword [ebp - 0x4c8], eax
ja 0x77c86298
cmp eax, ebx
je 0x77c86298
lea edi, [eax + eax + 2]
mov dword [ebp - 0x4c8], edi
add edi, 7
and edi, 0xfffffff8
lea eax, [edi + 0x1d0]
mov dword [ebp - 0x4d0], eax
mov eax, dword [ebp - 0x500]
add edi, eax
cmp esi, ebx
push 8
mov dword [ebp - 0x504], edi
pop edi
jne 0x77c999aa
mov edi, dword [ebp - 0x504]
push ebx
lea eax, [ebp - 0x4c8]
push eax
push edi
lea eax, [ebp - 0x4cc]
push eax
push ebx
push 0x77c9a288
push dword [ebp - 0x4d8]
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x4c8], 0x218
call fcn.77c9e52f
mov esi, eax
cmp esi, ebx
jne 0x77cde9fe
cmp byte [edi], bl
je 0x77cde9fe
mov eax, dword [ebp - 0x4c8]
mov ecx, dword [ebp - 0x504]
lea edi, [eax + 8]
and edi, 0xfffffff8
mov byte [ecx + eax], bl
add dword [ebp - 0x4d0], edi
push 1
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x4cc]
push eax
push ebx
push 0x77c9a2d8
push dword [ebp - 0x4d8]
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x4c8], 4
call fcn.77c9e52f
mov esi, eax
cmp esi, ebx
je 0x77c9b125
mov eax, dword [0x77d1e7b8]
mov dword [ebp - 0x52c], eax
xor esi, esi
mov eax, dword [ebp - 0x504]
add edi, eax
cmp esi, ebx
mov dword [ebp - 0x51c], edi
mov dword [ebp - 0x4f0], 8
jne 0x77c99a1b
push ebx
lea eax, [ebp - 0x4c8]
push eax
push edi
lea eax, [ebp - 0x4cc]
push eax
push ebx
push 0x77c9a290
push dword [ebp - 0x4d8]
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x4c8], 0x218
call fcn.77c9e52f
mov esi, eax
cmp esi, ebx
jne 0x77cdeab0
cmp byte [edi], bl
je 0x77cdeab0
mov eax, dword [ebp - 0x4c8]
add eax, 8
and eax, 0xfffffff8
mov dword [ebp - 0x4f0], eax
mov eax, dword [ebp - 0x4f0]
mov ecx, dword [ebp - 0x51c]
add eax, ecx
cmp esi, ebx
push 8
mov dword [ebp - 0x4f8], eax
pop edi
jne 0x77c9b1e1
mov eax, dword [ebp - 0x4f0]
add dword [ebp - 0x4d0], eax
push ebx
lea eax, [ebp - 0x4c8]
push eax
push dword [ebp - 0x4f8]
lea eax, [ebp - 0x4cc]
push eax
push ebx
push 0x77c9a2a0
push dword [ebp - 0x4d8]
mov esi, 0x218
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x4c8], esi
call fcn.77c9e52f
cmp eax, ebx
mov dword [ebp - 0x4d4], eax
je 0x77cdeb5e
push ebx
lea eax, [ebp - 0x4c8]
push eax
push dword [ebp - 0x4f8]
lea eax, [ebp - 0x4cc]
push eax
push ebx
push 0x77c9a298
push dword [ebp - 0x4d8]
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x4c8], esi
call fcn.77c9e52f
xor esi, esi
cmp eax, ebx
mov dword [ebp - 0x4d4], eax
jne 0x77cdeb7e
mov edi, dword [ebp - 0x4c8]
add edi, 8
and edi, 0xfffffff8
add dword [ebp - 0x4d0], edi
inc esi
mov eax, dword [ebp - 0x4f8]
cmp byte [eax], bl
je 0x77cdeb7f
push esi
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x4cc]
push eax
push ebx
push 0x77c9a2f4
push dword [ebp - 0x4d8]
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x4c8], 4
call fcn.77c9e52f
test eax, eax
je 0x77c9b137
mov eax, dword [0x77d1e7b8]
mov dword [ebp - 0x528], eax
push esi
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x4cc]
push eax
push ebx
push 0x77c9a3a4
push dword [ebp - 0x4d8]
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x4c8], 4
call fcn.77c9e52f
test eax, eax
jne 0x77c9b149
cmp dword [ebp - 0x4cc], 4
jne 0x77c9b149
push esi
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x514]
push eax
lea eax, [ebp - 0x4cc]
push eax
push ebx
push 0x77c98d38
push dword [ebp - 0x4d8]
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x4c8], 4
call fcn.77c9e52f
test eax, eax
jne 0x77c9b154
cmp dword [ebp - 0x4cc], 4
jne 0x77c9b154
mov eax, dword [ebp - 0x4f8]
push esi
add edi, eax
lea eax, [ebp - 0x4c8]
push eax
push edi
lea eax, [ebp - 0x4cc]
push eax
push ebx
push 0x77c9a2a8
push dword [ebp - 0x4d8]
mov dword [ebp - 0x4d4], edi
mov dword [ebp - 0x4f0], 8
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x4c8], 0x430
call fcn.77c9e52f
cmp eax, ebx
jne 0x77c99ca4
mov eax, dword [ebp - 0x4c8]
add eax, 8
and eax, 0xfffffff8
cmp dword [ebp - 0x4cc], esi
mov dword [ebp - 0x4f0], eax
jne 0x77cded35
mov esi, dword [ebp - 0x4d4]
xor edi, edi
cmp word [esi], bx
je 0x77c99ca4
cmp word [esi], 0x20
je 0x77c9b15f
cmp edi, ebx
je 0x77c9a414
inc esi
inc esi
cmp word [esi], bx
jne 0x77c99c4c
cmp edi, ebx
je 0x77c99ca4
cmp dword [ebp - 0x4e0], 0x40
jae 0x77c99c9c
cmp edi, esi
je 0x77c99c9c
cmp word [esi], bx
jne 0x77c99c9c
push 0xa
push ebx
push edi
call sub.ntdll.dll_wcstoul
mov ecx, dword [ebp - 0x4e0]
add esp, 0xc
inc dword [ebp - 0x4e0]
mov dword [ebp + ecx*4 - 0x668], eax
xor edi, edi
cmp edi, ebx
jne 0x77cdec38
mov ecx, dword [ebp - 0x4d4]
mov eax, dword [ebp - 0x4f0]
push 4
pop esi
add eax, ecx
push 1
mov dword [ebp - 0x4d4], eax
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x554]
push eax
lea eax, [ebp - 0x4cc]
push eax
push ebx
push 0x77c9a318
push dword [ebp - 0x4d8]
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x554], ebx
mov dword [ebp - 0x4c8], esi
call fcn.77c9e52f
cmp eax, ebx
je 0x77cdec95
push 1
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x550]
push eax
lea eax, [ebp - 0x4cc]
push eax
push ebx
push 0x77c9a3c0
push dword [ebp - 0x4d8]
mov dword [ebp - 0x4cc], esi
mov dword [ebp - 0x4c8], esi
call fcn.77c9e52f
push 0x10
pop edi
push 1
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x568]
push eax
lea eax, [ebp - 0x4cc]
push eax
push ebx
push 0x77c9a348
push dword [ebp - 0x4d8]
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x4c8], edi
call fcn.77c9e52f
cmp eax, ebx
je 0x77cdecb9
mov ecx, dword [0x77d1f248]
and cl, 0xf
cmp cl, 4
jae 0x77cdeccb
xor eax, eax
lea edi, [ebp - 0x568]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x534]
stosd dword es:[edi], eax
push 1
stosd dword es:[edi], eax
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x534]
push eax
lea eax, [ebp - 0x4cc]
push eax
push ebx
push 0x77c9a378
push dword [ebp - 0x4d8]
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x4c8], 8
call fcn.77c9e52f
mov ecx, eax
cmp ecx, ebx
je 0x77cdecf7
or eax, 0xffffffff
lea edi, [ebp - 0x534]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x77d1f248]
and al, 0xf
cmp al, 4
jae 0x77cded09
mov edi, 0x800
push edi
lea eax, [ebp - 0x4e4]
push eax
lea eax, [ebp - 0x4f0]
push eax
push dword [ebp - 0x4dc]
push 0x218
push dword [ebp - 0x4d4]
call fcn.77c98d9f
cmp eax, ebx
jl 0x77c99e38
push 0x77c9a2c0
push dword [ebp - 0x4e4]
push dword [ebp - 0x4f0]
call fcn.77c9e187
or dword [ebp - 0x4fc], 0xffffffff
mov ecx, eax
and ecx, 0xffff
cmp eax, ebx
jl 0x77c99e6b
lea eax, [ebp - 0x4fc]
push eax
push 0x20019
push ebx
push dword [ebp - 0x4d4]
push dword [ebp - 0x558]
call sym.ADVAPI32.dll_RegOpenKeyExW
mov ecx, eax
cmp ecx, ebx
je 0x77c98f7a
mov dword [ebp - 0x4ec], ebx
mov dword [ebp - 0x4d4], ebx
xor esi, esi
cmp esi, ebx
jne 0x77c9b1e1
mov esi, dword [ebp - 0x544]
cmp esi, ebx
jne 0x77c862fd
mov eax, dword [ebp - 0x510]
movzx eax, word [eax + 2]
mov dword [ebp - 0x4c8], eax
add eax, 7
and eax, 0xfffffff8
add dword [ebp - 0x4d0], eax
push dword [ebp - 0x4d0]
push 0x3c2
push 0x77c9a6a8
call fcn.77c9e393
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x4e8], esi
je 0x77cdef1e
push edi
lea ecx, [ebp - 0x4e4]
push ecx
lea ecx, [ebp - 0x4d0]
push ecx
push dword [ebp - 0x504]
mov ecx, dword [ebp - 0x4d0]
add ecx, 0xfffffe30
lea eax, [esi + 0x1d0]
push ecx
push eax
mov dword [esi + 0xc], eax
call fcn.77c98e75
cmp eax, ebx
jl 0x77c862f3
mov edx, dword [ebp - 0x52c]
mov eax, dword [ebp - 0x4d0]
push edi
mov dword [esi + 0x24], edx
lea ecx, [eax + 8]
lea edx, [ebp - 0x4e4]
push edx
and ecx, 0xfffffff8
lea edx, [ebp - 0x4d0]
push edx
push dword [ebp - 0x4f8]
sub eax, ecx
add eax, dword [ebp - 0x4e4]
mov dword [esi + 0x1c], ecx
push eax
push ecx
call fcn.77c98e75
cmp eax, ebx
jl 0x77c862f3
mov edx, dword [ebp - 0x528]
mov eax, dword [ebp - 0x4d0]
push edi
mov dword [esi + 0x20], edx
lea ecx, [eax + 8]
lea edx, [ebp - 0x4e4]
push edx
and ecx, 0xfffffff8
lea edx, [ebp - 0x4d0]
push edx
push dword [ebp - 0x51c]
sub eax, ecx
add eax, dword [ebp - 0x4e4]
mov dword [esi + 0x2c], ecx
push eax
push ecx
call fcn.77c98e75
cmp eax, ebx
jl 0x77c862f3
mov eax, dword [ebp - 0x4d0]
lea ecx, [eax + 8]
push edi
and ecx, 0xfffffff8
lea edx, [ebp - 0x4e4]
push edx
sub eax, ecx
add eax, dword [ebp - 0x4e4]
lea edx, [ebp - 0x4d0]
push edx
push dword [ebp - 0x500]
shr eax, 1
push eax
push ecx
mov dword [esi + 0x34], ecx
call fcn.77c98d9f
cmp eax, ebx
jl 0x77c862f3
mov eax, dword [ebp - 0x4d0]
mov ecx, dword [ebp - 0x4e4]
lea edi, [eax + 0xf]
and edi, 0xfffffff8
lea esi, [ecx + ecx]
sub esi, edi
add esi, eax
cmp dword [ebp - 0x4ec], ebx
jne 0x77c9a64d
mov eax, dword [ebp - 0x4e8]
push 0x800
mov dword [eax + 0x150], edi
lea eax, [ebp - 0x4e4]
push eax
lea eax, [ebp - 0x4d0]
push eax
push dword [ebp - 0x4dc]
shr esi, 1
push esi
push edi
call fcn.77c98d9f
cmp eax, ebx
jl 0x77c862f3
cmp dword [ebp - 0x548], ebx
jne 0x77cdeee5
cmp dword [ebp - 0x4e0], ebx
mov eax, dword [ebp - 0x4e8]
mov ecx, dword [ebp - 0x4f4]
mov dword [eax + 0x148], ecx
mov ecx, dword [ebp - 0x4d8]
mov dword [eax + 0x38], ecx
lea edi, [eax + 0x160]
lea esi, [ebp - 0x568]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x534]
mov dword [eax + 0x170], ecx
mov ecx, dword [ebp - 0x530]
mov dword [eax + 0x174], ecx
mov dword [eax + 0x14c], 1
mov ecx, dword [ebp - 0x518]
mov dword [eax + 0x140], ecx
mov ecx, dword [ebp - 0x514]
mov dword [eax + 0x144], ecx
mov esi, eax
jbe 0x77c9a0cc
mov eax, dword [ebp - 0x4e0]
mov dword [esi + 0x3c], eax
shl eax, 2
push eax
lea eax, [ebp - 0x668]
push eax
lea eax, [esi + 0x40]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
mov edi, 0x800
push edi
lea eax, [ebp - 0x4e4]
push eax
lea eax, [ebp - 0x4f0]
push eax
push dword [ebp - 0x4dc]
lea eax, [ebp - 0x4c4]
push 0x218
push eax
mov dword [esi + 0x158], ebx
mov dword [esi + 0x15c], ebx
call fcn.77c98d9f
test eax, eax
jl 0x77c9a12c
push edi
lea eax, [ebp - 0x4e4]
push eax
lea eax, [ebp - 0x4f0]
push eax
push 0x77c9a3e4
push dword [ebp - 0x4e4]
push dword [ebp - 0x4f0]
call fcn.77c98d9f
push 0x10
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call sub.ntdll.dll__ultow
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x4e4]
push dword [ebp - 0x4f0]
call fcn.77c9e187
test eax, eax
jl 0x77cdeef1
lea eax, [ebp - 0x4f4]
push eax
push 1
push 4
mov dword [ebp - 0x4f4], ebx
mov dword [ebp - 0x4d4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call sym.ADVAPI32.dll_OpenThreadToken
mov edi, eax
cmp edi, ebx
jne 0x77c85da4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4d4], eax
mov eax, dword [0x77d1e688]
cmp eax, ebx
je 0x77c9a9cd
mov dword [ebp - 0x538], ebx
mov dword [ebp - 0x53c], 0x77d1ef20
mov dword [ebp - 0x540], eax
lea eax, [ebp - 0x4c4]
push eax
push ebx
lea eax, [ebp - 0x540]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp edi, ebx
mov dword [esi + 4], eax
jne 0x77c85db0
cmp dword [ebp - 0x4f4], ebx
jne 0x77c85dc9
cmp dword [esi + 4], ebx
mov eax, dword [ebp - 0x550]
mov dword [esi + 0x1a8], eax
mov byte [esi + 0x1cc], 1
je 0x77c9a20b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x77c9a21b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jne 0x77c9b1e1
mov eax, dword [0x77d1f238]
cmp eax, ebx
jne 0x77cdef51
cmp dword [ebp - 0x4ec], ebx
jne 0x77c8627e
mov esi, dword [ebp - 0x4e8]
cmp esi, ebx
je 0x77c9a249
lea eax, [esi + 0x1b0]
mov dword [eax + 4], eax
mov dword [eax], eax
push dword [ebp - 0x508]
push 0x4ac
push 0x77c9a6a8
call fcn.77c9e3db
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cc744e
leave
ret 0xc
mov edi, esi
jmp 0x77c99c5e
push dword [ebp - 0x4d4]
mov eax, dword [ebp - 0x4e8]
push dword [ebp - 0x4ec]
mov dword [eax + 0x10], edi
push edi
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 0x4d4]
add esp, 0xc
push dword [ebp - 0x4ec]
shr eax, 1
push 0x402
lea edi, [edi + eax*2 + 7]
push 0x77c9a6a8
and edi, 0xfffffff8
call fcn.77c9e3db
mov eax, dword [ebp - 0x4d4]
add eax, 7
and eax, 0xfffffff8
mov dword [ebp - 0x4ec], ebx
sub esi, eax
jmp 0x77c99ffb
push dword [ebp - 0x4d4]
call fcn.77c9a9f5
test eax, eax
mov dword [ebp - 0x538], ebx
je 0x77cdeefa
mov eax, dword [0x77d1e688]
jmp 0x77c9a1aa
push 0x218
push eax
push dword [ebp - 0x508]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x77c998a9
cmp dword [ebp - 0x4cc], 4
je 0x77c999aa
jmp 0x77c9999d
cmp dword [ebp - 0x4cc], 4
je 0x77c99b38
jmp 0x77c99b2d
mov dword [ebp - 0x518], ebx
jmp 0x77c99b84
mov dword [ebp - 0x514], ebx
jmp 0x77c99bd0
cmp edi, ebx
je 0x77c99c5e
cmp dword [ebp - 0x4e0], 0x40
jae 0x77c99c5e
push 0xa
push ebx
push edi
mov word [esi], bx
call sub.ntdll.dll_wcstoul
mov ecx, dword [ebp - 0x4e0]
add esp, 0xc
inc dword [ebp - 0x4e0]
mov dword [ebp + ecx*4 - 0x668], eax
mov word [esi], 0x20
xor edi, edi
jmp 0x77c99c5e
cmp dword [ebp - 0x4cc], 7
je 0x77c98fd2
jmp 0x77cdee50
cmp dword [ebp - 0x4cc], 7
je 0x77c99039
jmp 0x77cdee3b
mov eax, dword [0x77d1f248]
and al, 0xf
cmp dword [ebp - 0x4dc], ebx
je 0x77c862e6
cmp al, 1
jae 0x77cded8c
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x77d1f248]
and al, 0xf
cmp al, 1
jae 0x77cdedcb
cmp dword [ebp - 0x50c], ebx
jne 0x77cdede7
cmp dword [ebp - 0x4e8], ebx
je 0x77c9a228
jmp 0x77cdedff
xor eax, eax
jmp 0x77c9a260
mov eax, dword [0x77d1f248]
and al, 0xf
cmp al, 1
mov esi, 0x482
jb 0x77c998de
push ebx
push esi
push ebx
push 0x12
push 0x18c
push 0x77ce207c
call fcn.77d1169e
add esp, 0x18
jmp 0x77c998de
mov eax, dword [0x77d1f248]
and al, 0xf
cmp dword [ebp - 0x4dc], ebx
je 0x77cdea3c
cmp al, 1
jb 0x77cdea57
mov eax, dword [ebp - 0x510]
movzx eax, word [eax + 2]
push ebx
push eax
push dword [ebp - 0x4dc]
push esi
push 1
push 0x12
push 0x1a4
push 0x77ce207c
call fcn.77d1169e
add esp, 0x20
jmp 0x77cdea57
cmp al, 1
jb 0x77cdea57
push ebx
push esi
push ebx
push 0x12
push 0x1a8
push 0x77ce207c
call fcn.77d1169e
add esp, 0x18
push 0x77d1a5a0
push ebx
mov edi, 0xc0000bbb
push edi
mov dword [ebp - 0x50c], 1
call fcn.77ccbc5e
test eax, eax
je 0x77c862a2
mov eax, dword [ebp - 0x4dc]
push ebx
mov dword [ebp - 0x520], eax
lea eax, [ebp - 0x524]
push eax
push ebx
push 2
push ebx
push edi
push ebx
push 1
push dword [0x77d1e664]
mov dword [ebp - 0x524], 0x77cdefb0
call sym.ADVAPI32.dll_ReportEventW
jmp 0x77c862a2
mov eax, dword [0x77d1f248]
and al, 0xf
cmp dword [ebp - 0x4dc], ebx
je 0x77cdeaee
cmp al, 1
jb 0x77cdeb09
mov eax, dword [ebp - 0x510]
movzx eax, word [eax + 2]
push ebx
push eax
push dword [ebp - 0x4dc]
push esi
push 1
push 0x12
push 0x1f5
push 0x77ce207c
call fcn.77d1169e
add esp, 0x20
jmp 0x77cdeb09
cmp al, 1
jb 0x77cdeb09
push ebx
push esi
push ebx
push 0x12
push 0x1f9
push 0x77ce207c
call fcn.77d1169e
add esp, 0x18
push 0x77d1a5a0
push ebx
mov edi, 0xc0000bbb
push edi
call fcn.77ccbc5e
test eax, eax
je 0x77cdeb4f
mov eax, dword [ebp - 0x4dc]
push ebx
mov dword [ebp - 0x520], eax
lea eax, [ebp - 0x524]
push eax
push ebx
push 2
push ebx
push edi
push ebx
push 1
push dword [0x77d1e664]
mov dword [ebp - 0x524], 0x77cdefa4
call sym.ADVAPI32.dll_ReportEventW
mov dword [ebp - 0x50c], 1
jmp 0x77c99a1b
mov edi, dword [ebp - 0x4c8]
add edi, 8
and edi, 0xfffffff8
add dword [ebp - 0x4d0], edi
xor esi, esi
inc esi
mov dword [ebp - 0x548], esi
jmp 0x77c99ae0
inc esi
mov eax, dword [0x77d1f248]
and al, 0xf
cmp dword [ebp - 0x4dc], ebx
je 0x77cdebc1
cmp al, 1
jb 0x77cdebe1
mov eax, dword [ebp - 0x510]
movzx eax, word [eax + 2]
push ebx
push eax
push dword [ebp - 0x4dc]
push dword [ebp - 0x4d4]
push esi
push 0x12
push 0x24e
push 0x77ce207c
call fcn.77d1169e
add esp, 0x20
jmp 0x77cdebe1
cmp al, 1
jb 0x77cdebe1
push ebx
push dword [ebp - 0x4d4]
push ebx
push 0x12
push 0x252
push 0x77ce207c
call fcn.77d1169e
add esp, 0x18
push 0x77d1a5a0
push ebx
push 0xc0000bbb
mov dword [ebp - 0x50c], esi
call fcn.77ccbc5e
test eax, eax
je 0x77c862b2
mov eax, dword [ebp - 0x4dc]
push ebx
mov dword [ebp - 0x520], eax
lea eax, [ebp - 0x524]
push eax
push ebx
push 2
push ebx
push 0xc0000bbb
push ebx
push esi
push dword [0x77d1e664]
mov dword [ebp - 0x524], 0x77cdef94
call sym.ADVAPI32.dll_ReportEventW
jmp 0x77c862b2
cmp word [edi], bx
je 0x77c99ca4
mov eax, dword [0x77d1f248]
and al, 0xf
cmp al, 1
jb 0x77cdec63
push ebx
push ebx
push ebx
push 0x12
push 0x2cc
push 0x77ce207c
call fcn.77d1169e
add esp, 0x18
push 0x77d1a5a0
push ebx
mov esi, 0xc0000bba
push esi
call fcn.77ccbc5e
test eax, eax
je 0x77c99ca4
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
push 1
push dword [0x77d1e664]
call sym.ADVAPI32.dll_ReportEventW
jmp 0x77c99ca4
cmp dword [ebp - 0x4cc], esi
jne 0x77c99cfd
cmp dword [ebp - 0x554], 1
jne 0x77c99cfd
mov dword [ebp - 0x4f4], esi
jmp 0x77c99cfd
cmp dword [ebp - 0x4cc], 3
je 0x77c862c3
jmp 0x77c99d70
push ebx
push esi
lea ecx, [ebp - 0x4c8]
push ecx
push esi
lea ecx, [ebp - 0x4cc]
push ecx
push eax
push ebx
push 0x12
push 0x325
push 0x77ce207c
call fcn.77d1169e
add esp, 0x28
jmp 0x77c99d82
cmp dword [ebp - 0x4cc], 3
je 0x77c862d4
jmp 0x77c99dda
push ebx
push esi
lea eax, [ebp - 0x4c8]
push eax
push esi
lea eax, [ebp - 0x4cc]
push eax
push ecx
push ebx
push 0x12
push 0x340
push 0x77ce207c
call fcn.77d1169e
add esp, 0x28
jmp 0x77c99df4
cmp dword [ebp - 0x4cc], 7
jne 0x77c99c9a
mov dword [ebp - 0x4e0], ebx
jmp 0x77cded81
cmp dword [ebp - 0x4e0], 0x40
jae 0x77c99c9c
push 0xa
push ebx
push edi
call sub.ntdll.dll_wcstoul
mov ecx, dword [ebp - 0x4e0]
add esp, 0xc
inc dword [ebp - 0x4e0]
push edi
mov dword [ebp + ecx*4 - 0x668], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
cmp word [edi], bx
je 0x77c99c9c
jmp 0x77cded4a
mov eax, dword [ebp - 0x4dc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x77cded95
sub eax, edx
push ebx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x4dc]
push esi
push 1
push 0x12
push 0x30a
push 0x77ce207c
call fcn.77d1169e
add esp, 0x20
jmp 0x77c9b1e1
push ebx
push esi
push ebx
push 0x12
push 0x499
push 0x77ce207c
call fcn.77d1169e
add esp, 0x18
jmp 0x77c9b1f7
push 1
push dword [ebp - 0x4dc]
push dword [ebp - 0x4d8]
call fcn.77ccb68d
jmp 0x77c9b203
push dword [ebp - 0x4e8]
push 0x49e
push 0x77c9a6a8
call fcn.77c9e3db
mov dword [ebp - 0x4e8], ebx
jmp 0x77c9a228
push ebx
push esi
push ebx
push 0x12
push 0x30e
push 0x77ce207c
call fcn.77d1169e
add esp, 0x18
jmp 0x77c9b1e1
push dword [ebp - 0x4ec]
push 0x37c
push 0x77c9a6a8
call fcn.77c9e3db
mov dword [ebp - 0x4d4], ebx
mov dword [ebp - 0x4ec], ebx
xor esi, esi
jmp 0x77c99052
mov eax, dword [0x77d1f248]
and al, 0xf
cmp al, 1
push 0xe
mov dword [ebp - 0x4d4], ebx
pop esi
jb 0x77c99052
push ebx
push 4
lea eax, [ebp - 0x4c8]
push eax
push esi
push ebx
push 0x12
push 0x38e
push 0x77ce207c
call fcn.77d1169e
add esp, 0x20
jmp 0x77c99052
mov eax, dword [ebp - 0x54c]
cmp eax, ebx
je 0x77cdeeb0
mov ecx, dword [esi]
mov dword [eax], ecx
jmp 0x77cdeeb7
mov eax, dword [esi]
mov dword [0x77d1e66c], eax
push 1
push esi
call fcn.77ccb741
push dword [esi + 0x38]
call dword [sym.imp.ntdll.dll_NtClose]
dec dword [0x77d1e674]
push esi
push 0x3b3
push 0x77c9a6a8
call fcn.77c9e3db
xor esi, esi
jmp 0x77c8637d
or dword [ebp - 0x4f4], 1
jmp 0x77c9a03d
mov word [ebp - 0x44], bx
jmp 0x77c9a15e
mov dword [ebp - 0x540], 0x5c
mov dword [ebp - 0x53c], 0x77d281e8
jmp 0x77c9a1ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x77c9a1da
mov eax, dword [0x77d1f248]
and al, 0xf
cmp al, 1
push 0xe
pop esi
jb 0x77c9b1e1
push ebx
push dword [ebp - 0x4d0]
push ebx
push 0x12
push 0x478
push 0x77ce207c
call fcn.77d1169e
add esp, 0x18
jmp 0x77c9a213
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
jae 0x77cdef7f
inc ecx
mov dword [eax], ecx
shl ecx, 7
add eax, ecx
mov ecx, dword [ebp - 0x4e8]
push dword [ecx + 0x150]
mov dword [ecx + 0x178], eax
push 0x20
push eax
call fcn.77c9e187
jmp 0x77c9a228
inc dword [eax + 8]
mov eax, dword [ebp - 0x4e8]
mov dword [eax + 0x178], ebx
jmp 0x77c9a228