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

Disassembly:
push 0xffffffffffffffff
push 0x4ab20b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
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 + 0x38]
lea ecx, [esp + 0x10]
call fcn.00434680
mov edx, dword [0x4cf6e8]
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
mov dword [esp + 0x474], ebp
call ebx
cmp eax, ebp
jne 0x42c809
mov word [esp + 0x54], bp
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x42c839
lea eax, [esp + 0x54]
test eax, eax
je 0x42c828
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.00404780
jmp 0x42c89c
push 0x1ff
lea ecx, [esp + 0x18]
mov edi, 0x200
call fcn.00404560
mov esi, eax
cmp esi, ebp
je 0x42c88d
mov eax, dword [0x4cf6e8]
push edi
push esi
push 0x8f
mov eax, dword [eax + 8]
push eax
call ebx
cmp eax, ebp
jne 0x42c86b
mov word [esi], bp
mov ecx, edi
sub ecx, eax
cmp ecx, 1
jg 0x42c88d
add edi, 0x100
lea ecx, [esp + 0x14]
lea edx, [edi - 1]
push edx
call fcn.00404560
mov esi, eax
cmp esi, ebp
jne 0x42c852
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.00404620
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.00438960
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.00405a60
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.00438900
mov ecx, dword [0x4cf6e8]
lea edx, [esp + 0x54]
push 0x100
push edx
mov eax, dword [ecx + 8]
push 0x8e
push eax
call ebx
cmp eax, ebp
jne 0x42c99a
mov word [esp + 0x54], bp
mov ecx, 0x100
sub ecx, eax
cmp ecx, 1
jle 0x42c9ce
lea edx, [esp + 0x54]
test edx, edx
jne 0x42c9b2
xor eax, eax
jmp 0x42c9bd
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.00404780
jmp 0x42ca4a
push 0x1ff
lea ecx, [esp + 0x18]
mov edi, 0x200
call fcn.00404560
mov esi, eax
cmp esi, ebp
je 0x42ca23
mov edx, dword [0x4cf6e8]
push edi
push esi
push 0x8e
mov eax, dword [edx + 8]
push eax
call ebx
cmp eax, ebp
jne 0x42ca01
mov word [esi], bp
mov ecx, edi
sub ecx, eax
cmp ecx, 1
jg 0x42ca23
add edi, 0x100
lea ecx, [esp + 0x14]
lea edx, [edi - 1]
push edx
call fcn.00404560
mov esi, eax
cmp esi, ebp
jne 0x42c9e7
lea ecx, [esp + 0x14]
call fcn.00404970
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.00438900
lea ecx, [esp + 0x10]
mov dword [esp + 0x464], 0xffffffff
call fcn.004346a0
mov ecx, dword [esp + 0x45c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x458
ret