Function at 0x416225
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4dea3e
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x513720]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
push edi
mov eax, dword [0x513720]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
test eax, eax
je 0x416531
test edi, edi
je 0x416531
mov esi, dword [edi + 0x11ec]
test esi, esi
je 0x416531
push str.title_text
push eax
mov dword [ebx + 4], eax
call fcn.004432b0
mov dword [esp + 0x20], eax
test eax, eax
je 0x4162d6
mov ecx, dword [esi + 0xc04]
call fcn.004225c0
mov edx, eax
mov dword [esp + 0x14], edx
test edx, edx
je 0x4162d6
mov eax, dword [esp + 0x20]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
push dword [esp + 0x14]
call fcn.004bb670
pop ecx
push str.main_text1
push dword [ebx + 4]
call fcn.004432b0
mov dword [esp + 0x14], eax
test eax, eax
je 0x416330
push dword [esi + 0x2024]
lea eax, [esp + 0x28]
push eax
call fcn.00416591
mov ecx, eax
and dword [esp + 0x260], 0
cmp dword [ecx + 0x14], 8
jb 0x41630d
mov ecx, dword [ecx]
mov edx, dword [esp + 0x14]
push ecx
push edx
mov eax, dword [edx]
call dword [eax + 0xa8]
or dword [esp + 0x260], 0xffffffff
lea ecx, [esp + 0x24]
push 0
push 1
call fcn.00403864
push str.main_text2
push dword [ebx + 4]
call fcn.004432b0
mov dword [esp + 0x14], eax
test eax, eax
je 0x41639e
xor eax, eax
push 0x208
push eax
mov word [esp + 0x44], ax
lea eax, [esp + 0x46]
push eax
call fcn.004be330
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004bc2fa
pop ecx
call fcn.004bc2d9
cdq
mov ecx, 0xf4240
idiv ecx
lea eax, [esp + 0x3c]
push edx
push 0x4ff9e0
push eax
call fcn.00417d63
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x48]
add esp, 0xc
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0xa8]
push str.main_text3
push dword [ebx + 4]
call fcn.004432b0
test eax, eax
je 0x4163bd
mov ecx, dword [eax]
push 0x4ffa48
push eax
call dword [ecx + 0xa8]
push str.desc_text
push dword [ebx + 4]
call fcn.004432b0
mov dword [esp + 0x14], eax
test eax, eax
je 0x4163f8
mov ecx, dword [esi + 0xc08]
call fcn.004225c0
mov esi, eax
test esi, esi
je 0x4163f8
mov eax, dword [esp + 0x14]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
push esi
call fcn.004bb670
pop ecx
lea ecx, [edi + 0x120c]
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
jne 0x416424
lea eax, [edi + 0x1238]
mov ecx, ebx
push eax
lea esi, [edi + 0x11f4]
push esi
call fcn.00416672
push esi
mov ecx, ebx
call fcn.004171e7
jmp 0x416456
lea esi, [edi + 0x1238]
add edi, 0x11f4
push esi
push ecx
push edi
mov ecx, ebx
call fcn.00416a74
mov ecx, dword [esp + 0x18]
push esi
push edi
mov dword [ecx + 0x1230], eax
mov eax, dword [ebx + 0xc]
mov dword [ecx + 0x1234], eax
mov ecx, ebx
call fcn.00416672
push str.bottom_content
push dword [ebx + 4]
call fcn.004432b0
mov esi, eax
xor edi, edi
test esi, esi
je 0x416479
push edi
push esi
call fcn.004449b0
push edi
push esi
call fcn.00444920
push str.right_content
push dword [ebx + 4]
call fcn.004432b0
mov esi, eax
test esi, esi
je 0x41649a
push edi
push esi
call fcn.004449b0
push edi
push esi
call fcn.00444920
push str.edit_dir
push dword [ebx + 4]
call fcn.004432b0
mov esi, eax
test esi, esi
je 0x416511
xor eax, eax
push 0x208
mov word [esp + 0x40], ax
lea eax, [esp + 0x42]
push edi
push eax
call fcn.004be330
add esp, 0xc
lea eax, [esp + 0x3c]
push edi
push 0x10
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x416511
lea ecx, [esp + 0x3c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4164e1
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jbe 0x416511
mov eax, dword [esi]
lea ecx, [esp + 0x3c]
push ecx
push esi
call dword [eax + 0xa8]
push edi
push esi
call fcn.004449b0
push edi
push esi
call fcn.00444920
push str.btn_setup
push dword [ebx + 4]
call fcn.004432b0
test eax, eax
je 0x41652c
push eax
push dword [esp + 0x20]
call fcn.004432e0
xor eax, eax
inc eax
jmp 0x416533
xor eax, eax
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.004b923d
mov esp, ebp
pop ebp
ret 8