Function at 0x419d80
Capabilities:
Get common file path
Get program files directory

Disassembly:
sub esp, 0x44c
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0x1c]
push edi
mov ecx, dword [esi + 4]
xor ebp, ebp
push eax
push ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esi + 0x20]
add esi, 0x20
lea eax, [esp + 0x20]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x38], esi
call dword [edx + 0x34]
lea ecx, [esp + 0x10]
call fcn.0041dc60
mov edx, dword [0x4917e0]
mov ebx, dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [esp + 0x54]
mov dword [esp + 0x18], ebp
mov eax, dword [edx + 8]
push 0x100
push ecx
push 0x8f
push eax
call ebx
cmp eax, ebp
jne 0x419dfd
mov word [esp + 0x54], bp
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x419e2d
lea eax, [esp + 0x54]
test eax, eax
je 0x419e1c
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x54]
lea ecx, [esp + 0x14]
push edx
push eax
call fcn.00403710
jmp 0x419e90
push 0x1ff
lea ecx, [esp + 0x18]
mov edi, 0x200
call fcn.004034f0
mov esi, eax
cmp esi, ebp
je 0x419e81
mov eax, dword [0x4917e0]
push edi
push esi
push 0x8f
mov eax, dword [eax + 8]
push eax
call ebx
cmp eax, ebp
jne 0x419e5f
mov word [esi], bp
mov ecx, edi
sub ecx, eax
cmp ecx, 1
jg 0x419e81
add edi, 0x100
lea ecx, [esp + 0x14]
lea edx, [edi - 1]
push edx
call fcn.004034f0
mov esi, eax
cmp esi, ebp
jne 0x419e46
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.004035b0
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x2c]
push 0xffffffffffffffd8
lea ecx, [esp + 0x48]
push 0xffffffffffffffd8
push ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
call dword [sym.imp.USER32.dll_InflateRect]
push 1
lea edx, [esp + 0x48]
push 1
lea eax, [esp + 0x18]
push edx
push eax
push 0x8f
mov ecx, esi
call fcn.00420fe0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
push ebp
lea edx, [esp + 0x258]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x258]
push 0x26
push edx
push ebp
rep stosd dword es:[edi], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x254]
lea ecx, [esp + 0x14]
push eax
push 0x8d
push ecx
mov dword [esp + 0x24], ebp
call fcn.0040d320
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
add esp, 0xc
add eax, 0x3c
mov dword [esp + 0x34], eax
lea edx, [esp + 0x34]
push 1
push 1
push ebp
lea eax, [esp + 0x1c]
push edx
add edi, 0x50
push eax
push 0x8d
mov ecx, esi
mov dword [esp + 0x50], edi
call fcn.00420f80
mov ecx, dword [0x4917e0]
lea edx, [esp + 0x54]
push 0x100
push edx
mov eax, dword [ecx + 8]
push 0x8e
push eax
call ebx
cmp eax, ebp
jne 0x419f8e
mov word [esp + 0x54], bp
mov ecx, 0x100
sub ecx, eax
cmp ecx, 1
jle 0x419fc2
lea edx, [esp + 0x54]
test edx, edx
jne 0x419fa6
xor eax, eax
jmp 0x419fb1
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x54]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00403710
jmp 0x41a03e
push 0x1ff
lea ecx, [esp + 0x18]
mov edi, 0x200
call fcn.004034f0
mov esi, eax
cmp esi, ebp
je 0x41a017
mov edx, dword [0x4917e0]
push edi
push esi
push 0x8e
mov eax, dword [edx + 8]
push eax
call ebx
cmp eax, ebp
jne 0x419ff5
mov word [esi], bp
mov ecx, edi
sub ecx, eax
cmp ecx, 1
jg 0x41a017
add edi, 0x100
lea ecx, [esp + 0x14]
lea edx, [edi - 1]
push edx
call fcn.004034f0
mov esi, eax
cmp esi, ebp
jne 0x419fdb
lea ecx, [esp + 0x14]
call fcn.0040b7c0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x14]
mov word [edx + eax*2], bp
push 0x1e
lea eax, [esp + 0x38]
push ebp
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 1
push 1
lea ecx, [esp + 0x3c]
push ebp
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x8e
mov ecx, esi
call fcn.00420f80
lea ecx, [esp + 0x10]
call fcn.0041dc80
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44c
ret