Function at 0x502270
Capabilities:
Get common file path

Disassembly:
sub esp, 0x518
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x514], eax
push ebx
push esi
mov esi, dword [esp + 0x524]
push edi
mov edi, dword [esp + 0x52c]
xor ebx, ebx
push 0x103
lea eax, [esp + 0x11]
push ebx
push eax
mov byte [esp + 0x18], bl
call fcn.005dfd60
push 0x207
lea ecx, [esp + 0x225]
push ebx
push ecx
mov byte [esp + 0x22c], bl
call fcn.005dfd60
push 0x103
lea edx, [esp + 0x439]
push ebx
push edx
mov byte [esp + 0x440], bl
call fcn.005dfd60
push 0x103
lea eax, [esp + 0x139]
push ebx
push eax
mov byte [esp + 0x140], bl
call fcn.005dfd60
add esp, 0x30
cmp edi, ebx
je 0x502302
mov byte [edi], bl
cmp esi, ebx
je 0x50249b
cmp byte [esi], bl
je 0x50249b
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
call fcn.004e8950
add esp, 0x18
test eax, eax
jne 0x50249b
push esi
call fcn.004e0670
add esp, 4
test eax, eax
jne 0x50249b
lea ecx, [esp + 0x110]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x502359
mov byte [esp + 0x110], bl
jmp 0x502369
lea edx, [esp + 0x110]
push edx
call fcn.004e24e0
add esp, 4
lea eax, [esp + 0x41c]
push eax
push esi
call fcn.004e1490
lea ecx, [esp + 0x424]
push 0x2e
push ecx
call fcn.005e0a00
add esp, 0x10
cmp eax, ebx
je 0x5023a8
inc eax
cmp byte [eax], bl
je 0x5023a8
push 0x64b2a4
push eax
call fcn.004dd620
add esp, 8
test eax, eax
je 0x50249b
lea edx, [esp + 0xc]
push ebx
push edx
call fcn.004e1580
add esp, 8
lea eax, [esp + 0xd]
push eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [esp + 0x110], bl
jne 0x5023ec
lea edx, [esp + 0xc]
push edx
push esi
lea eax, [esp + 0x21c]
push str._s._s.mwt
push eax
call fcn.005dfb23
add esp, 0x10
jmp 0x502416
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x420]
push edx
lea eax, [esp + 0x118]
push eax
lea ecx, [esp + 0x220]
push str._s_s._s.mwt
push ecx
call fcn.005dfb23
add esp, 0x14
push ebx
lea edx, [esp + 0x218]
push edx
push esi
call fcn.004eca90
add esp, 0xc
cmp eax, 1
jne 0x5024b8
cmp dword [esp + 0x530], ebx
je 0x502448
push ebx
lea eax, [esp + 0x218]
push eax
call fcn.005010e0
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
call fcn.004e8950
add esp, 0x18
test eax, eax
jne 0x50249b
lea ecx, [esp + 0xc]
push ecx
push esi
lea edx, [esp + 0x21c]
push str._s._s.mwt
push edx
call fcn.005dfb23
push ebx
lea eax, [esp + 0x228]
push eax
push esi
call fcn.004eca90
add esp, 0x1c
cmp eax, 1
jne 0x502524
push ebx
lea ecx, [esp + 0x218]
push ecx
call fcn.005010e0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x514]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x518
ret
cmp byte [esp + 0x110], bl
je 0x5024fb
lea edx, [esp + 0xc]
push edx
push esi
lea eax, [esp + 0x21c]
push str._s._s.mwt
push eax
call fcn.005dfb23
push ebx
lea ecx, [esp + 0x228]
push ecx
push esi
call fcn.004eca90
add esp, 0x1c
cmp eax, 1
jne 0x5024fb
push ebx
lea edx, [esp + 0x218]
push edx
jmp 0x502496
cmp edi, ebx
je 0x50250d
push 0x100
push edi
call fcn.004d8c20
add esp, 8
cmp dword [esp + 0x530], ebx
je 0x502524
lea eax, [esp + 0x214]
push eax
push esi
call fcn.005010e0
mov ecx, dword [esp + 0x520]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.005dfbbe
add esp, 0x518
ret