Function at 0x419d70
Capabilities:
Access peb ldr_data
Get common file path
Get ntdll base address
Get program files directory
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x44ea68
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x462408]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x462408]
xor eax, esp
push eax
lea eax, [esp + 0x274]
mov dword fs:[0], eax
mov eax, dword [esp + 0x284]
mov ebx, edx
xor ebp, ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebp
mov ecx, 7
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x14], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ebx
mov word [ebx + 4], bp
mov edx, 1
mov dword [esp + 0x24], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], ebp
mov word [esp + 0x30], bp
mov dword [esp + 0x27c], edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], ebp
mov word [esp + 0x4c], bp
add eax, 0xc
mov byte [esp + 0x27c], 2
mov dword [esp + 0x1c], eax
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov edi, eax
mov eax, dword [esp + 0x1c]
cmp eax, ebp
mov esi, dword [eax + 4]
je 0x419e24
cmp eax, eax
je 0x419e2d
call fcn.0043641d
mov eax, dword [esp + 0x1c]
cmp edi, esi
je 0x419f79
cmp eax, ebp
jne 0x419e42
call fcn.0043641d
mov eax, dword [esp + 0x1c]
cmp edi, dword [eax + 4]
jne 0x419e4c
call fcn.0043641d
cmp dword [edi + 0x24], 8
jb 0x419e57
mov eax, dword [edi + 0x10]
jmp 0x419e5a
lea eax, [edi + 0x10]
push 0x4550e0
push eax
call fcn.00436262
add esp, 8
test eax, eax
jne 0x419eb3
mov edx, 0x4550dc
call fcn.00401d60
test eax, eax
je 0x419eb3
mov edx, dword [esp + 0x20]
push 0x4550e0
push edx
call fcn.00436262
add esp, 8
test eax, eax
jne 0x419eb3
mov ecx, 0x4550dc
call fcn.00401e00
mov ecx, eax
lea esi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
cmp dx, bp
jne 0x419ea0
sub ecx, esi
sar ecx, 1
push ecx
push eax
jmp 0x419f11
mov esi, dword [esp + 0x1c]
cmp edi, dword [esi + 4]
jne 0x419ec1
call fcn.0043641d
cmp dword [edi + 0x24], 8
jb 0x419ecc
mov eax, dword [edi + 0x10]
jmp 0x419ecf
lea eax, [edi + 0x10]
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.00436262
add esp, 8
test eax, eax
jne 0x419f18
cmp edi, dword [esi + 4]
jne 0x419eeb
call fcn.0043641d
cmp dword [edi + 0x40], 8
jb 0x419ef6
mov edx, dword [edi + 0x2c]
jmp 0x419ef9
lea edx, [edi + 0x2c]
mov eax, edx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x419f00
sub eax, esi
sar eax, 1
push eax
push edx
mov esi, ebx
call fcn.00403d80
cmp byte [edi + 0x45], 0
je 0x419f28
call fcn.0043641d
jmp 0x419e15
mov eax, dword [edi + 8]
cmp byte [eax + 0x45], 0
jne 0x419f4f
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x45], 0
jne 0x419e15
nop
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x45], 0
je 0x419f40
jmp 0x419e15
mov eax, dword [edi + 4]
cmp byte [eax + 0x45], 0
jne 0x419e13
lea esp, [esp]
cmp edi, dword [eax + 8]
jne 0x419e13
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x45], 0
je 0x419f60
jmp 0x419e13
cmp dword [ebx + 0x14], ebp
jne 0x41a47e
mov ebp, dword [esp + 0x20]
xor bl, bl
cmp word [ebp], 0
je 0x41a073
movzx eax, word [ebp]
cmp ax, 0x29
je 0x41a073
cmp ax, 0x28
jne 0x419fae
mov bl, 1
jmp 0x41a065
test bl, bl
movzx esi, ax
je 0x41a00d
or ecx, 0xffffffff
sub ecx, dword [esp + 0x5c]
cmp ecx, 1
ja 0x419fc6
call fcn.004344ff
mov edi, dword [esp + 0x5c]
add edi, 1
lea eax, [esp + 0x48]
call fcn.004041d0
test al, al
je 0x41a065
mov eax, dword [esp + 0x4c]
mov ecx, 8
cmp dword [esp + 0x60], ecx
jae 0x419ff1
lea eax, [esp + 0x4c]
mov edx, dword [esp + 0x5c]
mov word [eax + edx*2], si
cmp dword [esp + 0x60], ecx
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x5c], edi
jae 0x41a05f
lea eax, [esp + 0x4c]
jmp 0x41a05f
or eax, 0xffffffff
sub eax, dword [esp + 0x40]
cmp eax, 1
ja 0x41a01e
call fcn.004344ff
mov edi, dword [esp + 0x40]
add edi, 1
lea eax, [esp + 0x2c]
call fcn.004041d0
test al, al
je 0x41a065
mov eax, dword [esp + 0x30]
mov ecx, 8
cmp dword [esp + 0x44], ecx
jae 0x41a045
lea eax, [esp + 0x30]
mov edx, dword [esp + 0x40]
mov word [eax + edx*2], si
cmp dword [esp + 0x44], ecx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], edi
jae 0x41a05f
lea eax, [esp + 0x30]
mov word [eax + edi*2], 0
add ebp, 2
cmp word [ebp], 0
jne 0x419f93
lea eax, [esp + 0x2c]
call fcn.00433280
mov eax, dword [esp + 0x40]
push str.source
mov edi, 6
lea ecx, [esp + 0x30]
call fcn.00404850
test eax, eax
jne 0x41a0c2
mov edx, dword [esp + 0x28]
add edx, 0x3c
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41a0a3
sub eax, esi
mov esi, dword [esp + 0x18]
sar eax, 1
push eax
push edx
call fcn.00403d80
jmp 0x41a47e
mov eax, dword [esp + 0x40]
push str.setup
mov edi, 5
lea ecx, [esp + 0x30]
call fcn.00404850
test eax, eax
jne 0x41a119
push 0x104
push 0x464eb0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, 0x464eb0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41a0f6
mov esi, dword [esp + 0x18]
sub eax, edx
sar eax, 1
push eax
push 0x464eb0
call fcn.00403d80
jmp 0x41a47e
mov eax, dword [esp + 0x40]
push str.system
mov edi, 6
lea ecx, [esp + 0x30]
call fcn.00404850
test eax, eax
jne 0x41a16b
push 0x104
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
jne 0x41a158
push 0x104
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, dword [esp + 0x18]
push edx
lea edx, [esp + 0x68]
call fcn.004029e0
jmp 0x41a47e
mov esi, str.system64
lea ecx, [esp + 0x2c]
call fcn.0040f700
test al, al
je 0x41a1a0
push 0x104
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x68]
call fcn.004029e0
jmp 0x41a47e
mov esi, str.windir
lea ecx, [esp + 0x2c]
call fcn.0040f700
test al, al
je 0x41a1d5
push 0x104
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [esp + 0x18]
push eax
lea edx, [esp + 0x68]
call fcn.004029e0
jmp 0x41a47e
mov esi, str.progfilesdir
lea ecx, [esp + 0x2c]
call fcn.0040f700
test al, al
je 0x41a20d
lea ecx, [esp + 0x64]
push ecx
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edx, dword [esp + 0x18]
push edx
lea edx, [esp + 0x68]
call fcn.004029e0
jmp 0x41a47e
mov esi, str.progfilesdir64
lea ecx, [esp + 0x2c]
call fcn.0040f700
test al, al
je 0x41a233
push 0x104
lea eax, [esp + 0x68]
push eax
push str.ProgramW6432
jmp 0x41a2c4
mov esi, str.startmenu
lea ecx, [esp + 0x2c]
call fcn.0040f700
test al, al
je 0x41a26b
lea edx, [esp + 0x64]
push edx
push 0
push 0
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov eax, dword [esp + 0x18]
push eax
lea edx, [esp + 0x68]
call fcn.004029e0
jmp 0x41a47e
mov esi, str.commonappsdir
lea ecx, [esp + 0x2c]
call fcn.0040f700
test al, al
je 0x41a2a3
lea ecx, [esp + 0x64]
push ecx
push 0
push 0
push 0x2b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edx, dword [esp + 0x18]
push edx
lea edx, [esp + 0x68]
call fcn.004029e0
jmp 0x41a47e
mov esi, str.commonappsdir64
lea ecx, [esp + 0x2c]
call fcn.0040f700
test al, al
je 0x41a2dd
push 0x104
lea eax, [esp + 0x68]
push eax
push str.CommonProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x68]
call fcn.004029e0
jmp 0x41a47e
mov esi, str.commondesktop
lea ecx, [esp + 0x2c]
call fcn.0040f700
test al, al
je 0x41a315
lea edx, [esp + 0x64]
push edx
push 0
push 0
push 0x19
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov eax, dword [esp + 0x18]
push eax
lea edx, [esp + 0x68]
call fcn.004029e0
jmp 0x41a47e
mov esi, str.lang
lea ecx, [esp + 0x2c]
call fcn.0040f700
test al, al
je 0x41a33b
mov ecx, dword [esp + 0x18]
push ecx
mov edx, 0x464bd2
call fcn.004029e0
jmp 0x41a47e
mov esi, str.getstring
lea ecx, [esp + 0x2c]
call fcn.0040f700
test al, al
je 0x41a38e
cmp dword [esp + 0x60], 8
mov eax, dword [esp + 0x4c]
jae 0x41a35c
lea eax, [esp + 0x4c]
push 0x104
lea edx, [esp + 0x68]
push edx
push eax
call fcn.00437017
add esp, 4
mov ecx, eax
mov edx, 0x464bc0
call fcn.0042b4a0
mov eax, dword [esp + 0x18]
push eax
lea edx, [esp + 0x68]
call fcn.004029e0
jmp 0x41a47e
mov esi, str.resource
lea ecx, [esp + 0x2c]
call fcn.0040f700
test al, al
je 0x41a3b6
call fcn.00411350
mov ecx, dword [esp + 0x18]
push ecx
mov edx, eax
call fcn.004029e0
jmp 0x41a47e
mov esi, str.getswitch
lea ecx, [esp + 0x2c]
call fcn.0040f700
test al, al
je 0x41a409
mov edx, dword [esp + 0x4c]
mov esi, 8
cmp dword [esp + 0x60], esi
jae 0x41a3db
lea edx, [esp + 0x4c]
call fcn.00401d60
test eax, eax
je 0x41a47e
cmp dword [esp + 0x60], esi
mov ecx, dword [esp + 0x4c]
jae 0x41a3f6
lea ecx, [esp + 0x4c]
call fcn.00401e00
mov edx, dword [esp + 0x18]
push edx
mov edx, eax
call fcn.004029e0
jmp 0x41a47e
mov esi, str.getdriverversion
lea ecx, [esp + 0x2c]
call fcn.0040f700
test al, al
je 0x41a462
mov eax, dword [esp + 0x4c]
mov esi, 8
cmp dword [esp + 0x60], esi
jae 0x41a42e
lea eax, [esp + 0x4c]
push eax
call fcn.004063a0
cmp eax, 0xffffffff
jne 0x41a44f
cmp dword [esp + 0x60], esi
mov eax, dword [esp + 0x4c]
jae 0x41a447
lea eax, [esp + 0x4c]
push eax
push str.Driver__s_not_found__ignoring
jmp 0x41a46c
call fcn.0040a7c0
mov ecx, dword [esp + 0x18]
push ecx
mov edx, eax
call fcn.004029e0
jmp 0x41a47e
mov edx, dword [esp + 0x20]
push edx
push str.Unknown_variable___s___ignoring
push 0x463650
mov eax, 1
call fcn.0042a920
add esp, 0xc
mov esi, 8
cmp dword [esp + 0x60], esi
jb 0x41a496
mov eax, dword [esp + 0x4c]
push eax
call fcn.0043642d
add esp, 4
xor eax, eax
cmp dword [esp + 0x44], esi
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], eax
mov word [esp + 0x4c], ax
jb 0x41a4bc
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0043642d
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x274]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.00434b37
add esp, 0x26c
ret 4