Function at 0x485fc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x57c870]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5fdb24], 0
je 0x485fe1
jmp 0x48662e
movsx eax, byte [0x5c5ed8]
test eax, eax
je 0x486002
push 0x5c5ed8
mov ecx, dword [ebp + 8]
push ecx
call fcn.00532580
add esp, 8
jmp 0x48662e
movsx edx, byte [0x5f9f30]
test edx, edx
jne 0x48601d
push 0xff
push 0x5f9f30
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x56ad68
lea eax, [ebp - 0x410]
push eax
call fcn.00532580
add esp, 8
lea ecx, [ebp - 0x108]
push ecx
push 0x56ad94
lea edx, [ebp - 0x410]
push edx
push reloc.WSOCK32.dll_bind
call fcn.00486ed0
add esp, 0x10
mov dword [ebp - 0x30c], eax
cmp dword [ebp - 0x30c], 0
je 0x48606c
movsx eax, byte [ebp - 0x107]
cmp eax, 0x3a
je 0x486073
mov byte [ebp - 0x108], 0
push 0x56ada4
lea ecx, [ebp - 0x410]
push ecx
call fcn.00532580
add esp, 8
lea edx, [ebp - 0x308]
push edx
push str.dynedwin_path
lea eax, [ebp - 0x410]
push eax
push reloc.WSOCK32.dll_bind
call fcn.00486ed0
add esp, 0x10
mov dword [ebp - 0x30c], eax
cmp dword [ebp - 0x30c], 0
je 0x48612e
movsx ecx, byte [ebp - 0x307]
cmp ecx, 0x3a
je 0x4860ce
movsx edx, byte [ebp - 0x307]
cmp edx, 0x5c
jne 0x48612e
movsx eax, byte [ebp - 0x308]
test eax, eax
je 0x48612e
lea ecx, [ebp - 0x308]
push ecx
call fcn.004299d0
add esp, 4
lea edx, [ebp - 0x308]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00532580
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
push 0x5c5ed8
call fcn.00532580
add esp, 8
push str.Read_localDynEdDirectory_from_registry
push 0
call fcn.00436500
add esp, 8
mov edx, dword [ebp + 8]
push edx
push 0
call fcn.00436500
add esp, 8
jmp 0x4863e2
movsx eax, byte [0x5f94d8]
test eax, eax
jne 0x48615e
push 0x5f94d8
call fcn.00485290
add esp, 4
movsx ecx, byte [0x5f94d8]
test ecx, ecx
je 0x48615e
push 0x5f94d8
call fcn.00485320
add esp, 4
movsx edx, byte [0x5f94d8]
test edx, edx
je 0x486316
push 0x5f94d8
mov eax, dword [ebp + 8]
push eax
call fcn.00532580
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
call fcn.00423110
add esp, 4
mov dword [ebp - 0x30c], eax
cmp dword [ebp - 0x30c], 0
je 0x4861b6
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00427d90
add esp, 8
cmp eax, 0xffffffff
jne 0x4861b6
mov dword [ebp - 0x30c], 0
cmp dword [ebp - 0x30c], 0
jne 0x486311
mov dword [0x5c75a8], 0xfffffc19
push str.DynEdInstaller.exe
lea eax, [ebp - 0x108]
push eax
call fcn.00532580
add esp, 8
push 1
lea ecx, [ebp - 0x108]
push ecx
push 0x56ae00
call fcn.0048ae70
add esp, 0xc
push 0x200
push 0x5f98d8
mov edx, dword [0x6013e4]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5f98d8
call fcn.00433f40
add esp, 4
push 0x56ae10
push 0x5f98d8
call fcn.00532590
add esp, 8
lea eax, [ebp - 0x108]
push eax
push 0x56ae14
push 0x5f98d8
push str._s_s__s
lea ecx, [ebp - 0x308]
push ecx
call fcn.00532706
add esp, 0x14
push 1
lea edx, [ebp - 0x308]
push edx
call fcn.00489080
add esp, 8
mov eax, dword [ebp + 8]
push eax
call fcn.00423110
add esp, 4
mov dword [ebp - 0x30c], eax
cmp dword [ebp - 0x30c], 0
je 0x48629b
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00427d90
add esp, 8
cmp eax, 0xffffffff
jne 0x48629b
mov dword [ebp - 0x30c], 0
cmp dword [ebp - 0x30c], 0
jne 0x486307
mov edx, dword [ebp + 8]
push edx
push str.ERROR:_Cannot_create_directory__2_:__s._nMake_sure_that_you_have_full__read_write_edit_create_delete__privileges_to_this_directory.
lea eax, [ebp - 0x410]
push eax
call fcn.00532706
add esp, 0xc
push 0x5f9d03
push 0x5f9d04
push 0x56aeb0
lea ecx, [ebp - 0x410]
push ecx
call fcn.00483510
add esp, 0x10
lea edx, [ebp - 0x410]
push edx
push 1
call fcn.00436500
add esp, 8
push 0x5f9d05
push 0xb89
push 0x56aeb4
call fcn.00431ee0
add esp, 0xc
jmp 0x48662e
mov dword [0x5c75a8], 0
jmp 0x4863e2
mov eax, dword [ebp + 8]
push eax
call fcn.00485290
add esp, 4
push 0x56aecc
mov ecx, dword [ebp + 8]
push ecx
call fcn.00532590
add esp, 8
mov edx, dword [ebp + 8]
push edx
call fcn.00423110
add esp, 4
mov dword [ebp - 0x30c], eax
cmp dword [ebp - 0x30c], 0
jne 0x4863e2
movsx eax, byte [0x5f9f30]
push eax
push 0x56aed4
mov ecx, dword [ebp + 8]
push ecx
call fcn.00532706
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
call fcn.00423110
add esp, 4
mov dword [ebp - 0x30c], eax
cmp dword [ebp - 0x30c], 0
jne 0x4863e2
movsx eax, byte [ebp - 0x108]
test eax, eax
je 0x4863e2
lea ecx, [ebp - 0x108]
push ecx
call fcn.00423110
add esp, 4
mov dword [ebp - 0x30c], eax
cmp dword [ebp - 0x30c], 1
jne 0x4863c9
lea edx, [ebp - 0x108]
push edx
push str._sDynEd_
mov eax, dword [ebp + 8]
push eax
call fcn.00532706
add esp, 0xc
jmp 0x4863e2
movsx ecx, byte [0x5f9f30]
push ecx
push 0x56aef0
mov edx, dword [ebp + 8]
push edx
call fcn.00532706
add esp, 0xc
cmp dword [0x55c70c], 1
jne 0x486405
cmp dword [0x5c6bfc], 1
jne 0x486405
push 0x5f98d8
mov eax, dword [ebp + 8]
push eax
call fcn.00532580
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
push 0x5c5ed8
call fcn.00532580
add esp, 8
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x208]
push eax
call fcn.00532580
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
call fcn.00423c50
add esp, 4
mov dword [ebp - 0x30c], eax
cmp dword [ebp - 0x30c], 0
jne 0x48645b
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00427d90
add esp, 8
cmp eax, 0xffffffff
jne 0x4865de
movsx eax, byte [0x5f9f30]
push eax
push str._c:dynedwin_
mov ecx, dword [ebp + 8]
push ecx
call fcn.00532706
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x5c5ed8
call fcn.00532580
add esp, 8
movsx eax, byte [0x5f94d8]
test eax, eax
jne 0x4864b5
push 0x5f94d8
call fcn.00485290
add esp, 4
movsx ecx, byte [0x5f94d8]
test ecx, ecx
je 0x4864b5
push 0x5f94d8
call fcn.00485320
add esp, 4
movsx edx, byte [0x5f94d8]
test edx, edx
je 0x4864d1
push 0x5f94d8
mov eax, dword [ebp + 8]
push eax
call fcn.00532580
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
push 0x5c5ed8
call fcn.00532580
add esp, 8
mov edx, dword [ebp + 8]
push edx
call fcn.00423c50
add esp, 4
mov dword [ebp - 0x30c], eax
cmp dword [ebp - 0x30c], 0
jne 0x486514
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00427d90
add esp, 8
cmp eax, 0xffffffff
jne 0x4865de
mov ecx, dword [ebp + 8]
push ecx
call fcn.00489ea0
add esp, 4
mov dword [ebp - 0x30c], eax
push str.DynEd_
mov edx, dword [ebp + 8]
push edx
call fcn.00532590
add esp, 8
mov eax, dword [ebp + 8]
push eax
push 0x5c5ed8
call fcn.00532580
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
call fcn.00423c50
add esp, 4
mov dword [ebp - 0x30c], eax
cmp dword [ebp - 0x30c], 0
jne 0x486576
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00427d90
add esp, 8
cmp eax, 0xffffffff
jne 0x4865de
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp - 0x30c]
push ecx
push str.ERROR:_Cannot_create_directory__3__d_:__s._nMake_sure_that_you_have_full__read_write_edit_create_delete__privileges_to_this_directory.
lea edx, [ebp - 0x410]
push edx
call fcn.00532706
add esp, 0x10
push 0x5f9d06
push 0x5f9d07
push 0x56afa0
lea eax, [ebp - 0x410]
push eax
call fcn.00483510
add esp, 0x10
lea ecx, [ebp - 0x410]
push ecx
push 1
call fcn.00436500
add esp, 8
push 0x5f9d08
push 0xbf3
push 0x56afa4
call fcn.00431ee0
add esp, 0xc
cmp dword [0x5fdb24], 0
jne 0x48661b
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.00427d90
add esp, 8
mov dword [ebp - 0x30c], eax
cmp dword [ebp - 0x30c], 0xffffffff
jne 0x48661b
push 0x5f9d09
push 0xbfe
push str.FindLocalDynEdDirectory
call fcn.00431ee0
add esp, 0xc
cmp dword [0x5fdb24], 0
jne 0x486629
call fcn.0048a6a0
call fcn.0042bfa0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00532783
mov esp, ebp
pop ebp
ret