Function at 0x406630
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b4
push ebx
push esi
lea eax, [esp + 0xb4]
push edi
push eax
call fcn.00406050
add esp, 4
lea ecx, [esp + 0xb8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ebx, dword [ebp + 0x10]
push ebx
call fcn.00406530
add esp, 4
cmp eax, 0xffffffff
jne 0x406677
push ebx
call fcn.004060c0
add esp, 4
push ebx
call fcn.004057a0
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00403d10
push 0
push str.serverinfo.cfg
lea ecx, [esp + 0x18]
call fcn.00403d30
test eax, eax
je 0x4067b7
xor eax, eax
mov ecx, 0x20
lea edi, [esp + 0x38]
lea edx, [esp + 0x38]
rep stosd dword es:[edi], eax
push edx
lea ecx, [esp + 0x14]
call fcn.00403de0
xor eax, eax
mov ecx, 0x20
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x14]
call fcn.00403de0
xor eax, eax
mov ecx, 0x20
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x14]
call fcn.00403de0
lea edx, [esp + 0x38]
push edx
push 0x4274b0
push 0x48ed78
call fcn.00409160
xor eax, eax
mov ecx, 0x20
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
add esp, 0xc
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x14]
call fcn.00403de0
lea ecx, [esp + 0x38]
push ecx
push 0x4274b0
push 0x48ebf8
call fcn.00409160
xor eax, eax
add esp, 0xc
mov ecx, 0x20
lea edi, [esp + 0x38]
lea edx, [esp + 0x38]
rep stosd dword es:[edi], eax
push edx
lea ecx, [esp + 0x14]
call fcn.00403de0
xor eax, eax
mov ecx, 0x20
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x14]
call fcn.00403de0
xor eax, eax
mov ecx, 0x20
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x14]
call fcn.00403de0
xor eax, eax
mov ecx, 0x20
lea edi, [esp + 0x38]
lea edx, [esp + 0x38]
rep stosd dword es:[edi], eax
push edx
lea ecx, [esp + 0x14]
call fcn.00403de0
lea ecx, [esp + 0x10]
call fcn.00403dc0
mov byte [0x48ee4e], 1
push 0x427720
push str.ghostsoul.ini
call fcn.00409c80
mov esi, eax
add esp, 8
test esi, esi
jne 0x406817
push 0x427a68
push str.ghostsoul.ini
call fcn.00409c80
mov esi, eax
push esi
push 1
push 1
push 0x48ee4c
mov byte [0x48ee4c], 0
mov byte [0x48ee4d], 0
call fcn.0040b690
push esi
push 1
push 1
push 0x48ee4d
call fcn.0040b690
push esi
call fcn.00409ad0
add esp, 0x2c
jmp 0x406838
push esi
push 1
push 1
push 0x48ee4c
call fcn.0040b4c0
push esi
push 1
push 1
push 0x48ee4d
call fcn.0040b4c0
add esp, 0x20
push esi
call fcn.00409ad0
call fcn.00405df0
mov esi, dword [ebp + 8]
push str.GhostSoul.exe
mov dword [0x48ee50], esi
mov dword [0x48ec78], ebx
call fcn.00405c90
add esp, 8
test eax, eax
je 0x406891
mov eax, dword [0x48ee7c]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [esp + 0x10]
call fcn.00403d20
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x48ec78]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4068a0
sub eax, edx
mov dword [esp + 0x18], eax
je 0x4068ed
push 0
push 0x7a139
mov ecx, 0x48eeb8
call fcn.004042f0
push eax
push 0x7a142
mov ecx, 0x48eeb8
call fcn.004042f0
mov ecx, dword [0x48ee7c]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [0x48ee7c]
push 0
push 0
push 0x10
push edx
jmp 0x406950
push 0x408
call fcn.00408870
add esp, 4
test eax, eax
je 0x406907
mov ecx, eax
call fcn.004069d0
jmp 0x406909
xor eax, eax
push 0x400
mov dword [0x48eeac], eax
call fcn.00408870
add esp, 4
test eax, eax
je 0x406928
mov ecx, eax
call fcn.00407900
jmp 0x40692a
xor eax, eax
push 0
push 0x407de0
push 0
push str.INFO_DISPLAY
push esi
mov dword [0x48ee78], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov eax, dword [0x48ee7c]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
call esi
test eax, eax
je 0x4069a8
push 0
push 0
push 0
lea edx, [esp + 0x28]
push edx
call edi
test eax, eax
je 0x4069b0
lea eax, [esp + 0x1c]
push eax
call ebx
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x406970
call dword [sym.imp.USER32.dll_WaitMessage]
jmp 0x406970
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x10]
call fcn.00403d20
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10