Function at 0x4028d1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x528
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 4]
call fcn.0040105d
lea eax, [ebp + 0xc]
lea ecx, [esi + 4]
push eax
call fcn.004013a1
call fcn.00408e79
mov edi, 0x104
test eax, eax
push edi
je 0x402950
lea eax, [ebp - 0x528]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x31c]
push edi
push eax
lea eax, [ebp - 0x528]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jbe 0x4029a1
lea eax, [ebp - 0x31c]
lea ecx, [ebp + 8]
push eax
call fcn.004010d1
push dword [ebp + 8]
lea eax, [ebp - 0x110]
push eax
call fcn.0040cbd0
pop ecx
pop ecx
lea ecx, [ebp + 8]
jmp 0x40299c
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x218]
push edi
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jbe 0x4029a1
lea eax, [ebp - 0x218]
lea ecx, [ebp + 8]
push eax
call fcn.004010a0
push dword [ebp + 8]
lea eax, [ebp - 0x110]
push eax
call fcn.0040cbd0
pop ecx
pop ecx
lea ecx, [ebp + 8]
call fcn.00401187
lea ebx, [esi + 8]
lea eax, [ebp - 0x110]
push eax
mov ecx, ebx
call fcn.004013c2
push ebx
lea ecx, [ebp - 4]
call fcn.004013a1
lea ecx, [ebp - 4]
call fcn.004012ee
test eax, eax
jle 0x402a1b
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 4]
call fcn.00401580
push 0x4151b4
mov ecx, eax
call fcn.004015e4
test eax, eax
lea ecx, [ebp + 8]
setne bl
call fcn.00401187
test bl, bl
je 0x402a1b
lea ecx, [ebp - 4]
call fcn.004012ee
dec eax
lea ecx, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00401524
push eax
lea ecx, [ebp - 4]
call fcn.004013a1
lea ecx, [ebp - 8]
call fcn.00401187
jmp 0x4029bb
push ecx
lea eax, [ebp - 4]
mov ecx, esp
push eax
call fcn.0040106e
lea eax, [ebp + 8]
push eax
call fcn.004087bc
pop ecx
pop ecx
push eax
lea ecx, [esi + 0xc]
call fcn.004013a1
lea ecx, [ebp + 8]
call fcn.00401187
lea eax, [ebp - 0x110]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ecx
lea eax, [ebp - 0x110]
mov ecx, esp
push eax
call fcn.004010a0
lea eax, [ebp + 8]
push eax
call fcn.004087bc
pop ecx
pop ecx
push eax
lea ecx, [esi + 0x10]
call fcn.004013a1
lea ecx, [ebp + 8]
call fcn.00401187
lea eax, [ebp - 0x110]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push ecx
lea eax, [ebp - 0x110]
mov ecx, esp
push eax
lea ebx, [esi + 0x14]
call fcn.004010a0
lea eax, [ebp + 8]
push eax
call fcn.004087bc
pop ecx
pop ecx
push eax
mov ecx, ebx
call fcn.004013a1
lea ecx, [ebp + 8]
call fcn.00401187
lea eax, [ebp - 0x110]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push ecx
lea eax, [ebp - 0x110]
mov ecx, esp
push eax
call fcn.004010a0
lea eax, [ebp + 8]
push eax
call fcn.004087bc
pop ecx
pop ecx
push eax
lea ecx, [esi + 0x18]
call fcn.004013a1
lea ecx, [ebp + 8]
call fcn.00401187
add esi, 0x1c
push ebx
mov ecx, esi
call fcn.004013a1
push str.MacromedFlash
mov ecx, esi
call fcn.00401482
lea ecx, [ebp - 4]
call fcn.00401187
lea ecx, [ebp + 0xc]
call fcn.00401187
pop edi
pop esi
pop ebx
leave
ret 8