Function at 0x47ecc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d222f
mov eax, dword fs:[0]
push eax
sub esp, 0x34c
mov eax, dword [0x6385e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x229], 0
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx ecx, word [ebp - 0x21c]
push ecx
call fcn.0047e5f0
add esp, 4
push eax
lea ecx, [ebp - 0x228]
call fcn.0047f880
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.004b9730
test eax, eax
jne 0x47ed3b
jmp 0x47f320
lea ecx, [ebp - 0x228]
call fcn.004b9730
mov dword [ebp - 0x338], eax
mov edx, dword [ebp - 0x338]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x338]
mov edx, dword [eax + 0x38]
call edx
movzx eax, al
test eax, eax
jne 0x47ed6b
jmp 0x47f320
lea ecx, [ebp - 0x228]
call fcn.004b9730
mov dword [ebp - 0x33c], eax
mov ecx, dword [ebp - 0x33c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x33c]
mov eax, dword [edx + 0x40]
call eax
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jg 0x47eda3
jmp 0x47f320
lea ecx, [ebp - 0x24c]
call fcn.00407bf0
mov byte [ebp - 4], 1
push 0x6009a8
lea ecx, [ebp - 0x2c0]
call fcn.004b3550
mov byte [ebp - 4], 2
push str.CONFIG
lea ecx, [ebp - 0x2cc]
call fcn.004b3550
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x2d8]
call fcn.004b3550
mov byte [ebp - 4], 4
lea edx, [ebp - 0x2cc]
push edx
lea eax, [ebp - 0x2d8]
push eax
lea ecx, [ebp - 0x2e4]
push ecx
call fcn.00412f50
add esp, 0xc
mov dword [ebp - 0x340], eax
mov edx, dword [ebp - 0x340]
mov dword [ebp - 0x344], edx
mov byte [ebp - 4], 5
lea eax, [ebp - 0x2c0]
push eax
mov ecx, dword [ebp - 0x344]
push ecx
lea edx, [ebp - 0x260]
push edx
call fcn.00412f50
add esp, 0xc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2e4]
call fcn.004b3860
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2d8]
call fcn.004b3860
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2cc]
call fcn.004b3860
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2c0]
call fcn.004b3860
lea ecx, [ebp - 0x228]
call fcn.004b9730
mov dword [ebp - 0x348], eax
lea eax, [ebp - 0x231]
push eax
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x254]
push edx
lea eax, [ebp - 0x260]
push eax
mov ecx, dword [ebp - 0x348]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x348]
mov eax, dword [edx + 0x10]
call eax
movzx ecx, al
test ecx, ecx
jne 0x47eec8
jmp 0x47f302
mov edx, dword [ebp - 0x254]
push edx
call fcn.0054ea24
add esp, 4
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 0
jne 0x47eeeb
jmp 0x47f302
lea ecx, [ebp - 0x228]
call fcn.004b9730
mov dword [ebp - 0x34c], eax
push 0
lea eax, [ebp - 0x260]
push eax
mov ecx, dword [ebp - 0x34c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x34c]
mov eax, dword [edx + 0x14]
call eax
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0
jne 0x47ef2c
jmp 0x47f2f3
lea ecx, [ebp - 0x264]
push ecx
mov edx, dword [ebp - 0x254]
push edx
mov eax, dword [ebp - 0x268]
push eax
mov ecx, dword [ebp - 0x26c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x26c]
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 0x26d], al
mov ecx, dword [ebp - 0x26c]
mov dword [ebp - 0x2ec], ecx
mov edx, dword [ebp - 0x2ec]
mov dword [ebp - 0x2e8], edx
cmp dword [ebp - 0x2e8], 0
je 0x47ef97
push 1
mov eax, dword [ebp - 0x2e8]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2e8]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x350], eax
jmp 0x47efa1
mov dword [ebp - 0x350], 0
movzx ecx, byte [ebp - 0x26d]
test ecx, ecx
je 0x47f2f3
push 8
call fcn.0054d57b
add esp, 4
mov dword [ebp - 0x2f4], eax
cmp dword [ebp - 0x2f4], 0
je 0x47efea
mov edx, dword [ebp - 0x264]
push edx
mov eax, dword [ebp - 0x268]
push eax
mov ecx, dword [ebp - 0x2f4]
call fcn.00484090
mov dword [ebp - 0x354], eax
jmp 0x47eff4
mov dword [ebp - 0x354], 0
mov ecx, dword [ebp - 0x354]
mov dword [ebp - 0x2f0], ecx
mov edx, dword [ebp - 0x2f0]
push edx
lea ecx, [ebp - 0x280]
call fcn.0047f8e0
mov byte [ebp - 4], 0xb
push str.Current
lea ecx, [ebp - 0x304]
call fcn.004b3550
mov byte [ebp - 4], 0xc
push str.Select
lea ecx, [ebp - 0x310]
call fcn.004b3550
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x304]
push ecx
lea edx, [ebp - 0x310]
push edx
lea ecx, [ebp - 0x280]
call fcn.004b9730
mov ecx, eax
call fcn.004843e0
movzx eax, al
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x2f5], al
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x310]
call fcn.004b3860
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x304]
call fcn.004b3860
movzx ecx, byte [ebp - 0x2f5]
test ecx, ecx
je 0x47f0a3
jmp 0x47f2e4
mov ecx, dword [ebp + 8]
call fcn.004553f0
push eax
mov edx, dword [ebp - 0x274]
push edx
push str.ControlSet_03dServices_s
lea eax, [ebp - 0x290]
push eax
call fcn.004b4d50
add esp, 0x10
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x290]
call fcn.004553f0
push eax
push 0x605e90
call fcn.0054eca8
add esp, 8
push str.Start
lea ecx, [ebp - 0x320]
call fcn.004b3550
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x284]
push ecx
lea edx, [ebp - 0x320]
push edx
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x280]
call fcn.004b9730
mov ecx, eax
call fcn.004843e0
movzx ecx, al
neg ecx
sbb ecx, ecx
add ecx, 1
mov byte [ebp - 0x311], cl
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x320]
call fcn.004b3860
movzx edx, byte [ebp - 0x311]
test edx, edx
je 0x47f14e
jmp 0x47f2d5
mov eax, dword [ebp - 0x284]
push eax
push str.__d_n
call fcn.0054eca8
add esp, 8
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x298], 0
push str.Start
lea ecx, [ebp - 0x330]
call fcn.004b3550
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x298]
push ecx
lea edx, [ebp - 0x294]
push edx
push 4
lea eax, [ebp - 0x330]
push eax
lea ecx, [ebp - 0x290]
push ecx
lea ecx, [ebp - 0x280]
call fcn.004b9730
mov ecx, eax
call fcn.004849c0
movzx edx, al
neg edx
sbb edx, edx
add edx, 1
mov byte [ebp - 0x321], dl
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x330]
call fcn.004b3860
movzx eax, byte [ebp - 0x321]
test eax, eax
je 0x47f1e9
jmp 0x47f2d5
mov ecx, dword [ebp - 0x294]
sub ecx, dword [ebp - 0x268]
mov dword [ebp - 0x2a0], ecx
mov edx, dword [ebp - 0x2a0]
add edx, dword [ebp - 0x298]
mov dword [ebp - 0x2b0], edx
mov eax, dword [ebp - 0x2a0]
xor edx, edx
div dword [ebp - 0x230]
mov dword [ebp - 0x2a4], eax
mov eax, dword [ebp - 0x2a4]
imul eax, dword [ebp - 0x230]
mov dword [ebp - 0x2ac], eax
mov dword [ebp - 0x2b4], 1
mov ecx, dword [ebp - 0x2b4]
imul ecx, dword [ebp - 0x230]
add ecx, dword [ebp - 0x2ac]
cmp ecx, dword [ebp - 0x2b0]
jae 0x47f26a
mov edx, dword [ebp - 0x2b4]
add edx, 1
mov dword [ebp - 0x2b4], edx
jmp 0x47f23e
mov eax, dword [ebp - 0x268]
add eax, dword [ebp - 0x2ac]
mov dword [ebp - 0x2a8], eax
mov ecx, dword [ebp - 0x2b4]
imul ecx, dword [ebp - 0x230]
mov dword [ebp - 0x29c], ecx
lea ecx, [ebp - 0x228]
call fcn.004b9730
mov dword [ebp - 0x358], eax
mov edx, dword [ebp - 0x29c]
push edx
mov eax, dword [ebp - 0x2a8]
push eax
mov ecx, dword [ebp - 0x2a4]
push ecx
lea edx, [ebp - 0x260]
push edx
mov eax, dword [ebp - 0x358]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x358]
mov eax, dword [edx + 0x3c]
call eax
mov byte [ebp - 0x229], al
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x290]
call fcn.004b3860
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x280]
call fcn.0047f920
mov ecx, dword [ebp - 0x268]
push ecx
call fcn.0054eaee
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x260]
call fcn.004b3860
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.00407c30
mov dl, byte [ebp - 0x229]
mov byte [ebp - 0x331], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.0047f8c0
mov al, byte [ebp - 0x331]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054d4f5
mov esp, ebp
pop ebp
ret