Function at 0x40ab80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x6ac4
call fcn.005ba830
push ebx
push esi
push edi
push 1
call fcn.005ace20
mov eax, dword [0x6f3558]
mov esi, dword [ebp + 0x10]
add esp, 4
cmp eax, 4
jne 0x40aca2
xor eax, eax
mov ecx, 0x400
lea edi, [esp + 0xad0]
lea edx, [esp + 0xad0]
rep stosd dword es:[edi], eax
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x40abd0
xor eax, eax
mov ecx, 0x1400
lea edi, [esp + 0x1ad0]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xad0]
push 0x6a94f4
push eax
call fcn.005bb6f0
add esp, 8
xor edi, edi
test eax, eax
je 0x40ac3d
lea esi, [esp + 0x1ad0]
lea esp, [esp]
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x40ac14
push 0x6a94f4
push 0
call fcn.005bb6f0
add esp, 8
inc edi
add esi, 0x1000
test eax, eax
jne 0x40ac10
cmp edi, 4
jge 0x40ac44
push 0
call fcn.005bb6b0
xor eax, eax
jmp 0x40ac50
mov cl, byte [esp + eax + 0x3ad0]
mov byte [eax + 0x705f18], cl
inc eax
test cl, cl
jne 0x40ac50
xor eax, eax
jmp 0x40ac70
mov cl, byte [esp + eax + 0x4ad0]
mov byte [eax + 0x705ef4], cl
inc eax
test cl, cl
jne 0x40ac70
xor eax, eax
jmp 0x40ac90
mov cl, byte [esp + eax + 0x5ad0]
mov byte [eax + 0x705924], cl
inc eax
test cl, cl
jne 0x40ac90
mov eax, dword [0x6f3558]
test eax, eax
jne 0x40ad71
push 0
push 0x10
lea ecx, [esp + 0x8c8]
push ecx
push 0
call dword [0x6a841c]
test eax, eax
je 0x40ad71
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x9c8]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x8c0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ace5
sub eax, edx
lea edx, [eax - 1]
test edx, edx
jl 0x40ad03
mov al, 0x5c
cmp byte [esp + edx + 0x8c0], al
je 0x40ad03
dec edx
jns 0x40acf7
lea eax, [esp + 0x8c0]
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ad10
sub eax, esi
mov ecx, eax
sub ecx, edx
lea esi, [esp + edx + 0x8c1]
mov edx, ecx
shr ecx, 2
lea edi, [esp + 0x9c8]
rep movsd dword es:[edi], dword [esi]
push 4
mov ecx, edx
lea eax, [esp + 0x9cc]
and ecx, 3
push 0x6a94ec
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.005bb4f0
add esp, 0xc
test eax, eax
jne 0x40ad71
push eax
push str.Error___
push str.Korea_Version
push eax
call dword [0x6a8560]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [0x6f3558], 3
mov ebx, dword [0x6a831c]
mov esi, dword [0x6a8320]
jne 0x40af59
xor eax, eax
mov ecx, 0x200
lea edi, [esp + 0xad0]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xad0]
push ecx
push 0x800
call ebx
lea edx, [esp + 0xad0]
push edx
lea eax, [esp + 0xc4]
push str._sDataItemItem.SData
push eax
call fcn.005baa1d
add esp, 0xc
lea ecx, [esp + 0xc0]
push ecx
call esi
lea edx, [esp + 0xad0]
push edx
lea eax, [esp + 0xc4]
push str._sDataNpcNpcQuest.SData
push eax
call fcn.005baa1d
add esp, 0xc
lea ecx, [esp + 0xc0]
push ecx
call esi
lea edx, [esp + 0xad0]
push edx
lea eax, [esp + 0xc4]
push str._sServerSequenceItemCreate.ini
push eax
call fcn.005baa1d
add esp, 0xc
lea ecx, [esp + 0xc0]
push ecx
call esi
lea edx, [esp + 0xad0]
push edx
lea eax, [esp + 0xc4]
push str._sServerItemDataExport_UNICODE.txt
push eax
call fcn.005baa1d
add esp, 0xc
lea ecx, [esp + 0xc0]
push ecx
call esi
lea edx, [esp + 0xad0]
push edx
lea eax, [esp + 0xc4]
push str._sServerGuildHouse.ini
push eax
call fcn.005baa1d
add esp, 0xc
lea ecx, [esp + 0xc0]
push ecx
call esi
lea edx, [esp + 0xad0]
push edx
lea eax, [esp + 0xc4]
push str._sServerVersion.txt
push eax
call fcn.005baa1d
add esp, 0xc
lea ecx, [esp + 0xc0]
push ecx
call esi
lea edx, [esp + 0xad0]
push edx
lea eax, [esp + 0xc4]
push str._sServer.zip
push eax
call fcn.005baa1d
add esp, 0xc
lea ecx, [esp + 0xc0]
push ecx
call esi
lea edx, [esp + 0xad0]
push edx
push str._sServer
lea eax, [esp + 0xc8]
push eax
call fcn.005baa1d
lea ecx, [esp + 0xcc]
push ecx
call fcn.005bb4ba
lea edx, [esp + 0xae0]
push edx
lea eax, [esp + 0xd4]
push str._sDataItem
push eax
call fcn.005baa1d
lea ecx, [esp + 0xdc]
push ecx
call fcn.005bb4ba
lea edx, [esp + 0xaf0]
push edx
lea eax, [esp + 0xe4]
push str._sDataNpc
push eax
call fcn.005baa1d
lea ecx, [esp + 0xec]
push ecx
call fcn.005bb4ba
lea edx, [esp + 0xb00]
push edx
lea eax, [esp + 0xf4]
push str._sData
push eax
call fcn.005baa1d
lea ecx, [esp + 0xfc]
push ecx
call fcn.005bb4ba
add esp, 0x40
call fcn.0040cd60
push str.data_filter.txt
mov ecx, 0x7094e0
call fcn.0040a8c0
push 0x4c
call fcn.005b9e72
add esp, 4
test eax, eax
je 0x40af84
mov ecx, eax
call fcn.0041d850
jmp 0x40af86
xor eax, eax
xor edx, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov dword [0x705818], eax
cmp dword [0x2237f84], 5
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
jb 0x40afbd
mov eax, dword [str.Global_]
mov ecx, dword [0x6a93d4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
lea edi, [esp + 0x18]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40afc2
mov edx, dword [str.Shaiya]
mov ax, word [0x6a8c14]
mov cl, byte [0x6a8c16]
mov dword [edi], edx
lea edx, [esp + 0x18]
push edx
push 0
mov word [edi + 4], ax
push 0
mov byte [edi + 6], cl
call dword [0x6a8324]
call dword [0x6a835c]
cmp eax, 0xb7
jmp 0x40b00f
mov edi, dword [0x6a84f8]
push str.Shaiya
push 0x6a8bac
call edi
test eax, eax
jmp 0x40b055
mov esi, dword [ebp + 0x10]
push 0xb
push str.new_updater
push esi
call fcn.005bb4f0
add esp, 0xc
test eax, eax
jne 0x40b34b
call fcn.0040cfa0
xor esi, esi
push esi
push str.new_updater.exe
call fcn.005bb474
mov ebx, dword [0x6a8360]
add esp, 8
cmp eax, 0xffffffff
jne 0x40b0b5
inc esi
cmp esi, 0xa
jg 0x40b24f
push 0x3e8
call ebx
push 0
push str.new_updater.exe
call fcn.005bb474
add esp, 8
cmp eax, 0xffffffff
je 0x40b090
push str.Shaiya_Updater
push str.32770
xor esi, esi
call edi
test eax, eax
je 0x40b0e4
inc esi
cmp esi, 0xa
jg 0x40b0e4
push 0x3e8
call ebx
push str.Shaiya_Updater
push str.32770
call edi
test eax, eax
jne 0x40b0c7
push str.Shaiya_Updater
push str.32770
call edi
test eax, eax
je 0x40b196
push str.Shaiya_Updater
push str.32770
call edi
test eax, eax
je 0x40b15c
jmp 0x40b110
push str.Shaiya_Updater
push str.32770
call edi
lea edx, [esp + 0x14]
push edx
push eax
call dword [0x6a84fc]
mov eax, dword [esp + 0x14]
push eax
push 0
push 0x1f0fff
call dword [0x6a8364]
mov esi, eax
push 0
push esi
call dword [0x6a8368]
push esi
call dword [0x6a83c0]
push str.Shaiya_Updater
push str.32770
call edi
test eax, eax
jne 0x40b110
push 0x3e8
call ebx
push str.Shaiya_Updater
push str.32770
xor esi, esi
call edi
test eax, eax
je 0x40b196
inc esi
cmp esi, 0xa
jg 0x40b28e
push 0x3e8
call ebx
push str.Shaiya_Updater
push str.32770
call edi
test eax, eax
jne 0x40b175
mov esi, dword [0x6a8320]
push str.Updater.exe
xor edi, edi
call esi
test eax, eax
jne 0x40b1cc
lea esp, [esp]
inc edi
cmp edi, 0xa
jg 0x40b2cd
push 0x3e8
call ebx
push str.Updater.exe
call esi
test eax, eax
je 0x40b1b0
push str.Updater.exe
push str.new_updater.exe
xor esi, esi
call fcn.005bb446
add esp, 8
test eax, eax
je 0x40b20b
inc esi
cmp esi, 0xa
jg 0x40b30c
push 0x3e8
call ebx
push str.Updater.exe
push str.new_updater.exe
call fcn.005bb446
add esp, 8
test eax, eax
jne 0x40b1e4
push 0x1f4
call ebx
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x44]
push edx
push eax
push eax
push eax
push 1
push eax
push eax
push 0x6a9378
push eax
mov dword [esp + 0x68], 0x44
call dword [0x6a836c]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x2748
call fcn.0041b840
push eax
lea eax, [esp + 0xc8]
push str._s_e01
push eax
call fcn.005baa1d
add esp, 0x10
push 0
push 0
lea ecx, [esp + 0xc8]
push ecx
push 0
call dword [0x6a8560]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x2748
call fcn.0041b840
push eax
lea ecx, [esp + 0xc8]
push str._s_e02
push ecx
call fcn.005baa1d
add esp, 0x10
push 0
push 0
lea edx, [esp + 0xc8]
push edx
push 0
call dword [0x6a8560]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x2748
call fcn.0041b840
push eax
lea eax, [esp + 0xc8]
push str._s_e03
push eax
call fcn.005baa1d
add esp, 0x10
push 0
push 0
lea ecx, [esp + 0xc8]
push ecx
push 0
call dword [0x6a8560]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x2748
call fcn.0041b840
push eax
lea edx, [esp + 0xc8]
push str._s_e04
push edx
call fcn.005baa1d
add esp, 0x10
push 0
push 0
lea eax, [esp + 0xc8]
push eax
push 0
call dword [0x6a8560]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0xa
push str.start_game
push esi
call fcn.005bb4f0
add esp, 0xc
test eax, eax
jmp 0x40b409
push str.ijl15.dll
call fcn.00409040
add esp, 4
cmp eax, 0x5b000
je 0x40b47e
cmp dword [0x6f3558], 2
push 0
push 0x6a86ac
jmp 0x40b45d
push 0x2736
call fcn.0041b840
add esp, 4
push eax
push 0
call dword [0x6a8560]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.00408590
mov eax, dword [0x6f3558]
mov edi, 1
cmp eax, edi
jne 0x40b4ac
push 0x705db0
lea eax, [esp + 0x44]
push eax
mov ecx, eax
push ecx
push str._s__s__s
push esi
call fcn.005ba7fb
add esp, 0x14
call fcn.00408f00
test eax, eax
jne 0x40b51f
cmp dword [0x6f3558], 2
push 0x10
push str.ERROR___
jne 0x40b4fa
call fcn.005359b0
add esp, 4
push eax
push 0x2736
call fcn.0041b840
push eax
call fcn.005359b0
mov edx, dword [0x705f3c]
add esp, 8
push eax
push edx
call dword [0x6a8558]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x2736
call fcn.0041b840
add esp, 4
push eax
mov eax, dword [0x705f3c]
push eax
call dword [0x6a8560]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.00408f90
cmp dword [0x6f3558], edi
jne 0x40b67f
xor eax, eax
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0xc0]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc0]
push ecx
xor esi, esi
push 0x400
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
call ebx
lea edx, [esp + 0xc]
push edx
push 0xf003f
push esi
push str.SOFTWARESONOVShaiya
push 0x80000002
call dword [0x6a8018]
cmp eax, esi
mov edi, dword [0x6a8020]
je 0x40b5fe
lea eax, [esp + 0x10]
push eax
push str.SOFTWARESONOVShaiya
push 0x80000002
call dword [0x6a800c]
lea eax, [esp + 0xc0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b5a1
sub eax, edx
mov edx, dword [esp + 0x10]
push eax
lea ecx, [esp + 0xc4]
push ecx
push 1
push 0x6a92fc
push edx
call dword [0x6a8010]
lea eax, [esp + 0xc0]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b5d0
mov ecx, dword [esp + 0x10]
sub eax, edx
push eax
lea eax, [esp + 0xc4]
push eax
push 1
push esi
push 0x6a92fc
push ecx
call dword [0x6a8014]
mov edx, dword [esp + 0x10]
push edx
call edi
jmp 0x40b674
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc4]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
push 0x6a92fc
push eax
mov dword [esp + 0x2c], esi
call dword [0x6a801c]
lea eax, [esp + 0xc0]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b630
sub eax, edx
cmp eax, 1
jae 0x40b674
mov esi, dword [esp + 0xc]
test esi, esi
je 0x40b67f
lea eax, [esp + 0xc0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b650
sub eax, edx
push eax
lea ecx, [esp + 0xc4]
push ecx
push 1
push 0
push 0x6a92fc
push esi
call dword [0x6a8014]
xor esi, esi
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x40b67f
push eax
call edi
call fcn.00407010
test eax, eax
je 0x40b952
mov eax, dword [0x6f355c]
mov ebx, dword [0x6f3560]
mov edx, dword [ebp + 8]
mov dword [0x6f3564], eax
mov dword [0x6f356c], eax
xor edi, edi
mov dword [esp + 0x10], eax
cmp dword [0x705f44], edi
mov dword [0x705f40], edx
mov dword [0x6f3568], ebx
mov dword [0x6f3570], ebx
mov dword [esp + 0xc], edi
je 0x40b6d5
mov dword [esp + 0x14], 0x90000000
jmp 0x40b768
mov esi, dword [0x6a853c]
push 0
mov dword [esp + 0x18], 0x90840000
call esi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [0x6f355c]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub ecx, eax
push 1
mov dword [esp + 0x10], ecx
call esi
cdq
sub eax, edx
mov edi, eax
mov eax, dword [0x6f3560]
cdq
sub eax, edx
sar eax, 1
sar edi, 1
push 4
sub edi, eax
call esi
cdq
sub eax, edx
sar eax, 1
push 0x20
sub edi, eax
call esi
mov ecx, dword [0x6f355c]
lea edx, [ecx + eax*2]
push 0x21
mov dword [esp + 0x14], edx
call esi
push 4
mov ebx, eax
call esi
add eax, dword [0x6f3560]
lea ebx, [eax + ebx*2]
mov eax, dword [esp + 0xc]
test eax, eax
jge 0x40b75c
push 0
mov dword [esp + 0x10], 0
call esi
mov dword [esp + 0x10], eax
test edi, edi
jge 0x40b768
push 1
xor edi, edi
call esi
mov ebx, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
push ebx
push eax
push edi
push ecx
push edx
call fcn.00409a90
add esp, 0x14
call dword [0x6a8588]
push eax
call fcn.005bb054
add esp, 4
call fcn.0040a0e0
test eax, eax
jne 0x40b7ae
call fcn.004093f0
call fcn.004093d0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x705f64]
test eax, eax
je 0x40b7c5
mov eax, dword [0x705f3c]
push eax
call fcn.0056dc30
add esp, 4
mov ecx, dword [0x705f3c]
push 0xa
push ecx
call dword [0x6a8524]
mov edx, dword [0x705f3c]
push edx
call dword [0x6a8500]
mov eax, dword [0x705f3c]
push eax
call dword [0x6a8538]
push 1
call fcn.00405840
fstp st(0)
push 0
call dword [0x6a8518]
cmp dword [0x6f3558], 2
mov dword [0x705eec], 0x40ba40
je 0x40b81b
mov dword [0x705eec], 0x408ff0
xor esi, esi
lea ecx, [ecx]
call dword [0x705eec]
test eax, eax
jne 0x40b820
push 5
call fcn.00405840
fstp dword [0x705f50]
cmp dword [0x705f60], esi
je 0x40b852
push 1
call fcn.00405840
fstp dword [0x705f54]
mov dword [0x705f60], esi
push 6
call fcn.00405840
fst dword [0x705f54]
fcomp dword [0x6a867c]
fnstsw ax
test ah, 0x41
jp 0x40b876
mov dword [0x705f54], 0x3d4ccccd
mov eax, dword [0x6f3558]
cmp eax, 1
je 0x40b88a
cmp eax, 4
je 0x40b88a
cmp eax, 8
jne 0x40b8a7
fld dword [0x705f54]
fcomp dword [0x6a92f8]
fnstsw ax
test ah, 0x41
jne 0x40b8a7
mov dword [0x705f54], 0x3dcccccd
fld dword [0x6f3580]
fsub dword [0x705f54]
fst dword [0x6f3580]
fcomp dword [0x6a867c]
fnstsw ax
test ah, 5
jp 0x40b8d0
mov dword [0x6f3580], 0
cmp dword [0x705f48], esi
je 0x40b90f
cmp dword [0x705f4c], esi
je 0x40b90f
mov eax, dword [0x21f3f98]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, 0x88760869
jne 0x40b820
mov ecx, 0x21f3fa0
call fcn.0052e140
test eax, eax
je 0x40b931
mov dword [0x705f4c], esi
jmp 0x40b820
call fcn.00406d40
test eax, eax
je 0x40b931
cmp dword [0x705f68], esi
jne 0x40b820
call fcn.0042bc70
test eax, eax
jne 0x40b820
call fcn.004093f0
call fcn.004093d0
call fcn.0040cfa0
call fcn.005acce0
push 5
push str.Ending.exe
call dword [0x6a8370]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10