Function at 0x487e40
Capabilities:
Copy file
Create process on windows
Delete file
Get file size
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bdf1e
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x4de57c]
xor eax, esp
mov dword [esp + 0x168], eax
push ebx
push esi
push edi
mov eax, dword [0x4de57c]
xor eax, esp
push eax
lea eax, [esp + 0x180]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x2c], edi
mov ebx, ecx
mov dword [esp + 0x174], 0xf
mov dword [esp + 0x170], edi
mov byte [esp + 0x160], 0
cmp byte [ebx + 0xd5b4], 0
mov dword [esp + 0x188], edi
jne 0x487ee4
cmp dword [ebx + 0xd58c], 2
je 0x487ee4
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x3c], esp
push 0x4c39f8
lea ecx, [ebx + 0xd538]
push ecx
push eax
call fcn.00416030
add esp, 0xc
lea ecx, [ebx + 0xd594]
call fcn.0046b1c0
mov edx, dword [ebx + 0xd5a8]
mov eax, dword [edx + 4]
lea esi, [ebx + 0xd5a4]
push eax
mov ecx, esi
call fcn.0042ffb0
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], edi
mov dword [eax], eax
mov esi, dword [esi + 4]
lea ecx, [ebx + 0x28]
mov dword [esi + 8], esi
mov dword [esp + 0x4c], edi
call fcn.0047cce0
test eax, eax
jbe 0x48850c
mov ecx, dword [esp + 0x4c]
push ecx
lea ecx, [ebx + 0x28]
call fcn.0047cc90
push 0xffffffffffffffff
xor edi, edi
push edi
push eax
lea ecx, [esp + 0x12c]
mov dword [esp + 0x144], 0xf
mov dword [esp + 0x140], edi
mov byte [esp + 0x130], 0
call fcn.00401cf0
lea edx, [esp + 0x120]
push edx
lea eax, [ebx + 0xd538]
push eax
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x194], 1
call fcn.00425df0
push 0x4c1054
push eax
lea ecx, [esp + 0x150]
push ecx
mov byte [esp + 0x1a0], 2
call fcn.00416030
mov eax, dword [esp + 0x158]
add esp, 0x18
cmp dword [esp + 0x154], 0x10
jae 0x487fb3
lea eax, [esp + 0x140]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x487fe5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10
cmp dword [esp + 0x154], esi
jb 0x488003
mov edx, dword [esp + 0x140]
push edx
call fcn.0048d433
add esp, 4
cmp dword [esp + 0x48], esi
mov dword [esp + 0x154], 0xf
mov dword [esp + 0x150], 0
mov byte [esp + 0x140], 0
mov byte [esp + 0x188], 1
jb 0x48803c
mov eax, dword [esp + 0x34]
push eax
call fcn.0048d433
add esp, 4
mov ecx, dword [esp + 0x4c]
push ecx
lea esi, [ebx + 0x28]
mov ecx, esi
call fcn.0047cc90
cmp dword [eax + 0x1c], 0xf4240
jbe 0x4880c5
mov edi, dword [esp + 0x4c]
push edi
mov ecx, esi
call fcn.0047cc90
mov edx, dword [eax + 0x1c]
sub edx, 0xf4240
push edi
mov ecx, esi
mov dword [esp + 0x28], edx
call fcn.0047cc90
mov eax, dword [eax + 0x1c]
lea ecx, [esp + 0x24]
sub eax, 0xf4240
push ecx
lea ecx, [ebx + 0xc]
mov dword [esp + 0x24], eax
call fcn.004877b0
push eax
lea edx, [esp + 0x24]
push edx
mov ecx, ebx
call fcn.004877b0
mov ecx, eax
call fcn.00486340
cmp dword [esp + 0x138], 0x10
mov byte [esp + 0x188], 0
jb 0x4884f1
mov eax, dword [esp + 0x124]
push eax
jmp 0x4884e9
test edi, edi
jle 0x488435
mov ecx, dword [esp + 0x134]
push 0xa
push str.xunyou.exe
push ecx
push 0
lea ecx, [esp + 0x130]
call fcn.0041bc70
test eax, eax
je 0x48817d
mov edx, dword [esp + 0x4c]
push edx
mov ecx, esi
call fcn.0047cc90
cmp dword [eax + 0x1c], 0xf4240
jae 0x48817d
mov eax, dword [esp + 0x124]
mov esi, 0x10
cmp dword [esp + 0x138], esi
jae 0x488123
lea eax, [esp + 0x124]
push eax
lea ecx, [ebx + 0x6ab0]
call fcn.0041be30
test eax, eax
jge 0x488155
cmp dword [esp + 0x138], esi
mov byte [esp + 0x188], 0
jb 0x4884f1
mov eax, dword [esp + 0x124]
push eax
jmp 0x4884e9
imul eax, eax, 0x88
cmp dword [eax + ebx + 0x6b48], edi
je 0x48817d
lea ecx, [esp + 0x120]
mov byte [esp + 0x188], 0
call fcn.00401cb0
jmp 0x4884f1
lea ecx, [esp + 0x120]
push ecx
lea edi, [ebx + 0xd538]
lea edx, [esp + 0x34]
push edi
push edx
call fcn.00425df0
mov esi, eax
lea eax, [esp + 0x12c]
push eax
lea ecx, [esp + 0x14c]
push edi
push ecx
mov byte [esp + 0x1a0], 3
call fcn.00425df0
push 0x4c1054
push eax
lea edx, [esp + 0x124]
push edx
mov byte [esp + 0x1ac], 4
call fcn.00416030
mov edi, 0x10
add esp, 0x24
cmp dword [esi + 0x18], edi
jb 0x4881e3
mov esi, dword [esi + 4]
jmp 0x4881e6
add esi, 4
cmp dword [eax + 0x18], edi
jb 0x4881f0
mov eax, dword [eax + 4]
jmp 0x4881f3
add eax, 4
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
sete byte [esp + 0x1f]
cmp dword [esp + 0x11c], edi
jb 0x48821d
mov eax, dword [esp + 0x108]
push eax
call fcn.0048d433
add esp, 4
xor esi, esi
cmp dword [esp + 0x154], edi
mov dword [esp + 0x11c], 0xf
mov dword [esp + 0x118], esi
mov byte [esp + 0x108], 0
jb 0x488252
mov ecx, dword [esp + 0x140]
push ecx
call fcn.0048d433
add esp, 4
cmp dword [esp + 0x48], edi
mov dword [esp + 0x154], 0xf
mov dword [esp + 0x150], esi
mov byte [esp + 0x140], 0
mov byte [esp + 0x188], 1
jb 0x488287
mov edx, dword [esp + 0x34]
push edx
call fcn.0048d433
add esp, 4
cmp byte [esp + 0x1f], 0
je 0x4882e1
push 0x4c39f4
lea eax, [esp + 0x124]
push eax
lea ecx, [esp + 0x38]
push ecx
mov dword [ebx + 0xd558], esi
mov byte [ebx + 0xd554], 1
call fcn.00416030
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [esp + 0x168]
mov byte [esp + 0x194], 5
call fcn.00415a20
cmp dword [esp + 0x48], edi
jb 0x4884cf
mov edx, dword [esp + 0x34]
push edx
jmp 0x4884c7
mov eax, dword [esp + 0x4c]
push eax
lea ecx, [ebx + 0x28]
call fcn.0047cc90
cmp dword [eax + 0x1c], 0xf4240
jae 0x4884cf
mov ecx, dword [esp + 0x4c]
push ecx
lea ecx, [ebx + 0x28]
call fcn.0047cc90
cmp dword [esp + 0x138], edi
mov eax, dword [esp + 0x124]
jae 0x48831f
lea eax, [esp + 0x124]
lea edi, [ebx + 0x38]
push eax
mov ecx, edi
call fcn.0041be30
cmp dword [esp + 0x138], 0x10
mov esi, eax
mov eax, dword [esp + 0x124]
jae 0x488344
lea eax, [esp + 0x124]
push eax
lea ecx, [ebx + 0x6ab0]
call fcn.0041be30
test esi, esi
jge 0x48835d
mov esi, dword [ebx + 0x48]
lea edx, [esi + 1]
mov dword [ebx + 0x48], edx
add eax, 0xc9
imul esi, esi, 0x88
imul eax, eax, 0x88
add eax, ebx
push eax
lea ecx, [esi + ebx + 0x50]
call fcn.004857b0
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x3c], esp
push str._verinfo.ini
lea esi, [ebx + 0xd538]
push esi
push eax
call fcn.00416030
add esp, 0xc
mov ecx, edi
call fcn.0047f8f0
lea ecx, [esp + 0x120]
push ecx
lea edx, [esp + 0x34]
push esi
push edx
call fcn.00425df0
push 0x4c1054
push eax
lea eax, [esp + 0x118]
push eax
mov byte [esp + 0x1a0], 6
call fcn.00416030
add esp, 0x18
cmp dword [eax + 0x18], 0x10
jb 0x4883db
mov eax, dword [eax + 4]
jmp 0x4883de
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, 0x10
cmp dword [esp + 0x11c], esi
jb 0x488403
mov ecx, dword [esp + 0x108]
push ecx
call fcn.0048d433
add esp, 4
cmp dword [esp + 0x48], esi
mov dword [esp + 0x11c], 0xf
mov dword [esp + 0x118], 0
mov byte [esp + 0x108], 0
jb 0x4884cf
mov edx, dword [esp + 0x34]
push edx
jmp 0x4884c7
lea eax, [esp + 0x120]
push eax
lea eax, [ebx + 0xd538]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00425df0
push 0x4c1054
push eax
lea edx, [esp + 0x118]
push edx
mov byte [esp + 0x1a0], 7
call fcn.00416030
mov esi, 0x10
add esp, 0x18
cmp dword [eax + 0x18], esi
jb 0x48847b
mov eax, dword [eax + 4]
jmp 0x48847e
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x11c], esi
jb 0x48849e
mov eax, dword [esp + 0x108]
push eax
call fcn.0048d433
add esp, 4
cmp dword [esp + 0x48], esi
mov dword [esp + 0x11c], 0xf
mov dword [esp + 0x118], 0
mov byte [esp + 0x108], 0
jb 0x4884cf
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0048d433
add esp, 4
cmp dword [esp + 0x138], 0x10
mov byte [esp + 0x188], 0
jb 0x4884f1
mov edx, dword [esp + 0x124]
push edx
call fcn.0048d433
add esp, 4
mov esi, dword [esp + 0x4c]
add esi, 1
lea ecx, [ebx + 0x28]
mov dword [esp + 0x4c], esi
call fcn.0047cce0
cmp esi, eax
jb 0x487f23
lea ecx, [esp + 0x4c]
call fcn.00469d90
push 0x40000000
lea eax, [esp + 0x34]
push 2
push eax
mov byte [esp + 0x194], 8
call fcn.0046a740
push str.config
push eax
lea ecx, [esp + 0x118]
push ecx
mov byte [esp + 0x1a0], 9
call fcn.00416030
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x44], esp
push str.gamelist.txt
push eax
push edx
mov byte [esp + 0x1b8], 0xa
call fcn.00416030
add esp, 0xc
lea ecx, [esp + 0x70]
call fcn.0046a400
test eax, eax
mov esi, 0x10
sete byte [esp + 0x1f]
cmp dword [esp + 0x11c], esi
jb 0x488597
mov eax, dword [esp + 0x108]
push eax
call fcn.0048d433
add esp, 4
cmp dword [esp + 0x48], esi
mov dword [esp + 0x11c], 0xf
mov dword [esp + 0x118], 0
mov byte [esp + 0x108], 0
mov byte [esp + 0x188], 8
jb 0x4885d0
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0048d433
add esp, 4
cmp byte [esp + 0x1f], 0
je 0x488611
mov ecx, ebx
call fcn.00485830
mov edx, dword [ebx + 0xd55c]
push 0
push 0
push 0x24d2
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x188], 0
call fcn.0046a260
cmp dword [esp + 0x174], esi
jmp 0x488ee5
cmp byte [ebx + 0xd5b4], 0
mov eax, dword [ebx + 4]
mov esi, dword [eax]
mov edi, ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], edi
jne 0x488822
lea ecx, [ecx]
test edi, edi
mov ecx, dword [ebx + 4]
mov dword [esp + 0x124], ecx
je 0x488642
cmp edi, ebx
je 0x488647
call fcn.0048ed51
cmp esi, dword [esp + 0x124]
je 0x488ac2
mov dword [esp + 0x5c], 0x4bfc34
mov dword [esp + 0x64], 0x4bfc2c
mov dword [esp + 0xb0], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
or dword [esp + 0x2c], 1
push 0
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x64]
mov byte [esp + 0x190], 0xb
call fcn.00410f20
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x5c], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea ecx, [esp + 0x68]
mov dword [esp + 0x188], 0xc
call fcn.0040d8a0
xor eax, eax
mov dword [esp + 0x68], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
cmp edi, eax
mov byte [esp + 0x188], 0xe
jne 0x4886d8
call fcn.0048ed51
cmp esi, dword [edi + 4]
jne 0x4886e2
call fcn.0048ed51
mov edx, dword [esi + 0xc]
push edx
lea ecx, [esp + 0x68]
call fcn.0042b700
lea eax, [esp + 0x64]
push 0x4bf8a4
push eax
call fcn.0042c6b0
add esp, 8
cmp esi, dword [edi + 4]
jne 0x48870b
call fcn.0048ed51
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48872c
mov ecx, dword [esi + 0x18]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x488731
call fcn.0048ed51
mov edx, dword [esi + 0x14]
push edx
lea eax, [esp + 0x68]
push eax
call fcn.00486530
lea ecx, [esp + 0x6c]
push 0x4bf8a4
push ecx
call fcn.0042c6b0
add esp, 0x10
cmp esi, dword [edi + 4]
jne 0x48875b
call fcn.0048ed51
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48877f
mov ecx, dword [esi + 0x18]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
ja 0x488784
call fcn.0048ed51
mov edx, dword [esi + 0x14]
add edx, 0x1c
push edx
lea eax, [esp + 0x68]
push eax
call fcn.00486530
add esp, 8
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x60]
call fcn.0040f880
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x188], 0xf
jb 0x4887bd
mov eax, dword [eax + 4]
jmp 0x4887c0
add eax, 4
push eax
lea ecx, [esp + 0x50]
call fcn.00469dc0
cmp dword [esp + 0x48], esi
jb 0x4887dd
mov edx, dword [esp + 0x34]
push edx
call fcn.0048d433
add esp, 4
lea ecx, [esp + 0xb0]
mov byte [esp + 0x188], 8
call fcn.0040ea50
lea eax, [esp + 0xb0]
push eax
mov dword [esp + 0xb4], vtable.std::ios_base.0
call fcn.0048cc6e
add esp, 4
lea ecx, [esp + 0x24]
call fcn.004463c0
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
jmp 0x488630
mov eax, dword [ebx + 0x10]
mov eax, dword [eax]
lea edi, [ebx + 0xc]
mov esi, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
test edi, edi
mov ecx, dword [ebx + 0x10]
lea eax, [ebx + 0xc]
mov dword [esp + 0x124], ecx
je 0x488849
cmp edi, eax
je 0x48884e
call fcn.0048ed51
cmp esi, dword [esp + 0x124]
je 0x488a29
mov dword [esp + 0x5c], 0x4bfc34
mov dword [esp + 0x64], 0x4bfc2c
mov dword [esp + 0xb0], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
or dword [esp + 0x2c], 2
push 0
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x64]
mov byte [esp + 0x190], 0x10
call fcn.00410f20
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x5c], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea ecx, [esp + 0x68]
mov dword [esp + 0x188], 0x11
call fcn.0040d8a0
xor eax, eax
mov dword [esp + 0x68], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
cmp edi, eax
mov byte [esp + 0x188], 0x13
jne 0x4888df
call fcn.0048ed51
cmp esi, dword [edi + 4]
jne 0x4888e9
call fcn.0048ed51
mov edx, dword [esi + 0xc]
push edx
lea ecx, [esp + 0x68]
call fcn.0042b700
lea eax, [esp + 0x64]
push 0x4bf8a4
push eax
call fcn.0042c6b0
add esp, 8
cmp esi, dword [edi + 4]
jne 0x488912
call fcn.0048ed51
mov eax, dword [esi + 0x14]
test eax, eax
je 0x488933
mov ecx, dword [esi + 0x18]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x488938
call fcn.0048ed51
mov edx, dword [esi + 0x14]
push edx
lea eax, [esp + 0x68]
push eax
call fcn.00486530
lea ecx, [esp + 0x6c]
push 0x4bf8a4
push ecx
call fcn.0042c6b0
add esp, 0x10
cmp esi, dword [edi + 4]
jne 0x488962
call fcn.0048ed51
mov eax, dword [esi + 0x14]
test eax, eax
je 0x488986
mov ecx, dword [esi + 0x18]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
ja 0x48898b
call fcn.0048ed51
mov edx, dword [esi + 0x14]
add edx, 0x1c
push edx
lea eax, [esp + 0x68]
push eax
call fcn.00486530
add esp, 8
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x60]
call fcn.0040f880
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x188], 0x14
jb 0x4889c4
mov eax, dword [eax + 4]
jmp 0x4889c7
add eax, 4
push eax
lea ecx, [esp + 0x50]
call fcn.00469dc0
cmp dword [esp + 0x48], esi
jb 0x4889e4
mov edx, dword [esp + 0x34]
push edx
call fcn.0048d433
add esp, 4
lea ecx, [esp + 0xb0]
mov byte [esp + 0x188], 8
call fcn.0040ea50
lea eax, [esp + 0xb0]
push eax
mov dword [esp + 0xb4], vtable.std::ios_base.0
call fcn.0048cc6e
add esp, 4
lea ecx, [esp + 0x24]
call fcn.004463c0
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
jmp 0x488834
push 0x4c39d0
lea ecx, [ebx + 0xd538]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00416030
push str.newgamelist.txt
push eax
lea eax, [esp + 0x118]
push eax
mov byte [esp + 0x1a0], 0x15
call fcn.00416030
mov edi, 0x10
add esp, 0x18
cmp dword [eax + 0x18], edi
jb 0x488a6c
mov eax, dword [eax + 4]
jmp 0x488a6f
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x11c], edi
jb 0x488a8f
mov ecx, dword [esp + 0x108]
push ecx
call fcn.0048d433
add esp, 4
cmp dword [esp + 0x48], edi
mov dword [esp + 0x11c], 0xf
mov dword [esp + 0x118], 0
mov byte [esp + 0x108], 0
jb 0x488ac7
mov edx, dword [esp + 0x34]
push edx
call fcn.0048d433
add esp, 4
jmp 0x488ac7
mov edi, 0x10
lea ecx, [esp + 0x4c]
mov byte [esp + 0x188], 0
call fcn.0046a260
cmp dword [ebx + 0xd558], 0
je 0x488b57
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0xd508]
push eax
lea ecx, [ebx + 0x6a90]
call fcn.00401cf0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push str._verinfo.ini
lea esi, [ebx + 0xd538]
push esi
push ecx
call fcn.00416030
add esp, 0xc
lea ecx, [ebx + 0x38]
call fcn.0047f8f0
push str.verinfo_.ini
lea edx, [esp + 0x34]
push esi
push edx
call fcn.00416030
add esp, 0xc
cmp dword [eax + 0x18], edi
jb 0x488b3a
mov eax, dword [eax + 4]
jmp 0x488b3d
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x48], edi
jb 0x488b57
mov eax, dword [esp + 0x34]
push eax
call fcn.0048d433
add esp, 4
cmp byte [ebx + 0xd554], 0
je 0x488e99
push 0x40
lea ecx, [esp + 0x64]
push 0
push ecx
call fcn.0048ea70
lea eax, [ebx + 0xd538]
push eax
lea edx, [esp + 0x40]
push 0x4c39ac
push edx
mov dword [esp + 0x74], 0x44
call fcn.00426d90
push str.update.exe_
push eax
lea eax, [esp + 0x108]
push eax
mov byte [esp + 0x1ac], 0x16
call fcn.00416030
lea ecx, [esp + 0x180]
push ecx
push eax
lea edx, [esp + 0x130]
push edx
mov byte [esp + 0x1b8], 0x17
call fcn.00425df0
push str._restart
push eax
lea eax, [esp + 0x174]
push eax
mov byte [esp + 0x1c4], 0x18
call fcn.00416030
add esp, 0x3c
cmp dword [esp + 0x11c], edi
jb 0x488c00
mov ecx, dword [esp + 0x108]
push ecx
call fcn.0048d433
add esp, 4
mov esi, 0xf
mov dword [esp + 0x11c], esi
mov dword [esp + 0x118], 0
mov byte [esp + 0x108], 0
cmp dword [esp + 0x100], edi
jb 0x488c38
mov edx, dword [esp + 0xec]
push edx
call fcn.0048d433
add esp, 4
mov dword [esp + 0x100], esi
mov dword [esp + 0xfc], 0
mov byte [esp + 0xec], 0
cmp dword [esp + 0x48], edi
mov byte [esp + 0x188], 0x1c
jb 0x488c6d
mov eax, dword [esp + 0x34]
push eax
call fcn.0048d433
add esp, 4
mov edx, dword [esp + 0x150]
lea ecx, [esp + 0x1f]
push ecx
add edx, 1
push edx
lea ecx, [esp + 0x128]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
mov byte [esp + 0x27], 0
call fcn.00486090
mov esi, dword [esp + 0x124]
test esi, esi
mov byte [esp + 0x188], 0x1d
jne 0x488cba
xor edi, edi
jmp 0x488cc3
mov edi, dword [esp + 0x128]
sub edi, esi
cmp dword [esp + 0x154], 0x10
jb 0x488cda
mov eax, dword [esp + 0x140]
mov dword [esp + 0x2c], eax
jmp 0x488ce5
lea ecx, [esp + 0x140]
mov dword [esp + 0x2c], ecx
test esi, esi
je 0x488cf4
mov edx, dword [esp + 0x128]
sub edx, esi
jne 0x488cf9
call fcn.0048ed51
mov eax, dword [esp + 0x2c]
push edi
push eax
push esi
call fcn.004904b0
add esp, 0xc
cmp byte [ebx + 0xd56c], 0
jne 0x488d6f
test esi, esi
je 0x488d20
mov eax, dword [esp + 0x128]
sub eax, esi
jne 0x488d25
call fcn.0048ed51
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x60]
push edx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esp + 0x4c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0x50]
push ecx
call edi
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x488e6a
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x160]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push edx
mov byte [ecx + 4], 0
call fcn.00401cf0
lea eax, [esp + 0x120]
push eax
call fcn.0046f480
add esp, 0x20
lea ecx, [esp + 0x24]
mov byte [esp + 0x188], 0x1e
call fcn.00469d90
push 0x40000000
push 2
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push str._startCommand.txt
lea eax, [ebx + 0xd538]
push eax
push ecx
mov byte [esp + 0x1b8], 0x1f
call fcn.00416030
add esp, 0xc
lea ecx, [esp + 0x48]
call fcn.0046a400
test eax, eax
je 0x488e29
cmp dword [esp + 0x11c], 0x10
mov eax, dword [esp + 0x108]
jae 0x488e0e
lea eax, [esp + 0x108]
mov edx, dword [esp + 0x118]
push edx
push eax
lea ecx, [esp + 0x2c]
call fcn.00469da0
lea ecx, [esp + 0x24]
call fcn.00469f20
mov eax, dword [ebx + 0xd55c]
push 0
push 0
push 0x24d1
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x24]
mov byte [esp + 0x188], 0x1e
call fcn.0046a260
cmp dword [esp + 0x11c], 0x10
jb 0x488e6a
mov ecx, dword [esp + 0x108]
push ecx
call fcn.0048d433
add esp, 4
test esi, esi
je 0x488e77
push esi
call fcn.0048d433
add esp, 4
cmp dword [esp + 0x154], 0x10
mov byte [esp + 0x188], 0
jb 0x488e99
mov edx, dword [esp + 0x140]
push edx
call fcn.0048d433
add esp, 4
xor eax, eax
cmp byte [ebx + 0xd5b4], al
lea ecx, [ebx + 0x18]
setne al
mov edi, eax
call fcn.0047cce0
mov esi, eax
push 0
lea ecx, [ebx + 0x28]
sub esi, edi
call fcn.0047cce0
mov edx, dword [ebx + 0xd55c]
xor ecx, ecx
cmp eax, esi
sete cl
push ecx
push 0x24d2
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, ebx
call fcn.00485140
cmp dword [esp + 0x174], 0x10
jb 0x488ef7
mov eax, dword [esp + 0x160]
push eax
call fcn.0048d433
add esp, 4
mov ecx, dword [esp + 0x180]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0048de34
mov esp, ebp
pop ebp
ret