Function at 0x477680
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x604f42
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x69def4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x268], ebx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005d4b40
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4776f0
mov eax, dword [0x609b38]
mov dword [edi], eax
cmp word [ebp - 0x218], 0
jne 0x477711
xor ecx, ecx
jmp 0x47772f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x477720
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.004072f0
mov eax, dword [0x6a0bcc]
test eax, eax
jne 0x47777c
push 0x15c
call fcn.005cab84
add esp, 4
mov dword [ebp - 0x264], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x47776e
mov ecx, eax
call fcn.00487620
jmp 0x477770
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x6a0bcc], eax
mov ecx, eax
call fcn.0040c4f0
mov edx, eax
mov dword [ebp - 0x24c], 7
xor eax, eax
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
cmp word [edx], ax
jne 0x4777ab
xor ecx, ecx
jmp 0x4777bf
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4777b0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x260]
call fcn.004072f0
mov dword [ebp - 4], 1
call fcn.0048bac0
test al, al
je 0x4777f4
push esi
push eax
push edi
push eax
push ebp
push esp
pop esi
pop esp
pop ebx
pop esp
pop ecx
push ebx
pop edx
pop ebp
push esp
push edx
push ecx
push edi
push eax
push edx
push eax
push eax
pop esp
push ecx
call fcn.0048bcf0
test al, al
je 0x477811
pop edx
pop esp
pop esp
push eax
pop esi
pop ecx
push ebx
pop esp
push esp
push esp
pop ebx
push esp
push edi
push esp
pop edi
push edx
push edx
pop ecx
push esp
pop ebp
call fcn.0048bf20
test al, al
je 0x477835
pop esp
push eax
push esp
pop ecx
push esi
pop eax
pop eax
push ecx
pop ebx
pop edx
pop esp
pop ebp
push ecx
push esp
push ebx
push ecx
push eax
pop ebp
push edx
pop esi
pop edi
push edi
push ecx
pop edx
push ecx
pop eax
pop eax
lea ecx, [ebp - 0x298]
call fcn.00407a20
lea ecx, [ebp - 0x298]
mov byte [ebp - 4], 2
call fcn.00407a90
test eax, eax
je 0x4779f8
lea eax, [ebp - 0x264]
mov dword [ebp - 0x264], 0
push eax
lea ecx, [ebp - 0x298]
call fcn.00407cc0
call fcn.0048be40
test al, al
je 0x477891
push ebp
pop esi
pop edi
pop eax
push esp
pop edx
push ecx
pop ecx
pop ebx
push ecx
push eax
push esi
push esp
push ebp
push ebp
push edx
push edi
push edi
pop ecx
push esi
push esi
call fcn.0048bf90
test al, al
je 0x4778aa
pop eax
pop edi
pop ecx
push esp
push esp
push edi
push edi
pop esp
pop eax
pop esi
pop esi
pop ebp
pop esi
pop edi
push edi
pop esi
push 0xd
xor eax, eax
mov dword [ebp - 0x21c], 7
push str.OvlicGDon.dll
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.004072f0
mov ebx, dword [ebp - 0x268]
lea eax, [ebp - 0x230]
push eax
push ebx
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.00473a40
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x47791b
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.004073f0
push 0xf
xor eax, eax
mov dword [ebp - 0x21c], 7
push str.OvlicGDon64.dll
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.004072f0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 4
push eax
push ebx
lea eax, [ebp - 0x260]
mov ecx, ebx
push eax
call fcn.00473a40
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x477986
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.004073f0
call fcn.0048bc80
test al, al
je 0x4779a6
push esi
push edx
push edx
push ecx
pop eax
push ebp
push esp
pop edx
pop edi
push eax
push edx
pop ecx
pop ecx
push edi
push ebx
pop edx
pop esi
push esi
push edi
pop edx
pop eax
push eax
push eax
call fcn.0048bcf0
test al, al
je 0x4779c6
pop esi
push ebp
pop ebx
push ecx
pop esp
pop ebx
push esi
push ecx
pop ebp
pop esi
pop edi
pop ebp
push esp
pop esi
pop edx
push ebp
push esp
push ecx
pop edx
pop esi
pop esp
pop eax
pop ebx
call fcn.0048c310
test al, al
je 0x4779e2
pop esi
push eax
pop edx
pop esp
push edi
push ebp
push eax
push esp
pop edx
push esp
pop esi
pop esi
pop ebp
pop ebx
pop eax
pop eax
pop edi
pop ebx
push esi
push dword [ebp - 0x264]
lea ecx, [ebp - 0x298]
call fcn.00407cf0
jmp 0x477ad4
push 0xd
xor eax, eax
mov dword [ebp - 0x21c], 7
push str.OvlicGDon.dll
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.004072f0
mov ebx, dword [ebp - 0x268]
lea eax, [ebp - 0x230]
push eax
push ebx
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 5
push eax
mov ecx, ebx
call fcn.00473a40
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x477a69
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.004073f0
push 0xf
xor eax, eax
mov dword [ebp - 0x21c], 7
push str.OvlicGDon64.dll
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.004072f0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 6
push eax
push ebx
lea eax, [ebp - 0x260]
mov ecx, ebx
push eax
call fcn.00473a40
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x477ad4
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.004073f0
call fcn.0048beb0
test al, al
je 0x477af2
pop esi
pop ecx
pop edi
push ebx
pop ecx
push edi
push eax
pop edi
push ebp
push edi
push eax
pop eax
push esp
push edx
push ebx
pop eax
pop edi
push ebp
pop ebp
push ecx
pop edx
call fcn.0048c5b0
test al, al
je 0x477b0e
push esp
pop esp
push edi
pop ecx
pop ebp
push esp
push esp
pop eax
push esi
push esi
push ebp
pop esp
pop ebx
pop ebx
push edi
pop esp
push esp
pop edi
push edx
call fcn.0048c0e0
test al, al
je 0x477b35
push edx
push edi
pop eax
pop esp
push edi
pop ebx
pop esi
pop ebp
push esi
pop edi
push esp
push ecx
pop eax
push eax
push ecx
push ebp
push ecx
push ebp
pop esp
push esp
pop edx
pop esp
pop ebp
pop eax
pop esp
pop ebx
pop esi
push edi
push edi
pop ebp
xor eax, eax
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
mov byte [ebp - 4], 7
call fcn.0048bcf0
test al, al
je 0x477b8f
pop eax
push edx
push edi
pop esi
push edx
push esi
push edi
push esi
push eax
push eax
pop esp
pop ebp
push edi
pop ecx
push esp
pop esp
pop esi
push ebx
call fcn.0048c460
test al, al
je 0x477ba8
push ebx
pop esi
pop esi
push ebp
pop edx
push ecx
pop ebx
pop eax
pop ecx
pop esp
pop esi
pop ecx
pop edx
push ebp
pop edx
push edi
push 6
push str.CLSID_
lea ecx, [ebp - 0x248]
call fcn.004072f0
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x26c]
push ecx
push 0xf013f
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push 0
push eax
push accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x264], eax
call fcn.0048c070
test al, al
je 0x477c0e
pop edx
pop ebx
pop esi
push edi
pop edi
push ecx
pop edx
push ebp
pop eax
pop ebp
push edx
push eax
push eax
pop edx
push edi
pop esp
pop eax
push ebx
pop edi
pop edx
push edx
pop eax
push esi
call fcn.0048bac0
test al, al
je 0x477c31
pop esp
push ebx
push eax
pop edi
pop ecx
pop edx
push ebp
push eax
pop ecx
push edi
pop eax
pop ebx
push edi
pop ecx
push ebx
pop edi
push eax
pop ecx
push edi
pop esp
push ebx
pop edi
push edx
pop edi
push edx
pop esi
cmp dword [ebp - 0x264], 0
jne 0x477c5c
push dword [ebp - 0x26c]
mov ecx, dword [ebp - 0x268]
call fcn.00474190
mov eax, dword [ebp - 0x26c]
test eax, eax
je 0x477c5c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x17
push str.SOFTWAREClassesCLSID_
lea ecx, [ebp - 0x248]
call fcn.004072f0
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x270]
push ecx
push 0xf013f
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x264], eax
call fcn.0048c230
test al, al
je 0x477cc6
push ecx
pop esp
push eax
pop ebp
push esi
pop eax
pop esp
push eax
push esi
pop ecx
pop eax
push ebp
pop eax
pop esi
push edx
pop edi
pop ebp
push edx
push eax
pop ebx
pop edx
pop edx
push esi
push esi
pop edx
pop ebp
pop ebx
call fcn.0048c2a0
test al, al
je 0x477ce6
pop esp
push eax
push esi
push esi
push ebp
push esi
pop eax
pop ecx
pop eax
push edi
push edi
pop ebx
push esp
pop esp
push esi
pop ecx
push esi
push esi
push ebx
pop esi
push edx
pop esp
pop eax
call fcn.0048bdd0
test al, al
je 0x477d04
push ebp
push ecx
pop esp
push ecx
pop ebp
push ecx
push esp
push ecx
pop esp
pop edi
push edi
pop ebp
push edi
push esp
pop ebx
push ecx
push edi
pop ebx
pop eax
pop ebx
push ebp
cmp dword [ebp - 0x264], 0
jne 0x477d2f
push dword [ebp - 0x270]
mov ecx, dword [ebp - 0x268]
call fcn.00474190
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x477d2f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 8
push str.TypeLib_
lea ecx, [ebp - 0x248]
call fcn.004072f0
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x274]
push ecx
push 0xf013f
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push 0
push eax
push accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x264], eax
call fcn.0048beb0
test al, al
je 0x477d94
push eax
pop edx
pop edi
pop edi
push ebp
pop ecx
push ecx
push edi
push esp
push edi
push esi
push ebp
pop esi
pop ecx
pop esp
push esi
pop esp
push ecx
push esp
push eax
pop ecx
pop ecx
call fcn.0048c000
test al, al
je 0x477db9
pop ebx
push ecx
pop edx
push ebp
push edx
pop edi
pop edi
pop esp
push ebp
pop esi
pop edx
pop ebp
pop esi
pop edx
push edi
pop ebp
push ebp
push edi
push ebp
pop edx
push ebp
push esi
pop esi
pop esi
pop ebp
push edx
push ebp
pop esp
call fcn.0048beb0
test al, al
je 0x477dd9
pop esi
push ebp
pop edx
pop edx
push ebp
push edi
pop eax
push ebp
pop edx
pop ecx
pop esp
push esp
pop edi
push esp
pop edx
push ebp
push esi
push edi
push edi
pop ebx
pop ebp
pop ebx
push esp
cmp dword [ebp - 0x264], 0
jne 0x477e04
push dword [ebp - 0x274]
mov ecx, dword [ebp - 0x268]
call fcn.00474b70
mov eax, dword [ebp - 0x274]
test eax, eax
je 0x477e04
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0048c230
test al, al
je 0x477e2c
push edi
push eax
push esp
pop edx
pop edx
pop edx
pop ebp
push ebp
pop ebp
push edx
pop ecx
push esp
push ebp
push ebp
push esi
pop esi
push ebx
push eax
pop ecx
pop esi
pop edx
push ebx
pop esp
pop esi
pop ebp
push ebp
pop esp
push ecx
pop edx
pop ebp
pop edi
call fcn.0048c1c0
test al, al
je 0x477e50
push ebx
pop ecx
push edi
pop ebx
push esi
pop ebx
pop ecx
push ecx
pop esi
pop edi
pop ecx
pop edx
push ebx
push esp
pop esi
pop esp
pop edx
push esp
pop ecx
pop edx
push ecx
push edi
push ecx
pop edx
push esi
pop esi
pop ebp
mov ecx, dword [ebp - 0x268]
call fcn.004754c0
call fcn.0048bc80
test al, al
je 0x477e75
push ebx
push edx
pop edi
pop esp
push esp
pop eax
push edx
pop edi
pop ebp
push esi
push edi
push edi
push edi
push ebp
pop esi
pop ebp
pop esi
call fcn.0048c460
test al, al
je 0x477e9b
push edx
pop esi
push esp
pop ebx
pop eax
push edi
push ebp
push eax
pop ebx
pop esp
push edi
push esp
pop edx
pop edx
push edi
push edx
push esi
pop ecx
pop eax
pop ebx
pop eax
push esp
pop edi
push ecx
pop esp
pop ebp
pop esp
pop ebp
push esi
call fcn.0048c540
test al, al
je 0x477eb5
pop edi
pop esi
push edx
push esp
pop eax
push esp
pop edx
push ebp
push edx
push edx
push edx
push edi
pop ebp
push esp
pop eax
pop esi
pop esp
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x477ed3
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.004073f0
xor eax, eax
mov dword [ebp - 0x234], 7
lea ecx, [ebp - 0x298]
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
call fcn.00407a70
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x477f19
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.004073f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005cabbc
mov esp, ebp
pop ebp
ret