Function at 0x43d290
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5619a9
mov eax, dword fs:[0]
push eax
sub esp, 0x3d8
mov eax, dword [0x5cc5b0]
xor eax, esp
mov dword [esp + 0x3d0], eax
push esi
mov eax, dword [0x5cc5b0]
xor eax, esp
push eax
lea eax, [esp + 0x3e0]
mov dword fs:[0], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x5d7578], eax
mov dword [0x5d7560], 0
mov dword [0x5d756c], 0
mov dword [0x5d755c], 1
mov dword [0x5d7568], 0
push 0x5d7554
push dword [0x5d7588]
test eax, eax
je 0x43db48
mov dword [0x5d7558], 4
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push str.legendasdrv
call fcn.0044bfc0
sub esp, 0x14
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x5d1624
mov byte [ecx], 0
call fcn.00440320
call fcn.0043a520
mov ecx, esp
push 0xffffffffffffffff
push 0
push 0x5d169c
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00440320
call fcn.0043a870
mov ecx, esp
push 0xffffffffffffffff
push 0
push 0x5d166c
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00440320
call fcn.00439ab0
mov ecx, esp
push 0xffffffffffffffff
push 0
push 0x5d160c
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00440320
call fcn.00439f50
call fcn.00449a10
xor eax, eax
mov dword [esp + 0x28], vtable.HttpFilter.0
push 0x206
push eax
mov word [esp + 0x1ec], ax
lea eax, [esp + 0x1ee]
push eax
call fcn.00505070
add esp, 0x24
lea eax, [esp + 0x1cc]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x43db07
lea eax, [esp + 0x1cc]
push eax
lea ecx, [esp + 0x18]
call fcn.0043e650
lea ecx, [esp + 0xec]
mov dword [esp + 0x3e8], 0
call fcn.004392e0
push 0
push ecx
mov byte [esp + 0x3f0], 1
push dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x24]
call fcn.00443650
test eax, eax
lea eax, [esp + 0xec]
push eax
lea eax, [esp + 0x108]
je 0x43d49e
push 0x5b75b4
push eax
call fcn.00442bc0
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x3f4], 2
call fcn.00441a80
mov byte [esp + 0x3e8], 1
jmp 0x43d4ea
push 0x5b75b8
push eax
call fcn.00442bc0
mov esi, eax
add esp, 0xc
lea eax, [esp + 0x14]
cmp eax, esi
je 0x43d4ea
cmp dword [esp + 0x28], 8
jb 0x43d4c9
push dword [esp + 0x14]
call fcn.00503a69
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.00440af0
cmp dword [esp + 0x118], 8
jb 0x43d503
push dword [esp + 0x104]
call fcn.00503a69
add esp, 4
push 0x5b75c0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0xdc]
push eax
call fcn.00442cb0
add esp, 0xc
mov byte [esp + 0x3e8], 3
lea ecx, [esp + 0xd4]
cmp dword [esp + 0xe8], 8
mov eax, dword [esp + 0xe4]
cmovae ecx, dword [esp + 0xd4]
push dword [esp + 0xc]
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], 0
lea eax, [ecx + eax*2]
mov byte [esp + 0x78], 0
lea ecx, [esp + 0xd8]
cmovae ecx, dword [esp + 0xd8]
push eax
push ecx
lea ecx, [esp + 0x80]
call fcn.004433c0
mov byte [esp + 0x3e8], 4
lea eax, [esp + 0x74]
cmp dword [esp + 0x88], 0x10
cmovae eax, dword [esp + 0x74]
push eax
call fcn.00503150
add esp, 4
lea eax, [esp + 0x14]
push str.SSLx.db
push eax
lea eax, [esp + 0xac]
push eax
call fcn.00442cb0
add esp, 0xc
mov byte [esp + 0x3e8], 5
lea ecx, [esp + 0xa4]
cmp dword [esp + 0xb8], 8
mov eax, dword [esp + 0xb4]
cmovae ecx, dword [esp + 0xa4]
push dword [esp + 0xc]
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
lea eax, [ecx + eax*2]
mov byte [esp + 0x48], 0
lea ecx, [esp + 0xa8]
cmovae ecx, dword [esp + 0xa8]
push eax
push ecx
lea ecx, [esp + 0x50]
call fcn.004433c0
mov byte [esp + 0x3e8], 6
lea eax, [esp + 0x44]
cmp dword [esp + 0x58], 0x10
cmovae eax, dword [esp + 0x44]
push eax
call fcn.00503150
add esp, 4
lea eax, [esp + 0x14]
push str.SSLxv.db
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.00442cb0
add esp, 0xc
mov byte [esp + 0x3e8], 7
lea ecx, [esp + 0xbc]
cmp dword [esp + 0xd0], 8
mov eax, dword [esp + 0xcc]
cmovae ecx, dword [esp + 0xbc]
mov dword [esp + 0x70], 0xf
lea eax, [ecx + eax*2]
lea ecx, [esp + 0xbc]
cmovae ecx, dword [esp + 0xbc]
push dword [esp + 0xc]
mov dword [esp + 0x70], 0
push eax
push ecx
lea ecx, [esp + 0x68]
mov byte [esp + 0x68], 0
call fcn.004433c0
mov byte [esp + 0x3e8], 8
lea eax, [esp + 0x5c]
cmp dword [esp + 0x70], 0x10
cmovae eax, dword [esp + 0x5c]
push eax
call fcn.00503150
add esp, 4
lea eax, [esp + 0x14]
push str.SSLxtls.db
push eax
lea eax, [esp + 0x94]
push eax
call fcn.00442cb0
add esp, 0xc
mov byte [esp + 0x3e8], 9
lea ecx, [esp + 0x8c]
cmp dword [esp + 0xa0], 8
mov eax, dword [esp + 0x9c]
cmovae ecx, dword [esp + 0x8c]
push dword [esp + 0xc]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
lea eax, [ecx + eax*2]
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x90]
cmovae ecx, dword [esp + 0x90]
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.004433c0
mov byte [esp + 0x3e8], 0xa
lea eax, [esp + 0x2c]
cmp dword [esp + 0x40], 0x10
cmovae eax, dword [esp + 0x2c]
push eax
call fcn.00503150
add esp, 4
lea eax, [esp + 0x14]
cmp dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0044c910
add esp, 8
test eax, eax
jne 0x43d795
push str.Failed_to_initialize_protocol_filter
call fcn.00503910
add esp, 4
call fcn.00503ec0
sub esp, 0x18
mov ecx, esp
push 0xd
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.ComLegService
mov byte [ecx], 0
call fcn.00440450
call fcn.0043c2d0
add esp, 0x18
mov byte [0x5d7594], al
test al, al
jne 0x43d7d5
push str.ComLegService
call fcn.0044c9a0
add esp, 4
call fcn.0044c900
push eax
push str.legendasdrv
call fcn.0044a2f0
add esp, 8
test eax, eax
je 0x43d7fe
push str.Failed_to_connect_to_driver
call fcn.00503910
add esp, 4
call fcn.00503ec0
push 0x53
lea eax, [esp + 0x120]
push 0
push eax
call fcn.00505070
add esp, 0xc
mov byte [esp + 0x124], 2
mov dword [esp + 0x11c], 6
mov dword [esp + 0x16b], 2
push 0x50
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x127], ax
lea eax, [esp + 0x11c]
push 1
push eax
call fcn.00449970
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
add esp, 8
mov dword [esp + 0x11c], 0x11
push 0x50
call esi
mov word [esp + 0x127], ax
lea eax, [esp + 0x11c]
push 1
push eax
mov dword [esp + 0x173], 1
call fcn.00449970
push 0x53
lea eax, [esp + 0x180]
push 0
push eax
call fcn.00505070
add esp, 0x14
mov byte [esp + 0x17c], 2
mov dword [esp + 0x174], 6
mov dword [esp + 0x1c3], 2
push 0x1bb
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x17f], ax
lea eax, [esp + 0x174]
push 1
push eax
call fcn.00449970
add esp, 8
mov dword [esp + 0x174], 0x11
push 0x1bb
call esi
mov word [esp + 0x17f], ax
lea eax, [esp + 0x174]
push 1
push eax
mov dword [esp + 0x1cb], 1
call fcn.00449970
add esp, 8
cmp dword [esp + 0x40], 0x10
jb 0x43d92a
push dword [esp + 0x2c]
call fcn.00503a69
add esp, 4
cmp dword [esp + 0xa0], 8
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
jb 0x43d958
push dword [esp + 0x8c]
call fcn.00503a69
add esp, 4
xor eax, eax
mov dword [esp + 0xa0], 7
cmp dword [esp + 0x70], 0x10
mov dword [esp + 0x9c], 0
mov word [esp + 0x8c], ax
jb 0x43d98b
push dword [esp + 0x5c]
call fcn.00503a69
add esp, 4
cmp dword [esp + 0xd0], 8
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
jb 0x43d9b9
push dword [esp + 0xbc]
call fcn.00503a69
add esp, 4
xor eax, eax
mov dword [esp + 0xd0], 7
cmp dword [esp + 0x58], 0x10
mov dword [esp + 0xcc], 0
mov word [esp + 0xbc], ax
jb 0x43d9ec
push dword [esp + 0x44]
call fcn.00503a69
add esp, 4
cmp dword [esp + 0xb8], 8
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
jb 0x43da1a
push dword [esp + 0xa4]
call fcn.00503a69
add esp, 4
xor eax, eax
mov dword [esp + 0xb8], 7
cmp dword [esp + 0x88], 0x10
mov dword [esp + 0xb4], 0
mov word [esp + 0xa4], ax
jb 0x43da50
push dword [esp + 0x74]
call fcn.00503a69
add esp, 4
cmp dword [esp + 0xe8], 8
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], 0
mov byte [esp + 0x74], 0
jb 0x43da84
push dword [esp + 0xd4]
call fcn.00503a69
add esp, 4
xor eax, eax
mov dword [esp + 0xe8], 7
cmp dword [esp + 0x100], 8
mov dword [esp + 0xe4], 0
mov word [esp + 0xd4], ax
jb 0x43dabd
push dword [esp + 0xec]
call fcn.00503a69
add esp, 4
xor eax, eax
mov dword [esp + 0x100], 7
cmp dword [esp + 0x28], 8
mov dword [esp + 0xfc], 0
mov word [esp + 0xec], ax
jb 0x43daf0
push dword [esp + 0x14]
call fcn.00503a69
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
push 0xffffffffffffffff
push dword [0x5d7578]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x5d7554
push dword [0x5d7588]
mov dword [0x5d7560], 0
mov dword [0x5d756c], 0
mov dword [0x5d755c], 1
mov dword [0x5d7568], 0
mov dword [0x5d7558], 1
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov ecx, dword [esp + 0x3e0]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x3d0]
xor ecx, esp
call fcn.00501f35
mov esp, ebp
pop ebp
ret