Function at 0x410820
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x45215b
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x46e560]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
push edi
mov eax, dword [0x46e560]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
push 0x4608c2
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0
call fcn.00402630
push 0x407
mov ecx, esi
mov dword [esp + 0x94], 0
call fcn.0041c43c
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.0041854b
mov ecx, dword [esp + 0x1c]
mov edx, 0x4608c2
mov al, byte [ecx]
cmp al, byte [edx]
mov byte [esp + 0xf], al
mov eax, dword [esp + 0x1c]
jne 0x4108d7
cmp byte [esp + 0xf], 0
je 0x4108d3
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
mov byte [esp + 0xf], al
mov eax, dword [esp + 0x1c]
jne 0x4108d7
add ecx, 2
add edx, 2
cmp byte [esp + 0xf], 0
jne 0x4108a1
xor ecx, ecx
jmp 0x4108dc
sbb ecx, ecx
or ecx, 1
or edi, 0xffffffff
test ecx, ecx
je 0x410b41
cmp dword [eax - 0xc], 0
jl 0x410b41
push 0x461b8c
push eax
call fcn.00438b81
add esp, 8
test eax, eax
je 0x410b41
sub eax, dword [esp + 0x1c]
cmp eax, edi
je 0x410b41
call fcn.00414dfd
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x41092f
push 0x80004005
call fcn.00402a40
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
push str.__fl
lea eax, [esp + 0x20]
mov byte [esp + 0x94], 1
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00413ec0
add esp, 0xc
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x94], 2
call fcn.00402260
mov byte [esp + 0x90], 1
mov ecx, edi
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410995
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x44
lea eax, [esp + 0x38]
push 0
push eax
call fcn.0043a490
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
xorps xmm0, xmm0
mov dword [esp + 0x40], 0x44
add esp, 0xc
movdqa xmmword [esp + 0x24], xmm0
mov eax, dword [esi - 0xc]
add eax, 0xfffffff4
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00402040
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x38]
push ecx
push dword [eax]
push 0
push 0x4000000
push 1
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [esp + 0x10]
test eax, eax
mov ecx, edi
sete byte [esp + 0xf]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410a16
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [esp + 0xf], 0
je 0x410a41
push 0x10
push 0x4607d4
push str.Game.exe
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push str.C:TL_DATAGamePath.cfg
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x410b1e
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x14]
call fcn.0040dc60
test al, al
je 0x410b1e
cmp dword [0x4741dc], 1
jne 0x410b1e
mov edx, 0x474818
lea ecx, [esp + 0x10]
call fcn.0040a060
mov ecx, dword [0x474bc0]
mov eax, dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x410aa0
test dl, dl
je 0x410a9c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x410aa0
add ecx, 2
add eax, 2
test dl, dl
jne 0x410a80
xor eax, eax
jmp 0x410aa5
sbb eax, eax
or eax, 1
test eax, eax
lea ecx, [esp + 0x10]
setne byte [esp + 0xf]
call fcn.00402a20
cmp byte [esp + 0xf], 0
je 0x410ad2
push 0x30
push 0x4615e0
push 0x462a48
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x410b1e
mov eax, dword [esp + 0x14]
add eax, 0x1304
mov ecx, eax
mov dword [esp + 0x14], eax
call fcn.00413d50
mov dword [esp + 0x18], eax
test eax, eax
je 0x410b1e
xor edi, edi
test eax, eax
jle 0x410b1b
mov esi, dword [esp + 0x14]
push edi
mov ecx, esi
call fcn.00422a95
cmp eax, dword [esp + 0x2c]
jne 0x410b10
push 1
push edi
mov ecx, esi
call fcn.00424df7
inc edi
cmp edi, dword [esp + 0x18]
jl 0x410af8
mov esi, dword [esp + 0x20]
or edi, 0xffffffff
add esi, 0xfffffff0
mov byte [esp + 0x90], 0
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410b55
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x410b55
push 0x30
push 0x4615e0
push 0x4629a0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [esp + 0x90], 0xffffffff
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x410b7b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.004387e7
mov esp, ebp
pop ebp
ret