Function at 0x409460
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x8f4
mov eax, dword [0x57f7c4]
xor eax, esp
mov dword [esp + 0x8f0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ecx
mov dword [esp + 0x3c], edi
cmp eax, 0x44
ja case.0x40949f.27
movzx ecx, byte [eax + 0x40b4b4]
jmp dword [ecx*4 + 0x40b3f0]
push edi
call fcn.004f0f90
add esp, 4
jmp case.0x40949f.27
lea ecx, [esp + 0x68]
call fcn.004eab00
lea esi, [esp + 0x68]
mov eax, 0x109e5c0
call fcn.004011e0
lea edx, [esp + 0xf0]
push edx
mov ecx, esi
call fcn.004ea580
lea eax, [esp + 0xf0]
push eax
push str.cmd_server_info_r_n_s_r_n
push edi
call fcn.0051a8cd
add esp, 0xc
dec edi
cmp byte [0x109e8c4], 0
je 0x409538
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x409500
mov ecx, dword [str.connection_is_start]
mov dword [edi], ecx
mov edx, dword [0x56f754]
mov dword [edi + 4], edx
mov eax, dword [0x56f758]
mov dword [edi + 8], eax
mov ecx, dword [0x56f75c]
mov dword [edi + 0xc], ecx
mov edx, dword [0x56f760]
mov dword [edi + 0x10], edx
jmp case.0x40949f.27
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x409538
mov eax, dword [str.connection_is_stop]
mov dword [edi], eax
mov ecx, dword [0x56f768]
mov dword [edi + 4], ecx
mov edx, dword [0x56f76c]
mov dword [edi + 8], edx
mov eax, dword [0x56f770]
mov dword [edi + 0xc], eax
mov cx, word [0x56f774]
mov word [edi + 0x10], cx
mov dl, byte [0x56f776]
mov byte [edi + 0x12], dl
jmp case.0x40949f.27
mov ecx, 0x109e8a0
call fcn.004e9aa0
xor eax, eax
cmp dword [ebp + 0xc], 1
jl 0x409598
add ebx, 4
push ebx
call fcn.0051ba99
add esp, 4
imul eax, eax, 0xea60
cmp eax, 0x7530
mov esi, eax
jg 0x4095ac
mov esi, 0x7530
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
add ebx, esi
je 0x40971b
mov eax, dword [0x109e6ec]
mov ecx, dword [0x109e6f8]
mov edx, dword [0x587960]
push eax
mov eax, dword [edx + 0xd4]
push ecx
push eax
push str._nUser_count_:__d___d__d_
call fcn.004e2220
lea ecx, [esp + 0x100]
push 0x56f794
push ecx
call fcn.0051a8cd
lea eax, [esp + 0x108]
add esp, 0x18
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409600
mov ecx, dword [0x587960]
sub eax, edx
lea edx, [esp + 0xf0]
push edx
mov edi, eax
call fcn.00414e00
push 0x56f7cc
call fcn.004e2220
lea eax, [esp + 0xf4]
add esp, 4
push eax
call fcn.004e2220
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ebx
sub esi, eax
test esi, esi
jle 0x40971b
lea ecx, [ecx]
mov ecx, dword [0x109e6ec]
mov edx, dword [0x109e6f8]
mov eax, dword [0x587960]
push ecx
mov ecx, dword [eax + 0xd4]
push edx
push ecx
push str._nUser_count_:__d___d__d_
call fcn.004e2220
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
lea ecx, [esp + 0x104]
push 0x56f7d0
push ecx
call fcn.0051a8cd
lea eax, [esp + 0x10c]
add esp, 0x1c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4096a5
mov ecx, dword [0x587960]
sub eax, edx
lea edx, [esp + 0xf0]
push edx
mov edi, eax
call fcn.00414e00
push 0x56f7cc
call fcn.004e2220
lea eax, [esp + 0xf4]
add esp, 4
push eax
call fcn.004e2220
add esp, 4
cmp esi, 0x2710
jg 0x4096ef
push 0x3e8
jmp 0x409703
cmp esi, 0x7530
jg 0x4096fe
push 0x1388
jmp 0x409703
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ebx
sub esi, eax
test esi, esi
jg 0x409650
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push str._nserver_shutdown_start..._r_n
call fcn.004e2220
add esp, 4
mov ecx, 0x109e5c0
call fcn.004ef590
push str._ncmd_disconnect_all_ok_r_n
call fcn.004e2220
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8f0]
xor ecx, esp
call fcn.0051a8be
mov esp, ebp
pop ebp
ret 0x10
mov ecx, 0x109e5c0
call fcn.004ef590
push str.cmd_disconnect_all_ok
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
mov ecx, dword [0x109e6ec]
mov edx, dword [0x109e6f8]
mov eax, dword [0x587960]
push ecx
mov ecx, dword [eax + 0xd4]
push edx
push ecx
push str.cmd_User_count_:__d___d__d_
push edi
call fcn.0051a8cd
add esp, 0x14
jmp case.0x40949f.27
mov ecx, dword [0x587960]
test ecx, ecx
je case.0x40949f.27
mov edi, dword [ebx]
lea edx, [ebx + 4]
push edx
call fcn.00414e00
mov eax, dword [esp + 0x3c]
push str.cmd_send_notice_ok
push eax
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
mov ecx, 0x109e8a0
call fcn.004e9aa0
cmp byte [0x109e8c4], 0
mov dl, byte [0x5827c8]
mov ecx, 0x204
mov word [esp + 0x50], cx
mov byte [esp + 0x53], dl
mov byte [esp + 0x52], 4
je 0x409815
mov byte [esp + 0x54], 0
push str.cmd_connection_stop_failed
jmp 0x40981f
push str.cmd_connection_stop_ok
mov byte [esp + 0x58], 1
push edi
call fcn.0051a8cd
mov ecx, dword [0x587968]
add esp, 8
push 5
lea eax, [esp + 0x54]
push eax
call fcn.004ed2d0
jmp case.0x40949f.27
mov ecx, 0x109e8a0
call fcn.004e9980
cmp byte [0x109e8c4], 0
mov dl, byte [0x5827c8]
mov ecx, 0x204
mov word [esp + 0x50], cx
mov byte [esp + 0x53], dl
mov byte [esp + 0x52], 4
je 0x409877
mov byte [esp + 0x54], 0
push str.cmd_connection_start_ok
jmp 0x40981f
push str.cmd_connection_start_failed
jmp 0x40981a
add ebx, 4
push ebx
call fcn.0051ba99
add esp, 4
cmp eax, 0x752f
ja 0x4098d9
mov dl, byte [0x5827c8]
mov dword [0x109e6ec], eax
mov ecx, 0x806
mov word [esp + 0x54], ax
push 6
lea eax, [esp + 0x54]
mov word [esp + 0x54], cx
mov ecx, dword [0x587968]
push eax
mov byte [esp + 0x5a], 4
mov byte [esp + 0x5b], dl
call fcn.004ed2d0
push str.cmd_setmaxuser_ok
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
push str.cmd_setmaxuser_failed
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
add ebx, 4
mov eax, ebx
call fcn.00414c90
mov esi, eax
test esi, esi
je 0x409936
push 0
push 9
mov ecx, esi
call fcn.004ec760
mov ecx, dword [esi + 0x128]
mov eax, dword [esi + 0x582c]
push ecx
lea edx, [esi + 0x184]
push edx
push eax
add esi, 0x5834
push esi
push str.cmd_kick_by_user_name_str__ok__user:_s__d__char:_s__d_
push edi
call fcn.0051a8cd
add esp, 0x18
jmp case.0x40949f.27
push ebx
push str.cmd_kick_by_user_name__s__failed
push edi
call fcn.0051a8cd
add esp, 0xc
jmp case.0x40949f.27
add ebx, 4
push ebx
call fcn.0051ba99
mov ebx, eax
add esp, 4
test ebx, ebx
jle 0x4099a2
mov ecx, dword [0x587960]
push ebx
call fcn.00414c70
mov esi, eax
test esi, esi
je 0x4099a2
push 0
push 9
mov ecx, esi
call fcn.004ec760
mov ecx, dword [esi + 0x128]
push ecx
lea edx, [esi + 0x184]
push edx
push ebx
add esi, 0x5834
push esi
push str.cmd_kick_by_user_id_num__ok__user:_s__d__char:_s__d_
push edi
call fcn.0051a8cd
add esp, 0x18
jmp case.0x40949f.27
push ebx
push str.cmd_kick_by_user_id__d__failed
push edi
call fcn.0051a8cd
add esp, 0xc
jmp case.0x40949f.27
add ebx, 4
mov eax, ebx
call fcn.00414ce0
mov esi, eax
test esi, esi
je 0x409a00
push 0
push 9
mov ecx, esi
call fcn.004ec760
mov eax, dword [esi + 0x128]
mov edx, dword [esi + 0x582c]
push eax
lea ecx, [esi + 0x184]
push ecx
push edx
add esi, 0x5834
push esi
push str.cmd_kick_by_char_name_str__ok__user:_s__d__char:_s__d_
push edi
call fcn.0051a8cd
add esp, 0x18
jmp case.0x40949f.27
push ebx
push str.cmd_kick_by_char_name__s__failed
push edi
call fcn.0051a8cd
add esp, 0xc
jmp case.0x40949f.27
add ebx, 4
push ebx
call fcn.0051ba99
mov ebx, eax
add esp, 4
test ebx, ebx
jle 0x409a66
push ebx
call fcn.00414cc0
mov esi, eax
test esi, esi
je 0x409a66
push 0
push 9
mov ecx, esi
call fcn.004ec760
mov eax, dword [esi + 0x128]
push eax
lea ecx, [esi + 0x184]
push ecx
push ebx
add esi, 0x5834
push esi
push str.cmd_kick_by_char_id_num__ok__user:_s__d__char:_s__d_
push edi
call fcn.0051a8cd
add esp, 0x18
jmp case.0x40949f.27
push ebx
push str.cmd_kick_by_char_id__d__failed
push edi
call fcn.0051a8cd
add esp, 0xc
jmp case.0x40949f.27
push str.cmd_NProtect_on_ok
push edi
mov byte [0x58794e], 1
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
push str.cmd_NProtect_off_ok
push edi
mov byte [0x58794e], 0
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
mov edx, dword [0x587948]
mov eax, dword [0x587944]
mov ecx, dword [0x587940]
push edx
push eax
push ecx
push str.cmd_timeover_send_d__db_d__world_d
push edi
call fcn.0051a8cd
add esp, 0x14
jmp case.0x40949f.27
cmp byte [0x58275c], 0
je 0x409af8
push str.cmd_chk_item_pick_chk__not_
push edi
mov byte [0x58275c], 0
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
push str.cmd_chk_item_pick_not__chk_
push edi
mov byte [0x58275c], 1
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
push 0
push 0x587980
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [0x58797c]
mov eax, dword [0x587980]
push edx
push eax
push str.cmd_exp2x_disable_ok_byadmin_d_bysys_d_
jmp 0x40b3cb
add ebx, 4
push ebx
call fcn.0051c136
fstp dword [esp + 0x50]
fldz
add esp, 4
fcomp dword [esp + 0x4c]
fnstsw ax
test ah, 0x41
jp 0x409b91
push 1
push 0x587980
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
fld dword [esp + 0x4c]
mov ecx, dword [0x58797c]
fst qword [0x582760]
mov edx, dword [0x587980]
sub esp, 8
fstp qword [esp]
push ecx
push edx
push str.cmd_exp2x_enable_ok_byadmin_d_bysys_d_current_ExpX_.3f_
push edi
call fcn.0051a8cd
add esp, 0x18
jmp case.0x40949f.27
fld qword [0x582760]
mov eax, dword [0x58797c]
mov ecx, dword [0x587980]
sub esp, 8
fstp qword [esp]
push eax
push ecx
push str.cmd_exp2x_enable_failed_byadmin_d_bysys_d_current_ExpX_.3f_
push edi
call fcn.0051a8cd
add esp, 0x18
jmp case.0x40949f.27
push 2
push 0x587980
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [0x58797c]
mov eax, dword [0x587980]
push edx
push eax
push str.cmd_exp2x_auto_ok_byadmin_d_bysys_d_
jmp 0x40b3cb
push str.cmd_enable_shop_ok
push edi
mov dword [0x58798c], 0
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
push str.cmd_disable_shop_with_msg_ok
push edi
mov dword [0x58798c], 1
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
push str.cmd_disable_shop_no_msg_ok
push edi
mov dword [0x58798c], 2
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
push str.cmd_disable_gift_no_msg_ok
push edi
mov dword [0x58798c], 3
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
push str.cmd_enable_killcount_ok
push edi
mov dword [0x587990], 0
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
push str.cmd_disable_killcount_ok
push edi
mov dword [0x587990], 1
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x31
call esi
mov ecx, eax
mov eax, 0x31b5d43b
mul ecx
shr edx, 0x18
push edx
call esi
push eax
call esi
push eax
push str.cmd_ticktime_ok_current_timer_u_0x_X__day_u__u
push edi
call fcn.0051a8cd
add esp, 0x18
jmp case.0x40949f.27
mov eax, dword [0x587960]
mov edx, dword [eax + 0x37c]
mov ecx, dword [eax + 0x378]
push edx
mov edx, dword [eax + 0x374]
push ecx
mov ecx, dword [eax + 0x36c]
push edx
mov edx, dword [eax + 0x370]
push ecx
mov ecx, dword [eax + 0x368]
push edx
mov edx, dword [eax + 0x380]
push ecx
push edx
push str.cmd_CurAll__d___guildhouse_cur_d_max_d___guildrank_cur_d_max_d___party_cur_d_max_d_
push edi
call fcn.0051a8cd
add esp, 0x24
jmp case.0x40949f.27
add ebx, 4
push ebx
call fcn.0051ba99
add esp, 4
mov esi, eax
call fcn.0041a8a0
push esi
test eax, eax
je 0x409d33
push str.cmd_viewmap__d__ok
push edi
call fcn.0051a8cd
add esp, 0xc
jmp case.0x40949f.27
push str.cmd_viewmap__d__fail
push edi
call fcn.0051a8cd
add esp, 0xc
jmp case.0x40949f.27
push str..Configps_game.ini
push 0x400
lea eax, [esp + 0xf8]
push eax
push 0
push str.GameDef
push 0x56fd58
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe case.0x40949f.27
lea ecx, [esp + 0x4f8]
push ecx
lea edx, [esp + 0x6fc]
push edx
lea ebx, [esp + 0x800]
lea edx, [esp + 0x600]
lea ecx, [esp + 0xf8]
call fcn.004e1670
mov eax, dword [0x587970]
add esp, 8
test eax, eax
je 0x409daf
add eax, 0xe0
jmp 0x409db1
xor eax, eax
push 0x3c
push 0xa
mov dword [0x109c32c], eax
lea eax, [esp + 0x500]
push eax
lea ecx, [esp + 0x804]
push ecx
lea edx, [esp + 0x708]
push edx
lea eax, [esp + 0x60c]
push eax
push 1
mov ecx, 0x109bed0
call fcn.004f4a10
test al, al
jne 0x409dfd
push str.DB_gamedef_connect_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
push 0x3e8
mov dword [0x58798c], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004dbd00
mov bl, al
movzx ecx, bl
push ecx
push str.cmd_InitProductList_Result_d_1_ok__0_fail_
push edi
mov dword [0x58798c], 0
call fcn.0051a8cd
add esp, 0xc
mov ecx, 0x109bed0
call fcn.004f45a0
mov ecx, 0x109bed0
call fcn.004f47a0
test bl, bl
je case.0x40949f.27
mov edx, dword [0x587960]
add edx, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x587960]
add esi, 0x10
call fcn.0040eb30
test eax, eax
je 0x409e98
mov esi, 4
cmp dword [eax + 0x57f4], esi
jne 0x409e87
mov edi, eax
call fcn.004dc090
mov eax, dword [0x587960]
add eax, 0x10
call fcn.0040eb90
test eax, eax
jne 0x409e78
mov eax, dword [0x587960]
add eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.0x40949f.27
cmp dword [ebp + 0xc], 2
jne case.0x40949f.27
lea ecx, [ebx + 4]
push ecx
call fcn.0051ba99
add esp, 4
mov esi, eax
add ebx, 0x108
push ebx
mov dword [esp + 0x40], esi
call fcn.0051ba99
mov bl, al
add esp, 4
mov eax, esi
mov ecx, 0x587c68
call fcn.00408c00
mov esi, eax
test esi, esi
je case.0x40949f.27
movzx eax, byte [esi + 0x26]
mov ecx, dword [esp + 0x3c]
movzx edx, bl
push edx
push eax
push ecx
push str.cmd_aiset__d:_d___d__ok
push edi
call fcn.0051a8cd
add esp, 0x14
mov byte [esi + 0x26], bl
jmp case.0x40949f.27
cmp dword [ebp + 0xc], 4
je 0x409f2c
push str.cmd_killcnt_argument_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
lea eax, [ebx + 4]
push eax
mov dword [esp + 0x3c], eax
call fcn.0051ba99
mov dword [esp + 0x40], eax
dec eax
add esp, 4
cmp eax, 2
ja 0x40a0dc
lea eax, [ebx + 0x108]
push eax
mov dword [esp + 0x4c], eax
call fcn.0051ba99
add esp, 4
mov byte [esp + 0x37], al
cmp al, 0x18
jb 0x409f78
push str.cmd_killcnt_start_hour_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
lea eax, [ebx + 0x20c]
push eax
mov dword [esp + 0x48], eax
call fcn.0051ba99
add esp, 4
mov byte [esp + 0x36], al
test al, al
je 0x40a0c9
cmp al, 0x18
ja 0x40a0c9
add ebx, 0x310
push str.once
push ebx
mov dword [esp + 0x48], ebx
call fcn.0051b864
add esp, 8
test eax, eax
jne 0x409fe0
push str..dataServerCmd.ini
push 0x56fe4c
push str.Keep
push str.KillCount
mov dword [esi + 0x8c0], eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x40a060
mov edx, ebx
push str.keep
push edx
call fcn.0051b864
add esp, 8
test eax, eax
jne 0x409f19
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push str..dataServerCmd.ini
push 0x56fe6c
push str.Keep
push str.KillCount
mov dword [esi + 0x8c0], 1
call ebx
mov eax, dword [esp + 0x38]
push str..dataServerCmd.ini
push eax
push str.Value
push str.KillCount
call ebx
mov ecx, dword [esp + 0x48]
push str..dataServerCmd.ini
push ecx
push str.StartHour
push str.KillCount
call ebx
mov edx, dword [esp + 0x44]
push str..dataServerCmd.ini
push edx
push str.PeriodHour
push str.KillCount
call ebx
mov dl, byte [esp + 0x37]
mov cl, byte [esp + 0x36]
movzx ax, dl
movzx bx, cl
mov word [esi + 0x8c4], ax
add bx, ax
mov eax, dword [esp + 0x3c]
mov word [esi + 0x8c6], bx
mov dword [esi + 0x8c8], eax
mov dword [esi + 0x8bc], 1
mov esi, dword [esp + 0x40]
push esi
movzx ecx, cl
push ecx
movzx edx, dl
push edx
push eax
mov dword [0x5879b4], 0
push str.cmd_killcnt_ok___d___d___d___s
push edi
call fcn.0051a8cd
push 0
mov esi, edi
call fcn.00407b50
add esp, 0x1c
jmp case.0x40949f.27
push str.cmd_killcnt_period_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
push str.cmd_killcnt_value_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
push str..dataServerCmd.ini
push 0x56fe4c
xor ebx, ebx
push str.Keep
push str.KillCount
mov dword [0x5879b4], ebx
mov dword [esi + 0x8bc], ebx
mov dword [esi + 0x8c0], ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push str.cmd_killcntreset_ok
push edi
call fcn.0051a8cd
push ebx
mov esi, edi
call fcn.00407b50
add esp, 0xc
jmp case.0x40949f.27
cmp dword [ebp + 0xc], 5
jne 0x40a3dd
lea eax, [ebx + 4]
mov dword [esp + 0x38], eax
mov ecx, str.light
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40a170
test dl, dl
je 0x40a16c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40a170
add eax, 2
add ecx, 2
test dl, dl
jne 0x40a150
xor eax, eax
jmp 0x40a175
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40a17f
mov dword [esp + 0x4c], eax
jmp 0x40a1bd
mov eax, dword [esp + 0x38]
mov ecx, str.fury
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40a1a8
test dl, dl
je 0x40a1a4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40a1a8
add eax, 2
add ecx, 2
test dl, dl
jne 0x40a188
xor eax, eax
jmp 0x40a1ad
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40a3f0
mov dword [esp + 0x4c], 1
lea eax, [ebx + 0x108]
push eax
mov dword [esp + 0x4c], eax
call fcn.0051c136
fst qword [esp + 0x54]
fld1
add esp, 4
fcomp st(1)
fnstsw ax
test ah, 1
je 0x40a3db
fcomp qword [0x5741a0]
fnstsw ax
test ah, 0x41
je 0x40a3dd
lea eax, [ebx + 0x20c]
push eax
mov dword [esp + 0x48], eax
call fcn.0051ba99
add esp, 4
mov byte [esp + 0x37], al
cmp al, 0x18
jb 0x40a222
push str.cmd_expupcamp_start_hour_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
lea eax, [ebx + 0x310]
push eax
mov dword [esp + 0x44], eax
call fcn.0051ba99
add esp, 4
mov byte [esp + 0x36], al
test al, al
je 0x40a3c8
cmp al, 0x18
ja 0x40a3c8
mov eax, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0xc8]
push str.ExpUpCamp__d
push ecx
call fcn.0051a8cd
add esp, 0xc
add ebx, 0x414
push str.once
push ebx
mov dword [esp + 0x44], ebx
call fcn.0051b864
add esp, 8
test eax, eax
jne 0x40a2ac
mov ebx, dword [esp + 0x4c]
push str..dataServerCmd.ini
push 0x56fe4c
push str.Keep
lea edx, [esp + 0xd0]
push edx
mov dword [esi + ebx*4 + 0x8d4], eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x40a33f
push str.keep
push ebx
call fcn.0051b864
add esp, 8
test eax, eax
jne 0x40a3b5
mov eax, dword [esp + 0x4c]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push str..dataServerCmd.ini
push 0x56fe6c
push str.Keep
lea ecx, [esp + 0xd0]
push ecx
mov dword [esi + eax*4 + 0x8d4], 1
call ebx
mov edx, dword [esp + 0x48]
push str..dataServerCmd.ini
push edx
push str.Value
lea eax, [esp + 0xd0]
push eax
call ebx
mov ecx, dword [esp + 0x44]
push str..dataServerCmd.ini
push ecx
push str.StartHour
lea edx, [esp + 0xd0]
push edx
call ebx
mov eax, dword [esp + 0x40]
push str..dataServerCmd.ini
push eax
push str.PeriodHour
lea ecx, [esp + 0xd0]
push ecx
call ebx
mov ebx, dword [esp + 0x4c]
mov cl, byte [esp + 0x36]
fld qword [esp + 0x50]
movzx ax, byte [esp + 0x37]
movzx dx, cl
mov word [esi + ebx*2 + 0x8dc], ax
add dx, ax
mov eax, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
mov word [esi + ebx*2 + 0x8e0], dx
movzx edx, byte [esp + 0x3b]
fst qword [esi + ebx*8 + 0x8e4]
fld1
movzx ecx, cl
fstp qword [ebx*8 + 0x582768]
push ecx
push edx
sub esp, 8
mov dword [esi + ebx*4 + 0x8cc], 1
fstp qword [esp]
push eax
push str.cmd_expupcamp_ok___s__.2f___d___d___s
push edi
call fcn.0051a8cd
push 0
mov esi, edi
call fcn.00407b50
add esp, 0x24
jmp case.0x40949f.27
push str.cmd_expupcamp_argument_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
push str.cmd_expupcamp_period_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
fstp st(0)
push str.cmd_expupcamp_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
push str.cmd_expupcamp_error_country
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
fld1
push str..dataServerCmd.ini
fst qword [0x582768]
xor ebx, ebx
fstp qword [0x582770]
push 0x56fe4c
push str.Keep
mov dword [esi + 0x8cc], ebx
mov dword [esi + 0x8d0], ebx
mov dword [esi + 0x8d4], ebx
mov dword [esi + 0x8d8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push str.ExpUpCamp_0
call esi
push str..dataServerCmd.ini
push 0x56fe4c
push str.Keep
push str.ExpUpCamp_1
call esi
push str.cmd_expupcampreset_ok
jmp 0x40a122
cmp dword [ebp + 0xc], 4
je 0x40a480
push str.cmd_gemmix_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
lea eax, [ebx + 4]
push eax
mov dword [esp + 0x3c], eax
call fcn.0051ba99
mov dword [esp + 0x40], eax
dec eax
add esp, 4
cmp eax, 0x1d
ja 0x40a46d
lea eax, [ebx + 0x108]
push eax
mov dword [esp + 0x4c], eax
call fcn.0051ba99
add esp, 4
mov byte [esp + 0x36], al
cmp al, 0x18
jb 0x40a4c8
push str.cmd_gemmix_start_hour_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
lea eax, [ebx + 0x20c]
push eax
mov dword [esp + 0x48], eax
call fcn.0051ba99
add esp, 4
mov byte [esp + 0x37], al
test al, al
je 0x40a61a
cmp al, 0x18
ja 0x40a61a
add ebx, 0x310
push str.once
push ebx
mov dword [esp + 0x48], ebx
call fcn.0051b864
add esp, 8
test eax, eax
jne 0x40a530
push str..dataServerCmd.ini
push 0x56fe4c
push str.Keep
push str.GemAdd
mov dword [esi + 0x8f8], eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x40a5b0
mov ecx, ebx
push str.keep
push ecx
call fcn.0051b864
add esp, 8
test eax, eax
jne 0x40a607
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push str..dataServerCmd.ini
push 0x56fe6c
push str.Keep
push str.GemAdd
mov dword [esi + 0x8f8], 1
call ebx
mov edx, dword [esp + 0x38]
push str..dataServerCmd.ini
push edx
push str.Value
push str.GemAdd
call ebx
mov eax, dword [esp + 0x48]
push str..dataServerCmd.ini
push eax
push str.StartHour
push str.GemAdd
call ebx
mov ecx, dword [esp + 0x44]
push str..dataServerCmd.ini
push ecx
push str.PeriodHour
push str.GemAdd
call ebx
mov dl, byte [esp + 0x36]
mov cl, byte [esp + 0x37]
movzx ax, dl
movzx bx, cl
mov word [esi + 0x8fc], ax
add bx, ax
mov eax, dword [esp + 0x3c]
mov word [esi + 0x8fe], bx
mov dword [esi + 0x900], eax
mov dword [esi + 0x8f4], 1
mov esi, dword [esp + 0x40]
push esi
movzx ecx, cl
push ecx
movzx edx, dl
push edx
push eax
mov dword [0x5879b8], 0
push str.cmd_gemmix_ok___d___d___d___s
jmp 0x40a0b2
push str.cmd_gemmix_argument_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
push str.cmd_gemmix_period_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
cmp dword [ebp + 0xc], 4
je 0x40a646
push str.cmd_gemext_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
lea eax, [ebx + 4]
push eax
mov dword [esp + 0x3c], eax
call fcn.0051ba99
mov dword [esp + 0x40], eax
dec eax
add esp, 4
cmp eax, 0x1d
ja 0x40a633
lea eax, [ebx + 0x108]
push eax
mov dword [esp + 0x4c], eax
call fcn.0051ba99
add esp, 4
mov byte [esp + 0x36], al
cmp al, 0x18
jb 0x40a68e
push str.cmd_gemext_start_hour_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
lea eax, [ebx + 0x20c]
push eax
mov dword [esp + 0x48], eax
call fcn.0051ba99
add esp, 4
mov byte [esp + 0x37], al
test al, al
je 0x40a7e0
cmp al, 0x18
ja 0x40a7e0
add ebx, 0x310
push str.once
push ebx
mov dword [esp + 0x48], ebx
call fcn.0051b864
add esp, 8
test eax, eax
jne 0x40a6f6
push str..dataServerCmd.ini
push 0x56fe4c
push str.Keep
push str.GemRem
mov dword [esi + 0x908], eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x40a776
mov eax, ebx
push str.keep
push eax
call fcn.0051b864
add esp, 8
test eax, eax
jne 0x40a7cd
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push str..dataServerCmd.ini
push 0x56fe6c
push str.Keep
push str.GemRem
mov dword [esi + 0x908], 1
call ebx
mov ecx, dword [esp + 0x38]
push str..dataServerCmd.ini
push ecx
push str.Value
push str.GemRem
call ebx
mov edx, dword [esp + 0x48]
push str..dataServerCmd.ini
push edx
push str.StartHour
push str.GemRem
call ebx
mov eax, dword [esp + 0x44]
push str..dataServerCmd.ini
push eax
push str.PeriodHour
push str.GemRem
call ebx
mov dl, byte [esp + 0x36]
mov cl, byte [esp + 0x37]
movzx ax, dl
movzx bx, cl
mov word [esi + 0x90c], ax
add bx, ax
mov eax, dword [esp + 0x3c]
mov word [esi + 0x90e], bx
mov dword [esi + 0x910], eax
mov dword [esi + 0x904], 1
mov esi, dword [esp + 0x40]
push esi
movzx ecx, cl
push ecx
movzx edx, dl
push edx
push eax
mov dword [0x5879bc], 0
push str.cmd_gemext_ok___d___d___d___s
jmp 0x40a0b2
push str.cmd_gemext_argument_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
push str.cmd_gemext_period_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
push str..dataServerCmd.ini
xor ebx, ebx
push 0x56fe4c
push str.Keep
mov dword [esi + 0x8f4], ebx
mov dword [esi + 0x8f8], ebx
mov dword [esi + 0x904], ebx
mov dword [esi + 0x908], ebx
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push str.GemAdd
mov dword [0x5879b8], ebx
mov dword [0x5879bc], ebx
call esi
push str..dataServerCmd.ini
push 0x56fe4c
push str.Keep
push str.GemRem
call esi
push str.cmd_gemreset_ok
jmp 0x40a122
add ebx, 4
push ebx
call fcn.0051ba99
add esp, 4
push eax
mov dword [0x582784], eax
push str.cmd_resetstatcnt_ok___d
push edi
call fcn.0051a8cd
add esp, 0xc
push 0
mov esi, edi
call fcn.00407b50
add esp, 4
jmp case.0x40949f.27
add ebx, 4
push ebx
call fcn.0051ba99
add esp, 4
push eax
mov dword [0x582788], eax
push str.cmd_resetskillcnt_ok___d
jmp 0x40a86c
cmp dword [ebp + 0xc], 4
jne 0x40aa8a
lea eax, [ebx + 4]
push eax
mov dword [esp + 0x3c], eax
call fcn.0051c136
fst qword [esp + 0x54]
fld1
add esp, 4
fcomp st(1)
fnstsw ax
test ah, 1
je 0x40aa88
fcomp qword [0x574198]
fnstsw ax
test ah, 0x41
je 0x40aa8a
lea eax, [ebx + 0x108]
push eax
mov dword [esp + 0x4c], eax
call fcn.0051ba99
add esp, 4
mov byte [esp + 0x36], al
cmp al, 0x18
jb 0x40a90b
push str.cmd_enchant_start_hour_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
lea eax, [ebx + 0x20c]
push eax
mov dword [esp + 0x48], eax
call fcn.0051ba99
add esp, 4
mov byte [esp + 0x37], al
test al, al
je 0x40aa75
cmp al, 0x18
ja 0x40aa75
add ebx, 0x310
push str.once
push ebx
mov dword [esp + 0x48], ebx
call fcn.0051b864
add esp, 8
test eax, eax
jne 0x40a973
push str..dataServerCmd.ini
push 0x56fe4c
push str.Keep
push str.EnchantAdd
mov dword [esi + 0x918], eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x40a9f3
mov eax, ebx
push str.keep
push eax
call fcn.0051b864
add esp, 8
test eax, eax
jne 0x40aa62
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push str..dataServerCmd.ini
push 0x56fe6c
push str.Keep
push str.EnchantAdd
mov dword [esi + 0x918], 1
call ebx
mov ecx, dword [esp + 0x38]
push str..dataServerCmd.ini
push ecx
push str.Value
push str.EnchantAdd
call ebx
mov edx, dword [esp + 0x48]
push str..dataServerCmd.ini
push edx
push str.StartHour
push str.EnchantAdd
call ebx
mov eax, dword [esp + 0x44]
push str..dataServerCmd.ini
push eax
push str.PeriodHour
push str.EnchantAdd
call ebx
mov dl, byte [esp + 0x36]
fld qword [esp + 0x50]
mov cl, byte [esp + 0x37]
fst qword [esi + 0x924]
fld1
movzx ax, dl
movzx bx, cl
fstp qword [0x582790]
add bx, ax
mov word [esi + 0x91c], ax
mov eax, dword [esp + 0x40]
push eax
movzx ecx, cl
push ecx
movzx edx, dl
push edx
sub esp, 8
mov word [esi + 0x91e], bx
mov dword [esi + 0x914], 1
fstp qword [esp]
push str.cmd_enchant_ok___.2f___d___d___s
push edi
call fcn.0051a8cd
add esp, 0x1c
push 0
mov esi, edi
call fcn.00407b50
add esp, 4
jmp case.0x40949f.27
push str.cmd_enchant_argument_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
push str.cmd_enchant_period_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
fstp st(0)
push str.cmd_enchant_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
fld1
push str..dataServerCmd.ini
push 0x56fe4c
fstp qword [0x582790]
xor ebx, ebx
push str.Keep
push str.EnchantAdd
mov dword [esi + 0x914], ebx
mov dword [esi + 0x918], ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push str.cmd_enchantreset_ok
jmp 0x40a122
cmp dword [ebp + 0xc], 7
jne 0x40ae4f
lea eax, [ebx + 4]
push eax
call fcn.0051ba99
mov ecx, dword [0x587960]
add esp, 4
cmp eax, dword [ecx + 8]
mov dword [esp + 0x38], eax
jge 0x40ae4f
imul eax, eax, 0x208
add eax, dword [ecx + 0xc]
mov dword [esp + 0x60], eax
je 0x40ae4f
lea eax, [ebx + 0x108]
push eax
mov dword [esp + 0x4c], eax
call fcn.0051c136
fst qword [esp + 0x54]
fld1
add esp, 4
fcomp st(1)
fnstsw ax
test ah, 1
je 0x40ae4d
fcomp qword [0x5741a0]
fnstsw ax
test ah, 0x41
je 0x40ae4f
lea eax, [ebx + 0x20c]
push eax
mov dword [esp + 0x48], eax
call fcn.0051ba99
add esp, 4
mov byte [esp + 0x37], al
cmp al, 0x18
jb 0x40ab78
push str.cmd_expupmap_start_hour_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
lea eax, [ebx + 0x310]
push eax
mov dword [esp + 0x44], eax
call fcn.0051ba99
add esp, 4
mov byte [esp + 0x36], al
test al, al
je 0x40ae3a
cmp al, 0x18
ja 0x40ae3a
lea ecx, [ebx + 0x518]
push ecx
call fcn.0051ba99
movzx eax, ax
add esp, 4
mov dword [esp + 0x58], eax
cmp ax, 6
jbe 0x40abce
push str.cmd_expupmap_dayofweek_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
lea eax, [ebx + 0x61c]
push eax
mov dword [esp + 0x50], eax
call fcn.0051ba99
movzx eax, ax
add esp, 4
mov dword [esp + 0x5c], eax
test ax, ax
je 0x40ae27
cmp ax, 7
ja 0x40ae27
movzx eax, word [esp + 0x58]
push eax
lea edx, [esp + 0xe8]
push 0x57025c
push edx
mov dword [esp + 0x70], eax
call fcn.0051a8cd
mov eax, dword [esp + 0x44]
add esp, 0xc
push eax
lea ecx, [esp + 0xc8]
push str.ExpUpMap__d
push ecx
call fcn.0051a8cd
add esp, 0xc
add ebx, 0x414
push str.once
push ebx
call fcn.0051b864
add esp, 8
test eax, eax
jne 0x40ac70
push str..dataServerCmd.ini
push 0x56fe4c
push str.Keep
lea edx, [esp + 0xd0]
push edx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x40ad31
push str.keep
push ebx
call fcn.0051b864
add esp, 8
test eax, eax
jne 0x40ae14
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push str..dataServerCmd.ini
push 0x56fe6c
push str.Keep
lea eax, [esp + 0xd0]
push eax
mov dword [esp + 0x4c], 1
call ebx
mov ecx, dword [esp + 0x48]
push str..dataServerCmd.ini
push ecx
push str.Value
lea edx, [esp + 0xd0]
push edx
call ebx
mov eax, dword [esp + 0x44]
push str..dataServerCmd.ini
push eax
push str.StartHour
lea ecx, [esp + 0xd0]
push ecx
call ebx
mov edx, dword [esp + 0x40]
push str..dataServerCmd.ini
push edx
push str.PeriodHour
lea eax, [esp + 0xd0]
push eax
call ebx
mov ecx, dword [esp + 0x4c]
push str..dataServerCmd.ini
push ecx
push str.Term
lea edx, [esp + 0xd0]
push edx
call ebx
push str..dataServerCmd.ini
lea eax, [esp + 0xe8]
push eax
push str.DayOfWeek
lea ecx, [esp + 0xd0]
push ecx
call ebx
mov ebx, dword [esp + 0x3c]
lea edx, [esp + 0x38]
add esi, 0x92c
push edx
call fcn.0040e630
test eax, eax
jne 0x40ad76
push 0x28
call fcn.0051b26b
add esp, 4
test eax, eax
je 0x40ad74
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
jmp 0x40ad76
xor eax, eax
mov ecx, dword [esp + 0x38]
fld qword [esp + 0x50]
mov edx, dword [esp + 0x60]
fstp qword [eax + 0x18]
fld1
mov dword [eax + 0xc], ebx
movzx bx, byte [esp + 0x36]
mov dword [eax + 4], ecx
movzx cx, byte [esp + 0x37]
add bx, cx
mov dword [eax + 8], edx
mov word [eax + 0x12], bx
mov ebx, dword [esp + 0x5c]
mov word [eax + 0x10], cx
push eax
fstp qword [edx + 0x1f0]
mov dx, word [esp + 0x5c]
mov dword [eax], 1
mov word [eax + 0x20], bx
mov word [eax + 0x22], dx
lea eax, [esp + 0x3c]
push eax
call fcn.0040e540
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x40]
fld qword [esp + 0x50]
movzx ecx, bx
push ecx
movzx ecx, byte [esp + 0x3a]
push edx
movzx edx, byte [esp + 0x3f]
push eax
mov eax, dword [esp + 0x44]
push ecx
push edx
sub esp, 8
fstp qword [esp]
push eax
push str.cmd_expupmap_ok___d___.2f___d___d___s___d___d
push edi
call fcn.0051a8cd
push 0
mov esi, edi
call fcn.00407b50
add esp, 0x2c
jmp case.0x40949f.27
push str.cmd_expupmap_argument_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
push str.cmd_expupmap_term_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
push str.cmd_expupmap_period_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
fstp st(0)
push str.cmd_expupmap_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
cmp dword [ebp + 0xc], 1
je 0x40ae7b
push str.cmd_expupmapreset_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
add ebx, 4
push ebx
call fcn.0051ba99
mov ecx, dword [0x587960]
add esp, 4
cmp eax, dword [ecx + 8]
mov dword [esp + 0x58], eax
jge 0x40ae68
imul eax, eax, 0x208
add eax, dword [ecx + 0xc]
mov ebx, eax
je 0x40ae68
lea ecx, [esp + 0x58]
push ecx
add esi, 0x92c
call fcn.0040e630
test eax, eax
je 0x40ae68
mov esi, dword [esp + 0x58]
fld1
push esi
fstp qword [ebx + 0x1f0]
lea edx, [esp + 0xc8]
push str.ExpUpMap__d
push edx
mov dword [eax], 0
mov dword [eax + 0xc], 0
call fcn.0051a8cd
add esp, 0xc
push str..dataServerCmd.ini
push 0x56fe4c
push str.Keep
lea eax, [esp + 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push esi
push str.cmd_expupmapreset_ok__Map_d
jmp 0x40a86c
cmp dword [ebp + 0xc], 1
je 0x40af27
push str.cmd_addsr_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
add ebx, 4
push ebx
call fcn.0051c136
fstp dword [0x5879c0]
fld dword [0x5879c0]
push ecx
fstp qword [esp]
push str.cmd_addsr_ok___.2f
jmp 0x40b3cb
cmp dword [ebp + 0xc], 7
je 0x40af63
push str.cmd_killupmap_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
lea ecx, [ebx + 4]
push ecx
call fcn.0051ba99
mov ecx, dword [0x587960]
add esp, 4
cmp eax, dword [ecx + 8]
mov dword [esp + 0x38], eax
jge 0x40af50
imul eax, eax, 0x208
add eax, dword [ecx + 0xc]
mov dword [esp + 0x60], eax
je 0x40af50
lea eax, [ebx + 0x108]
push eax
mov dword [esp + 0x4c], eax
call fcn.0051ba99
mov dword [esp + 0x40], eax
dec eax
add esp, 4
cmp eax, 2
ja 0x40b2a8
lea eax, [ebx + 0x20c]
push eax
mov dword [esp + 0x48], eax
call fcn.0051ba99
add esp, 4
mov byte [esp + 0x37], al
cmp al, 0x18
jb 0x40afdc
push str.cmd_killupmap_start_hour_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
lea eax, [ebx + 0x310]
push eax
mov dword [esp + 0x44], eax
call fcn.0051ba99
add esp, 4
mov byte [esp + 0x36], al
test al, al
je 0x40b295
cmp al, 0x18
ja 0x40b295
lea edx, [ebx + 0x518]
push edx
call fcn.0051ba99
movzx eax, ax
add esp, 4
mov dword [esp + 0x5c], eax
cmp ax, 6
jbe 0x40b032
push str.cmd_killupmap_dayofweek_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
lea eax, [ebx + 0x61c]
push eax
mov dword [esp + 0x50], eax
call fcn.0051ba99
movzx eax, ax
add esp, 4
mov dword [esp + 0x58], eax
test ax, ax
je 0x40b282
cmp ax, 7
ja 0x40b282
movzx eax, word [esp + 0x5c]
push eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0xe8]
push 0x57025c
push eax
call fcn.0051a8cd
mov ecx, dword [esp + 0x44]
add esp, 0xc
push ecx
lea edx, [esp + 0xc8]
push str.KillUpMap__d
push edx
call fcn.0051a8cd
add esp, 0xc
add ebx, 0x414
push str.once
push ebx
call fcn.0051b864
add esp, 8
test eax, eax
jne 0x40b0d4
push str..dataServerCmd.ini
push 0x56fe4c
push str.Keep
lea eax, [esp + 0xd0]
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x40b195
push str.keep
push ebx
call fcn.0051b864
add esp, 8
test eax, eax
jne 0x40b26f
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push str..dataServerCmd.ini
push 0x56fe6c
push str.Keep
lea ecx, [esp + 0xd0]
push ecx
mov dword [esp + 0x74], 1
call ebx
mov edx, dword [esp + 0x48]
push str..dataServerCmd.ini
push edx
push str.Value
lea eax, [esp + 0xd0]
push eax
call ebx
mov ecx, dword [esp + 0x44]
push str..dataServerCmd.ini
push ecx
push str.StartHour
lea edx, [esp + 0xd0]
push edx
call ebx
mov eax, dword [esp + 0x40]
push str..dataServerCmd.ini
push eax
push str.PeriodHour
lea ecx, [esp + 0xd0]
push ecx
call ebx
mov edx, dword [esp + 0x4c]
push str..dataServerCmd.ini
push edx
push str.Term
lea eax, [esp + 0xd0]
push eax
call ebx
push str..dataServerCmd.ini
lea ecx, [esp + 0xe8]
push ecx
push str.DayOfWeek
lea edx, [esp + 0xd0]
push edx
call ebx
mov ebx, dword [esp + 0x64]
lea eax, [esp + 0x38]
add esi, 0x974
push eax
call fcn.0040e9a0
test eax, eax
jne 0x40b1d1
push 0x1c
call fcn.0051b26b
add esp, 4
test eax, eax
je 0x40b1cf
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
jmp 0x40b1d1
xor eax, eax
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x60]
mov dword [eax + 0xc], ebx
movzx bx, byte [esp + 0x36]
mov dword [eax + 4], ecx
movzx cx, byte [esp + 0x37]
mov word [eax + 0x10], cx
add bx, cx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 8], edx
mov word [eax + 0x12], bx
mov ebx, dword [esp + 0x58]
mov dword [eax + 0x14], ecx
mov dword [edx + 0x1f8], 0
mov dx, word [esp + 0x5c]
push eax
mov dword [eax], 1
mov word [eax + 0x18], bx
mov word [eax + 0x1a], dx
lea eax, [esp + 0x3c]
push eax
call fcn.0040e8b0
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x40]
movzx ecx, bx
push ecx
movzx ecx, byte [esp + 0x3a]
push edx
movzx edx, byte [esp + 0x3f]
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
push ecx
push str.cmd_killupmap_ok___d___d___d___d___s___d___d
push edi
call fcn.0051a8cd
add esp, 0x24
push 0
mov esi, edi
call fcn.00407b50
add esp, 4
jmp case.0x40949f.27
push str.cmd_killupmap_argument_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
push str.cmd_killupmap_term_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
push str.cmd_killupmap_period_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
push str.cmd_killupmap_value_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
cmp dword [ebp + 0xc], 1
je 0x40b2d4
push str.cmd_killupmapreset_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
add ebx, 4
push ebx
call fcn.0051ba99
mov ecx, dword [0x587960]
add esp, 4
cmp eax, dword [ecx + 8]
mov dword [esp + 0x3c], eax
jge 0x40b2c1
imul eax, eax, 0x208
add eax, dword [ecx + 0xc]
mov ebx, eax
je 0x40b2c1
lea edx, [esp + 0x3c]
push edx
add esi, 0x974
call fcn.0040e9a0
xor ecx, ecx
cmp eax, ecx
je 0x40b2c1
mov esi, dword [esp + 0x3c]
mov dword [ebx + 0x1f8], ecx
push esi
mov dword [eax], ecx
mov dword [eax + 0xc], ecx
lea eax, [esp + 0xc8]
push str.KillUpMap__d
push eax
call fcn.0051a8cd
add esp, 0xc
push str..dataServerCmd.ini
push 0x56fe4c
push str.Keep
lea ecx, [esp + 0xd0]
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push esi
push str.cmd_killupmapreset_ok__Map_d
jmp 0x40a86c
cmp dword [ebp + 0xc], 2
je 0x40b375
push str.cmd_servertime_error
push edi
call fcn.0051a8cd
add esp, 8
jmp case.0x40949f.27
lea edx, [ebx + 4]
push edx
call fcn.0051ba99
add esp, 4
add ebx, 0x108
push ebx
mov esi, eax
call fcn.0051ba99
add esp, 4
mov ebx, eax
push 0xa
lea ecx, [esp + 0xe8]
mov eax, 0x81b
push ecx
mov ecx, dword [0x587968]
mov word [esp + 0xec], ax
mov dword [esp + 0xee], esi
mov dword [esp + 0xf2], ebx
call fcn.004ed2d0
push ebx
push esi
push str.cmd_servertime_ok__Hour_d__Min_d
push edi
call fcn.0051a8cd
add esp, 0x10
mov ecx, dword [esp + 0x8fc]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.0051a8be
mov esp, ebp
pop ebp
ret 0x10