Function at 0x403e00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x118
lea eax, [esp + 0x14]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0x13], 0x5c
je 0x403e32
mov byte [esp + eax + 0x14], 0x5c
mov byte [esp + eax + 0x15], 0
push esi
push edi
lea edx, [esp + 0x1c]
push str.NDOGSRV.DOG
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x1c]
push 0x411368
push eax
call fcn.004074b3
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 8], edi
jne 0x403eac
lea ecx, [esp + 0x1c]
push ecx
push str.Cannot_open__s__please_re_install_the_server.
push 0x416c60
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [0x416b2c]
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
add esp, 0xc
push 0x416c60
push edi
push 0x8065
push edx
call esi
mov eax, dword [0x416b2c]
push edi
push edi
push 0x8066
push eax
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x118
ret
push 2
push 0
push edi
call fcn.004073c9
push edi
call fcn.0040779f
mov ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
push edi
shr ecx, 0x1f
add edx, ecx
mov esi, edx
call fcn.0040773b
mov eax, esi
add esp, 0x14
shl eax, 6
sub eax, esi
lea edx, [eax + eax*4]
lea eax, [esi + edx*4]
lea eax, [eax + eax*8]
shl eax, 1
sub eax, esi
shl eax, 1
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [0x4147a4], eax
jne 0x403f38
push str.Insufficent_memory.
push 0x416c60
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x416b2c]
add esp, 8
push 0x416c60
push 0
push 0x8065
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
xor eax, eax
pop esi
add esp, 0x118
ret
push ebx
push 0x416d60
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x4147a4]
push edx
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov ebx, dword [sym.imp.USER32.dll_PostMessageA]
mov dword [0x414798], eax
test esi, esi
jle 0x40421e
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esp + 0x14], esi
or esi, 0xffffffff
mov edx, dword [0x414790]
mov edi, dword [0x414790]
shl edx, 6
sub edx, edi
mov ecx, 0x2c54
xor eax, eax
lea edx, [edx + edx*4]
lea edx, [edi + edx*4]
lea edx, [edx + edx*8]
shl edx, 1
sub edx, edi
mov edi, dword [0x414798]
lea edi, [edi + edx*2]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push 1
push 0xc
push ecx
call fcn.004072b2
lea edx, [esp + 0x28]
push edx
call fcn.00403bd0
mov ecx, dword [0x414790]
add esp, 0x14
mov eax, ecx
shl eax, 6
sub eax, ecx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
lea edx, [eax + eax*8]
mov eax, dword [0x414798]
shl edx, 1
sub edx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + edx*2 + 8], ecx
mov ecx, dword [0x414790]
mov eax, ecx
shl eax, 6
sub eax, ecx
lea edx, [eax + eax*4]
lea eax, [ecx + edx*4]
mov edx, dword [esp + 0x20]
lea eax, [eax + eax*8]
shl eax, 1
sub eax, ecx
mov ecx, dword [0x414798]
mov dword [ecx + eax*2 + 0xc], edx
mov ecx, dword [0x414790]
mov eax, ecx
shl eax, 6
sub eax, ecx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
lea edx, [eax + eax*8]
mov eax, dword [0x414798]
shl edx, 1
sub edx, ecx
mov ecx, dword [eax + edx*2 + 8]
mov dword [0x417000], ecx
lea eax, [eax + edx*2]
mov edx, dword [eax + 0xc]
mov dword [0x416d7c], edx
call fcn.00401190
test eax, eax
je 0x40409d
mov ecx, dword [0x414790]
push eax
mov eax, ecx
shl eax, 6
sub eax, ecx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
lea edx, [eax + eax*8]
mov eax, dword [0x414798]
shl edx, 1
sub edx, ecx
mov ecx, dword [eax + edx*2 + 8]
push ecx
push str.Cannot_find_dog__d___error:__d_r_n
push 0x416c60
call ebp
mov edx, dword [0x416b2c]
add esp, 0x10
push 0x416c60
push 0
push 0x8065
push edx
jmp 0x404208
mov byte [0x416e7f], 0
mov word [0x416fe4], 0
mov word [0x416d44], 8
mov dword [0x416d28], 0x416ee0
call fcn.00401840
cmp al, 1
jne 0x4041c2
cmp byte [0x416ee0], 0x4e
jne 0x404196
mov al, byte [0x416ee1]
cmp al, 0x48
je 0x4040eb
cmp al, 0x44
jne 0x404196
mov ecx, dword [0x414790]
push 0xa
mov eax, ecx
shl eax, 6
sub eax, ecx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
lea edx, [eax + eax*8]
mov eax, dword [0x414798]
shl edx, 1
sub edx, ecx
lea ecx, [eax + edx*2 + 0xb130]
mov edx, dword [str.NetDogSrv]
mov dword [ecx], edx
mov eax, dword [0x411434]
mov dword [ecx + 4], eax
mov dx, word [0x411438]
mov word [ecx + 8], dx
mov ecx, dword [0x414790]
mov eax, ecx
shl eax, 6
sub eax, ecx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
lea edx, [eax + eax*8]
mov eax, dword [0x414798]
shl edx, 1
sub edx, ecx
lea eax, [eax + edx*2]
mov edx, dword [eax + 8]
lea ecx, [eax + 0xb139]
push ecx
push edx
call fcn.0040e20e
mov ecx, dword [0x414790]
add esp, 0xc
mov eax, ecx
shl eax, 6
sub eax, ecx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
lea edx, [eax + eax*8]
mov eax, dword [0x414798]
shl edx, 1
sub edx, ecx
mov dword [eax + edx*2 + 0xb140], esi
mov eax, dword [0x414790]
inc eax
mov dword [0x414790], eax
jmp 0x40420a
mov ecx, dword [0x414790]
mov eax, ecx
shl eax, 6
sub eax, ecx
lea edx, [eax + eax*4]
lea eax, [ecx + edx*4]
lea eax, [eax + eax*8]
shl eax, 1
sub eax, ecx
mov ecx, dword [0x414798]
mov edx, dword [ecx + eax*2 + 8]
push edx
push str.Dog__d__is_not_NetDog_GS_NH_
jmp 0x4041ec
mov ecx, dword [0x414790]
mov eax, ecx
shl eax, 6
sub eax, ecx
lea edx, [eax + eax*4]
lea eax, [ecx + edx*4]
lea eax, [eax + eax*8]
shl eax, 1
sub eax, ecx
mov ecx, dword [0x414798]
mov edx, dword [ecx + eax*2 + 8]
push edx
push str.Dog__d__GetModel___function_is_wrong._n
push 0x416c60
call ebp
mov eax, dword [0x416b2c]
add esp, 0xc
push 0x416c60
push 0
push 0x8065
push eax
call ebx
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x403f72
mov edi, dword [esp + 0x10]
pop ebp
mov ecx, dword [0x4147a4]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push 0x416d60
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call fcn.00407235
mov eax, dword [0x414790]
add esp, 4
test eax, eax
jne 0x40425a
mov edx, dword [0x416b2c]
push 0
push 0
push 0x8066
push edx
call ebx
mov eax, dword [0x414790]
pop ebx
pop edi
pop esi
add esp, 0x118
ret