Function at 0x412f1a
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.00412f1a
xor esi, esi
xor edi, edi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0
mov edx, str.76011800000001000000
call fcn.0047881c
push 0
mov ebx, esp
call fcn.004779f9
call fcn.0040e7f6
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
je 0x4130dc
mov edx, 0x47fe60
call fcn.0047881c
push 0
mov ebx, esp
call fcn.004779f9
call fcn.0046d783
mov eax, 0x1388
call fcn.00473a9b
cmp dword [0x47c760], 0
jne 0x412fd2
mov dword [0x47c760], 1
lea ebx, [ebp - 0xa0]
push ebx
push dword [0x47c770]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
fldcw word [ebp - 0x10]
push dword [ebp - 0xa0]
push dword [0x47c770]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
fldcw word [ebp - 0x10]
push dword [0x47c770]
call dword [sym.imp.KERNEL32_CloseHandle]
fldcw word [ebp - 0x10]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea ebx, [ebp - 0xa4]
push ebx
mov edx, 0x47fe84
call fcn.0047881c
push 0
mov ebx, esp
call fcn.004779f9
call fcn.0040f0cd
test eax, eax
jne 0x41301c
push 0
push 0x1d
call fcn.00409f55
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
je 0x413021
jmp 0x41304e
mov edx, str.76011800000001000000
call fcn.0047881c
push 0
mov ebx, esp
call fcn.004779f9
call fcn.00409ba4
mov eax, 0xbb8
call fcn.00473a9b
push dword [0x47c734]
call sym..exe_UNNPCFUNC
mov eax, 0x2710
call fcn.00473a9b
nop
nop
nop
nop
nop
nop
nop
nop
push 6
call fcn.00408d35
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jne 0x41308a
push dword [0x47c734]
call sym..exe_SWHCFUNC
mov eax, 0x2710
call fcn.00473a9b
jmp 0x413060
push 2
call fcn.00409467
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jne 0x412fe0
mov eax, 0x1388
call fcn.00473a9b
cmp dword [0x47c760], 1
jne 0x4130d7
mov dword [0x47c760], 0
mov ecx, 0x46c210
push ecx
push 0
push 0x100000
push 0
mov ebx, 0x47c770
call fcn.0046eee2
jmp 0x413723
push 1
lea ebx, [ebp - 0x9c]
mov dword [ebx], edi
push ebx
mov edx, 0x47fc50
call fcn.0047881c
push 0
mov ebx, esp
call fcn.004779f9
call fcn.00415d89
mov edi, dword [ebp - 0x9c]
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jne 0x413180
push 0x78
call fcn.00409e5c
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jge 0x413180
mov edx, 0x47fe94
call fcn.0047881c
push 0
mov ebx, esp
call fcn.004779f9
call fcn.0046d783
nop
nop
nop
nop
mov edx, 0x47fc50
call fcn.0047881c
push 0
mov ebx, esp
call fcn.004779f9
call fcn.004160d5
mov eax, 0x3a98
call fcn.00473a9b
push 2
call fcn.00409467
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jne 0x413140
mov eax, 0x2710
call fcn.00473a9b
jmp 0x413723
push 1
lea ebx, [ebp - 0x9c]
mov dword [ebx], edi
push ebx
mov edx, 0x47fc50
call fcn.0047881c
push 0
mov ebx, esp
call fcn.004779f9
call fcn.00415d89
mov edi, dword [ebp - 0x9c]
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jne 0x413270
push 0
mov edx, str.76010600000001000000
call fcn.0047881c
push 0
mov ebx, esp
call fcn.004779f9
call fcn.0040e7f6
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jle 0x413270
push 0x78
call fcn.00409e5c
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jl 0x413270
mov edx, 0x47fe94
call fcn.0047881c
push 0
mov ebx, esp
call fcn.004779f9
call fcn.0046d783
mov edx, str.76010600000001000000
call fcn.0047881c
push 0
mov ebx, esp
call fcn.004779f9
call fcn.00409ba4
mov eax, 0x3a98
call fcn.00473a9b
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, 0x47fc50
call fcn.0047881c
push 0
mov ebx, esp
call fcn.004779f9
call fcn.004160d5
mov eax, 0x3a98
call fcn.00473a9b
push 2
call fcn.00409467
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jne 0x413230
mov eax, 0x2710
call fcn.00473a9b
jmp 0x413723
push 0
mov edx, str.Win_QuestKf
call fcn.0047881c
push 0
mov ebx, esp
call fcn.004779f9
call fcn.0040e7f6
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jle 0x4132f0
mov edx, 0x47fec4
call fcn.0047881c
push 0
mov ebx, esp
call fcn.004779f9
call fcn.0046d783
nop
nop
mov edx, str.Win_QuestKf
call fcn.0047881c
push 0
mov ebx, esp
call fcn.004779f9
call fcn.00409ba4
mov eax, 0x3a98
call fcn.00473a9b
push 2
call fcn.00409467
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jne 0x4132b0
mov eax, 0x2710
call fcn.00473a9b
jmp 0x413723
push 0
mov edx, str.76010600000001000000
call fcn.0047881c
push 0
mov ebx, esp
call fcn.004779f9
call fcn.0040e7f6
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jle 0x413723
push 0x78
call fcn.00409e5c
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jl 0x413723
mov edx, 0x47fef0
call fcn.0047881c
push 0
mov ebx, esp
call fcn.004779f9
call fcn.0046d783
mov edx, str.76010600000001000000
call fcn.0047881c
push 0
mov ebx, esp
call fcn.004779f9
call fcn.00409ba4
mov eax, 0x3a98
call fcn.00473a9b
cmp dword [0x47c760], 0
jne 0x4133b4
mov dword [0x47c760], 1
lea ebx, [ebp - 0xa0]
push ebx
push dword [0x47c770]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
fldcw word [ebp - 0x10]
push dword [ebp - 0xa0]
push dword [0x47c770]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
fldcw word [ebp - 0x10]
push dword [0x47c770]
call dword [sym.imp.KERNEL32_CloseHandle]
fldcw word [ebp - 0x10]
push 0
mov edx, 0x47ff14
call fcn.0047881c
push 0
mov ebx, esp
call fcn.004779f9
call fcn.004153ae
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
je 0x413478
fild dword [0x487820]
fchs
sub esp, 4
mov ebx, esp
fstp dword [ebx]
fild dword [0x48781c]
fchs
sub esp, 4
mov ebx, esp
fstp dword [ebx]
call fcn.004128c7
nop
nop
nop
mov edx, 0x47ff14
call fcn.0047881c
push 0
mov ebx, esp
call fcn.004779f9
call fcn.00415509
mov eax, 0x2710
call fcn.00473a9b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 6
call fcn.00408d35
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jne 0x41345a
push dword [0x47c734]
call sym..exe_SWHCFUNC
mov eax, 0x2710
call fcn.00473a9b
jmp 0x413430
push 2
call fcn.00409467
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jne 0x413400
mov eax, 0x1388
call fcn.00473a9b
jmp 0x4136e9
fild dword [0x487824]
fchs
sub esp, 4
mov ebx, esp
fstp dword [ebx]
fild dword [0x487650]
fchs
sub esp, 4
mov ebx, esp
fstp dword [ebx]
call fcn.004128c7
push 0
mov edx, 0x47ff14
call fcn.0047881c
push 0
mov ebx, esp
call fcn.004779f9
call fcn.004153ae
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
je 0x413548
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, 0x47ff14
call fcn.0047881c
push 0
mov ebx, esp
call fcn.004779f9
call fcn.00415509
mov eax, 0x2710
call fcn.00473a9b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 6
call fcn.00408d35
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jne 0x41352a
push dword [0x47c734]
call sym..exe_SWHCFUNC
mov eax, 0x2710
call fcn.00473a9b
jmp 0x413500
push 2
call fcn.00409467
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jne 0x4134d0
mov eax, 0x1388
call fcn.00473a9b
jmp 0x4136e9
fild dword [0x48782c]
fchs
sub esp, 4
mov ebx, esp
fstp dword [ebx]
fild dword [0x487828]
fchs
sub esp, 4
mov ebx, esp
fstp dword [ebx]
call fcn.004128c7
fild dword [0x487834]
fchs
sub esp, 4
mov ebx, esp
fstp dword [ebx]
fild dword [0x487830]
fchs
sub esp, 4
mov ebx, esp
fstp dword [ebx]
call fcn.004128c7
push 0
mov edx, 0x47ff14
call fcn.0047881c
push 0
mov ebx, esp
call fcn.004779f9
call fcn.004153ae
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
je 0x413638
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, 0x47ff14
call fcn.0047881c
push 0
mov ebx, esp
call fcn.004779f9
call fcn.00415509
mov eax, 0x2710
call fcn.00473a9b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 6
call fcn.00408d35
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jne 0x41361a
push dword [0x47c734]
call sym..exe_SWHCFUNC
mov eax, 0x2710
call fcn.00473a9b
jmp 0x4135f0
push 2
call fcn.00409467
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jne 0x4135c0
mov eax, 0x1388
call fcn.00473a9b
jmp 0x4136e9
fild dword [0x48781c]
fchs
sub esp, 4
mov ebx, esp
fstp dword [ebx]
fild dword [0x48781c]
fchs
sub esp, 4
mov ebx, esp
fstp dword [ebx]
call fcn.004128c7
fild dword [0x487838]
fchs
sub esp, 4
mov ebx, esp
fstp dword [ebx]
fild dword [0x48781c]
fchs
sub esp, 4
mov ebx, esp
fstp dword [ebx]
call fcn.004128c7
fild dword [0x487840]
fchs
sub esp, 4
mov ebx, esp
fstp dword [ebx]
fild dword [0x48783c]
fchs
sub esp, 4
mov ebx, esp
fstp dword [ebx]
call fcn.004128c7
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 6
call fcn.00408d35
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jne 0x4136da
push dword [0x47c734]
call sym..exe_SWHCFUNC
mov eax, 0x2710
call fcn.00473a9b
jmp 0x4136b0
push 2
call fcn.00409467
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jne 0x4136b0
mov eax, 0x1388
call fcn.00473a9b
cmp dword [0x47c760], 1
jne 0x413723
mov dword [0x47c760], 0
mov ecx, 0x46c210
push ecx
push 0
push 0x100000
push 0
mov ebx, 0x47c770
call fcn.0046eee2
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret