Function at 0x405aa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416817
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x420090]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea esi, [ebx + 0x20]
mov dword [ebp - 0x25c], ebx
test esi, esi
je 0x405ae2
call fcn.00407ad0
xor edi, edi
call fcn.00405570
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x2c]
mov esi, dword [sym.imp.USER32.dll_MoveWindow]
push 1
push eax
mov eax, dword [ebx + 4]
push ecx
push edi
push edi
push eax
call esi
lea ecx, [ebx + 4]
call fcn.00409fd0
push 0xf
push 0xf
push 0x185
push 0x23e
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
mov ecx, dword [ebx + 4]
mov edi, eax
push 0
push edi
push ecx
mov dword [ebp - 0x260], edi
call dword [sym.imp.USER32.dll_SetWindowRgn]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x405b4c
mov dword [ebp - 0x260], 0
mov edx, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e9
push edx
call edi
push 1
push 0x14
push 0x12c
push 0x91
push 0x1e
push eax
call esi
mov eax, dword [ebx + 4]
push 0x3eb
push eax
call edi
push 1
push 0x96
push 0x1ea
push 0xaf
push 0x28
push eax
call esi
mov ecx, dword [ebx + 4]
push 1
push ecx
call edi
push 1
push 0x1a
push 0x5b
push 0x154
push 0x15e
push eax
call esi
mov edx, dword [ebx + 4]
push 2
push edx
call edi
push 1
push 0x1a
push 0x5b
push 0x154
push 0x1c2
push eax
call esi
mov eax, dword [ebx + 4]
push 0x3f2
push eax
call edi
push 1
push 0x1a
push 0x5b
push 0xa7
push 0x15e
push eax
call esi
mov ecx, dword [ebx + 4]
push 0x3ec
push ecx
call edi
push 1
push 0x14
push 0x12c
push 0x96
push 0x1e
push eax
call esi
mov edx, dword [ebx + 4]
push 0x3f0
push edx
call edi
push 1
push 0x19
push 0x12c
push 0xaa
push 0x1e
push eax
call esi
mov eax, dword [ebx + 4]
push 0x3ed
push eax
call edi
push 1
push 0x14
push 0x12c
push 0xd2
push 0x1e
push eax
call esi
mov ecx, dword [ebx + 4]
push 0x3f1
push ecx
call edi
push 1
push 0x19
push 0x12c
push 0xe6
push 0x1e
push eax
call esi
mov edx, dword [ebx + 4]
push 0x3ee
push edx
call edi
push 1
push 0x14
push 0x203
push 0x10e
push 0x1e
push eax
call esi
mov eax, dword [ebx + 4]
push 0x3ef
push eax
call edi
push 1
push 0x1e
push 0x203
push 0x122
push 0x1e
push eax
call esi
mov ecx, dword [ebx + 4]
push 0x3f4
push ecx
call edi
push 1
push 0x1e
push 0x203
push 0xfa
push 0x1e
push eax
call esi
mov eax, dword [0x42136c]
push 0x104
lea edx, [ebp - 0x21c]
push edx
push 0x66
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
xor ecx, ecx
lea eax, [ebp - 0x21c]
mov word [ebp - 0x238], cx
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x405cf7
sub eax, ecx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x238]
call fcn.00409ec0
mov esi, dword [ebp - 0x25c]
add esi, 0x58
lea edi, [ebp - 0x238]
mov byte [ebp - 4], 1
call fcn.004081e0
mov esi, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0x224], esi
jb 0x405d50
mov edx, dword [ebp - 0x238]
push edx
call fcn.0040d343
add esp, 4
xor eax, eax
mov word [ebp - 0x238], ax
push 1
mov eax, 0x41c5d8
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
call fcn.00409ec0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x238]
cmp dword [ebp - 0x224], esi
jae 0x405d97
lea eax, [ebp - 0x238]
mov esi, dword [ebp - 0x25c]
mov edi, dword [ebp - 0x228]
add esi, 0x58
push eax
mov eax, dword [esi + 0x10]
mov ecx, esi
call fcn.004087b0
test eax, eax
mov edi, 8
sete byte [ebp - 0x255]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x224], edi
jb 0x405dda
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.0040d343
add esp, 4
cmp byte [ebp - 0x255], 0
je 0x405df6
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], edi
jb 0x405df1
mov esi, dword [esi]
xor edx, edx
mov word [esi], dx
mov ecx, dword [0x42136c]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x6c
push ecx
call edi
mov edx, dword [ebx + 4]
push 2
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x21c]
push ecx
push eax
call esi
mov eax, dword [0x42136c]
push 0x104
lea edx, [ebp - 0x21c]
push edx
push 0x6d
push eax
call edi
mov ecx, dword [ebx + 4]
push 0x3f2
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
lea edx, [ebp - 0x21c]
push edx
push eax
call esi
mov ecx, dword [0x42136c]
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x6e
push ecx
call edi
mov edx, dword [ebx + 4]
push 0x3ec
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 0x21c]
push ecx
push eax
call esi
mov eax, dword [0x42136c]
push 0x104
lea edx, [ebp - 0x21c]
push edx
push 0x71
push eax
call edi
xor ecx, ecx
lea eax, [ebp - 0x21c]
mov word [ebp - 0x254], cx
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], 0
lea ecx, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x405ed0
sub eax, ecx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x254]
call fcn.00409ec0
push 0x104
lea edx, [ebp - 0x21c]
push edx
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [ebp - 0x25c]
add eax, 0x58
mov ecx, 8
cmp dword [eax + 0x14], ecx
jb 0x405f1c
mov eax, dword [eax]
cmp dword [ebp - 0x240], ecx
mov ecx, dword [ebp - 0x254]
jae 0x405f30
lea ecx, [ebp - 0x254]
push eax
movzx eax, word [ebp - 0x21c]
push eax
push ecx
lea ecx, [ebp - 0x21c]
push 0x104
push ecx
call fcn.0040dd41
mov eax, dword [ebx + 4]
add esp, 0x14
lea edx, [ebp - 0x21c]
push edx
push 0x3f0
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov edx, dword [0x42136c]
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push 0x6f
push edx
call edi
mov eax, dword [ebx + 4]
push 0x3ed
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 0x21c]
push ecx
push eax
call esi
mov eax, dword [0x42136c]
push 0x104
lea edx, [ebp - 0x21c]
push edx
push 0x72
push eax
call edi
xor ecx, ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405fd0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x238]
call fcn.00409ec0
lea edi, [ebp - 0x238]
lea esi, [ebp - 0x254]
mov byte [ebp - 4], 4
call fcn.004081e0
mov esi, 8
cmp dword [ebp - 0x224], esi
jb 0x406022
mov edx, dword [ebp - 0x238]
push edx
call fcn.0040d343
add esp, 4
mov eax, dword [ebp - 0x25c]
add eax, 0x58
cmp dword [eax + 0x14], esi
jb 0x406032
mov eax, dword [eax]
mov ecx, dword [ebp - 0x254]
cmp dword [ebp - 0x240], esi
jae 0x406046
lea ecx, [ebp - 0x254]
push eax
push ecx
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.0040dd41
mov ecx, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 0x10
push 0x3f1
push ecx
call edi
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
lea edx, [ebp - 0x21c]
push edx
push eax
call esi
mov ecx, dword [0x42136c]
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x70
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
mov edx, dword [ebx + 4]
push 0x3ee
push edx
call edi
lea ecx, [ebp - 0x21c]
push ecx
push eax
call esi
mov eax, dword [0x42136c]
push 0x104
lea edx, [ebp - 0x21c]
push edx
push 0x78
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, dword [ebx + 4]
push 0x3f4
push ecx
call edi
lea edx, [ebp - 0x21c]
push edx
push eax
call esi
mov esi, dword [ebp - 0x25c]
mov eax, 0x6b
mov dword [esi + 0xac], eax
mov dword [esi + 0xb4], eax
mov dword [esi + 0xbc], eax
mov edx, 0x6c
mov dword [esi + 0xb0], edx
mov ecx, 0x6a
mov dword [esi + 0xb8], ecx
mov dword [esi + 0xf4], eax
mov dword [esi + 0xf8], edx
mov dword [esi + 0xfc], eax
mov dword [esi + 0x100], ecx
mov dword [esi + 0x104], eax
push 0
mov dword [esi + 0x13c], eax
mov dword [esi + 0x140], edx
mov dword [esi + 0x144], eax
mov dword [esi + 0x148], ecx
mov dword [esi + 0x14c], eax
call fcn.00406880
cmp dword [ebp - 0x240], 8
jb 0x40616a
mov eax, dword [ebp - 0x254]
push eax
call fcn.0040d343
add esp, 4
mov eax, dword [ebp - 0x260]
xor ecx, ecx
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], cx
test eax, eax
je 0x406198
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040d34e
mov esp, ebp
pop ebp
ret 4