Function at 0x40209e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
lea eax, [ebp - 0x30]
push edi
mov ebx, ecx
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebx + 0x74]
xor esi, esi
cmp eax, esi
je 0x4023b0
mov ecx, ebx
lea edx, [ebx + 0x1c]
neg ecx
sbb ecx, ecx
and ecx, edx
push ecx
push eax
mov ecx, ebx
call fcn.004023b5
xor eax, eax
cmp dword [ebx + 0x3c], esi
lea edi, [ebp - 0x1c]
push 7
stosd dword es:[edi], eax
pop eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], eax
je 0x40210f
lea eax, [ebp - 0x30]
mov dword [ebp - 0x1c], 0x820001
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
sub dword [ebp - 0x30], 0xc8
jmp 0x402117
cmp dword [ebx + 0x50], esi
je 0x402117
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x74]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x30]
mov ecx, dword [eax]
push edx
push dword [ebx + 4]
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x4023b0
mov eax, dword [ebx + 0x74]
cmp dword [ebx + 0x3c], esi
mov ecx, dword [eax]
je 0x402141
push 3
jmp 0x402143
push 6
push eax
call dword [ecx + 0x2c]
cmp dword [ebx + 0x3c], esi
mov dword [ebp - 4], esi
jne 0x402243
lea eax, [ebp - 4]
push eax
push 0x11
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40223a
mov eax, dword [ebx + 0x48]
cmp eax, esi
je 0x4021cb
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.00489f86
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0xc]
neg eax
sbb eax, eax
and eax, ecx
push dword [eax]
call fcn.00489e6e
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.0048994a
lea eax, [ebp - 8]
lea ecx, [ebp - 0x18]
push eax
call fcn.00489fbf
push dword [eax]
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
lea ecx, [ebp - 8]
mov edi, eax
call fcn.004038fb
cmp edi, esi
je 0x4021bb
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x18]
call fcn.0048996a
lea ecx, [ebp - 0x10]
call fcn.0048996a
mov eax, dword [ebx + 0x74]
push esi
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
cmp dword [ebx + 0x48], esi
je 0x40223a
mov eax, dword [ebx + 0x74]
lea edx, [ebp - 8]
push edx
push 0x4b0600
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
cmp dword [ebp - 8], esi
je 0x40223a
push esi
lea ecx, [ebp - 0x18]
push dword [ebx + 0x48]
call fcn.00489f86
lea ecx, [ebp - 0x18]
call fcn.0048a1b9
push eax
lea ecx, [ebp - 0x10]
call fcn.0048994a
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x10]
neg edx
mov ecx, dword [eax]
lea edi, [ebp - 0xc]
sbb edx, edx
push 0x19
and edx, edi
push dword [edx]
push eax
call dword [ecx + 0x38]
lea ecx, [ebp - 0x10]
call fcn.0048996a
lea ecx, [ebp - 0x18]
call fcn.0048996a
cmp dword [ebx + 0x3c], esi
je 0x4023b0
mov eax, dword [ebx + 0x74]
push esi
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebx + 0x74]
lea edx, [ebp - 0x14]
mov esi, 0x4b0658
push edx
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x44]
mov eax, dword [ebx + 0x74]
lea edi, [ebx + 0x70]
push edi
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
test eax, eax
jl 0x4023b0
mov ecx, dword [edi]
mov eax, 0x20000
push eax
push eax
mov edx, dword [ecx]
push ecx
call dword [edx + 0x60]
mov eax, dword [edi]
push 0x20
push 0x20
push eax
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edi, dword [edi]
lea ecx, [ebp - 4]
push ecx
push 0x4b0648
mov eax, dword [edi]
push edi
call dword [eax]
test eax, eax
jl 0x40233d
mov eax, dword [ebp - 4]
push 5
pop ecx
mov esi, 0x4ab088
lea edi, [ebp - 0x58]
push 5
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, 0x4ab070
lea edi, [ebp - 0x44]
lea edx, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
push 2
push edx
push eax
call dword [ecx + 0x1c]
push 0x2c
xor eax, eax
pop ecx
lea edi, [ebp - 0x108]
mov dword [ebp - 0x110], 0xb8
mov dword [ebp - 0x10c], 7
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x110]
mov esi, 0x4ab070
push edx
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x402334
mov eax, dword [ebp - 4]
add dword [ebp - 0x104], 0x64
add dword [ebp - 0x100], 0x64
add dword [ebp - 0xfc], 0x64
mov ecx, dword [eax]
lea edx, [ebp - 0x110]
push edx
push esi
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebx + 0x70]
lea esi, [ebx + 0x70]
lea edi, [ebx + 0x6c]
mov ecx, dword [eax]
push edi
push 0x4b0638
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x4023b0
and dword [ebp - 8], 0
lea eax, [ebx + 0x58]
mov ecx, eax
add eax, 4
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
lea ecx, [ebp - 0xc]
call fcn.00404359
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0xc]
neg eax
sbb eax, eax
mov dword [ebp - 0x10], 0x4aa998
and eax, ecx
mov ecx, ebx
push dword [eax]
lea eax, [ebp - 8]
push eax
call fcn.00402405
mov eax, dword [edi]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [esi]
push 1
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea ecx, [ebp - 0x10]
call fcn.0048996a
pop edi
pop esi
pop ebx
leave