Function at 0x46dda0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4db4
mov eax, dword fs:[0]
push eax
sub esp, 0xa28
mov eax, dword [0x4fe37c]
xor eax, ebp
mov dword [ebp - 0x98], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x9e8], ecx
mov ecx, dword [ebp - 0x9e8]
call fcn.0046dd80
call fcn.004010b0
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x74]
call fcn.0046b250
mov dword [ebp - 4], 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x74]
call fcn.004695f0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x74]
call fcn.0043fa10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x46de3f
mov byte [ebp - 0x9a1], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.0043f9e0
mov al, byte [ebp - 0x9a1]
jmp 0x46e5f4
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x20]
mov eax, dword [edx + 0x14]
call eax
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
call fcn.0043f9c0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x46e0c8
push str.version
mov ecx, dword [ebp - 0x18]
call fcn.0043f950
push eax
call fcn.00445f30
add esp, 8
test eax, eax
jne 0x46e0c8
mov ecx, dword [ebp - 0x18]
call fcn.0043f970
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x8c]
call fcn.00401a10
lea ecx, [ebp - 0xc4]
call fcn.00401a10
mov ecx, dword [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x8c]
call fcn.0040b070
call fcn.004010b0
mov dword [ebp - 0x94], eax
push 0x4cf827
lea ecx, [ebp - 0xb4]
call fcn.00406c80
mov byte [ebp - 4], 1
lea edx, [ebp - 0x9c0]
push edx
call fcn.0043fbd0
add esp, 4
mov dword [ebp - 0x9ec], eax
mov eax, dword [ebp - 0x9ec]
mov dword [ebp - 0x9f0], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x9f0]
call fcn.00407070
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
jne 0x46df1c
mov dword [ebp - 0x9f4], 0
jmp 0x46df80
mov ecx, dword [ebp - 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0x3fffffff
jle 0x46df41
mov dword [ebp - 0x9f8], 0
jmp 0x46df74
mov eax, dword [ebp - 0x78]
shl eax, 1
call fcn.00453ce0
mov dword [ebp - 0x9fc], esp
mov edx, dword [ebp - 0x94]
push edx
mov eax, dword [ebp - 0x78]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x9fc]
push edx
call fcn.00401110
mov dword [ebp - 0x9f8], eax
mov eax, dword [ebp - 0x9f8]
mov dword [ebp - 0x9f4], eax
mov ecx, dword [ebp - 0x9f4]
push ecx
lea ecx, [ebp - 0xb4]
call fcn.00406d20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x9c0]
call fcn.00406fd0
lea ecx, [ebp - 0xb4]
call fcn.00406eb0
push eax
lea ecx, [ebp - 0xc4]
call fcn.0040b070
lea edx, [ebp - 0xc4]
push edx
lea ecx, [ebp - 0x8c]
call fcn.0040a1c0
movzx eax, al
test eax, eax
je 0x46e00e
mov ecx, dword [ebp - 0x9e8]
mov dword [ecx + 0x18], 0
mov byte [ebp - 0x9c1], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb4]
call fcn.00406d00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.0043f9e0
mov al, byte [ebp - 0x9c1]
jmp 0x46e5f4
mov edx, dword [ebp - 0x9e8]
mov dword [edx + 0x18], 1
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
jne 0x46e03c
mov dword [ebp - 0xa00], 0
jmp 0x46e0a4
mov ecx, dword [ebp - 0xc8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0x3fffffff
jle 0x46e064
mov dword [ebp - 0xa04], 0
jmp 0x46e098
mov eax, dword [ebp - 0x78]
shl eax, 1
call fcn.00453ce0
mov dword [ebp - 0xa08], esp
mov edx, dword [ebp - 0x94]
push edx
mov eax, dword [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0xc8]
push ecx
mov edx, dword [ebp - 0xa08]
push edx
call fcn.004010c0
mov dword [ebp - 0xa04], eax
mov eax, dword [ebp - 0xa04]
mov dword [ebp - 0xa00], eax
mov ecx, dword [ebp - 0xa00]
push ecx
mov ecx, dword [ebp - 0x9e8]
add ecx, 0x40
call fcn.00407010
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb4]
call fcn.00406d00
mov ecx, dword [ebp - 0x20]
call fcn.0043f930
mov dword [ebp - 0x20], eax
jmp 0x46e0e0
mov ecx, dword [ebp - 0x20]
call fcn.0043f910
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x46e5d8
cmp dword [ebp - 0x20], 0
jne 0x46e111
mov byte [ebp - 0x9c2], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.0043f9e0
mov al, byte [ebp - 0x9c2]
jmp 0x46e5f4
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x20]
mov edx, dword [eax + 0x14]
call edx
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
je 0x46e5d3
mov ecx, dword [ebp - 0xcc]
call fcn.0043f8d0
push eax
lea ecx, [ebp - 0xe8]
call fcn.00406c80
mov byte [ebp - 4], 3
push str.plugin
lea eax, [ebp - 0xe8]
push eax
call fcn.0042ed40
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x46e5c4
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xf4], edx
lea ecx, [ebp - 0x16c]
call fcn.0043fe70
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xf4]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xf4]
mov eax, dword [edx + 0x14]
call eax
mov dword [ebp - 0xec], eax
mov ecx, dword [ebp - 0xec]
call fcn.0043f9c0
mov dword [ebp - 0xf0], eax
cmp dword [ebp - 0xf0], 0
je 0x46e31e
push str.name
mov ecx, dword [ebp - 0xf0]
call fcn.0043f950
push eax
call fcn.00445f30
add esp, 8
test eax, eax
jne 0x46e31e
mov ecx, dword [ebp - 0xf0]
call fcn.0043f970
mov dword [ebp - 0x170], eax
cmp dword [ebp - 0x170], 0
je 0x46e31e
mov ecx, dword [ebp - 0x170]
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 0
jne 0x46e214
mov dword [ebp - 0xa0c], 0
jmp 0x46e273
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x3fffffff
jle 0x46e239
mov dword [ebp - 0xa10], 0
jmp 0x46e267
mov eax, dword [ebp - 0x14]
shl eax, 1
call fcn.00453ce0
mov dword [ebp - 0xa14], esp
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0xa14]
push eax
call fcn.004010c0
mov dword [ebp - 0xa10], eax
mov ecx, dword [ebp - 0xa10]
mov dword [ebp - 0xa0c], ecx
mov edx, dword [ebp - 0xa0c]
push edx
lea ecx, [ebp - 0x118]
call fcn.00407010
xor eax, eax
mov word [ebp - 0x974], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x972]
push ecx
call fcn.00445020
add esp, 0xc
lea edx, [ebp - 0x974]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x46e31e
lea eax, [ebp - 0x974]
push eax
lea ecx, [ebp - 0x134]
call fcn.00407010
push 0x4d2750
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x9e0]
push edx
call fcn.00409480
add esp, 0xc
mov dword [ebp - 0xa18], eax
mov eax, dword [ebp - 0xa18]
mov dword [ebp - 0xa1c], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xa1c]
push ecx
lea ecx, [ebp - 0x134]
call fcn.00407030
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x9e0]
call fcn.00406fd0
push 0x4d275c
lea ecx, [ebp - 0x150]
call fcn.00407010
mov ecx, dword [ebp - 0xf4]
call fcn.0043f930
mov dword [ebp - 0xf4], eax
jmp 0x46e352
mov ecx, dword [ebp - 0xf4]
call fcn.0043f910
mov dword [ebp - 0xf4], eax
cmp dword [ebp - 0xf4], 0
je 0x46e5a3
mov edx, dword [ebp - 0xf4]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xf4]
mov edx, dword [eax + 0x14]
call edx
mov dword [ebp - 0x994], eax
mov ecx, dword [ebp - 0x994]
call fcn.0043f8d0
push eax
lea ecx, [ebp - 0x990]
call fcn.00406c80
mov byte [ebp - 4], 6
push str.downloadurl
lea eax, [ebp - 0x990]
push eax
call fcn.0042ed40
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x46e461
mov ecx, dword [ebp - 0x994]
call fcn.0046abc0
mov dword [ebp - 0x998], eax
cmp dword [ebp - 0x998], 0
je 0x46e45c
mov edx, dword [ebp - 0x998]
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0
jne 0x46e3eb
mov dword [ebp - 0xa20], 0
jmp 0x46e44a
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x3fffffff
jle 0x46e410
mov dword [ebp - 0xa24], 0
jmp 0x46e43e
mov eax, dword [ebp - 0x14]
shl eax, 1
call fcn.00453ce0
mov dword [ebp - 0xa28], esp
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0xa28]
push ecx
call fcn.004010c0
mov dword [ebp - 0xa24], eax
mov edx, dword [ebp - 0xa24]
mov dword [ebp - 0xa20], edx
mov eax, dword [ebp - 0xa20]
push eax
lea ecx, [ebp - 0x16c]
call fcn.00407010
jmp 0x46e58f
push 0x4d276c
lea ecx, [ebp - 0x990]
push ecx
call fcn.0042ed40
add esp, 8
movzx edx, al
test edx, edx
je 0x46e52c
mov ecx, dword [ebp - 0x994]
call fcn.0046abc0
mov dword [ebp - 0x99c], eax
cmp dword [ebp - 0x99c], 0
je 0x46e52a
mov eax, dword [ebp - 0x99c]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x46e4b9
mov dword [ebp - 0xa2c], 0
jmp 0x46e518
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x3fffffff
jle 0x46e4de
mov dword [ebp - 0xa30], 0
jmp 0x46e50c
mov eax, dword [ebp - 0x14]
shl eax, 1
call fcn.00453ce0
mov dword [ebp - 0xa34], esp
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0xa34]
push edx
call fcn.004010c0
mov dword [ebp - 0xa30], eax
mov eax, dword [ebp - 0xa30]
mov dword [ebp - 0xa2c], eax
mov ecx, dword [ebp - 0xa2c]
push ecx
lea ecx, [ebp - 0x150]
call fcn.00407010
jmp 0x46e58f
push str.forcebind
lea edx, [ebp - 0x990]
push edx
call fcn.0042ed40
add esp, 8
movzx eax, al
test eax, eax
je 0x46e58f
mov ecx, dword [ebp - 0x994]
call fcn.0046abc0
mov dword [ebp - 0x9a0], eax
cmp dword [ebp - 0x9a0], 0
je 0x46e585
push 0x4d277c
mov ecx, dword [ebp - 0x9a0]
push ecx
call fcn.00445f30
add esp, 8
test eax, eax
jne 0x46e585
mov dword [ebp - 0xfc], 1
jmp 0x46e58f
mov dword [ebp - 0xfc], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x990]
call fcn.00406d00
jmp 0x46e341
lea edx, [ebp - 0x16c]
push edx
mov ecx, dword [ebp - 0x9e8]
call fcn.0043ff00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x16c]
call fcn.0042ff20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe8]
call fcn.00406d00
jmp 0x46e0d5
mov byte [ebp - 0x9e1], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.0043f9e0
mov al, byte [ebp - 0x9e1]
lea esp, [ebp - 0xa38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x98]
xor ecx, ebp
call fcn.004443e3
mov esp, ebp
pop ebp
ret 4