Function at 0x401900
Capabilities:
Create process on windows
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a676
mov eax, dword fs:[0]
push eax
mov eax, 0x1a78
call fcn.00409320
mov eax, dword [0x40f084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x1fc
xor ebx, ebx
lea edx, [ebp - 0x20e]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0x1a84], eax
mov word [ebp - 0x210], cx
call fcn.00407f30
mov ecx, dword [0x422c34]
add esp, 0xc
push 0xff
lea eax, [ebp - 0x210]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x7fe
lea eax, [ebp - 0xa0e]
xor edx, edx
push ebx
push eax
mov word [ebp - 0xa10], dx
call fcn.00407f30
add esp, 0xc
push 0x400
lea ecx, [ebp - 0xa10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0xa10]
push 0x5c
push edx
call fcn.00404690
xor ecx, ecx
mov word [eax], cx
push 0x7fe
lea eax, [ebp - 0x1a0e]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x1a10], dx
call fcn.00407f30
lea ecx, [ebp - 0xa10]
push ecx
lea edx, [ebp - 0x1a10]
push str._sSkidrow.ini
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [0x422c50]
add esp, 0x20
cmp esi, dword [0x422c54]
je 0x401a53
lea ecx, [ecx]
mov edi, 8
cmp dword [esi + 0x14], edi
jb 0x401a0e
mov eax, dword [esi]
jmp 0x401a10
mov eax, esi
lea ecx, [ebp - 0x210]
push ecx
push eax
call fcn.00404848
add esp, 8
test eax, eax
je 0x401a31
add esi, 0x38
cmp esi, dword [0x422c54]
jne 0x401a00
jmp 0x401a53
cmp dword [esi + 0x30], edi
lea eax, [esi + 0x1c]
jb 0x401a3b
mov eax, dword [eax]
lea edx, [ebp - 0x1a10]
push edx
push eax
push str.Language
push str.Game
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x7fe
lea ecx, [ebp - 0x120e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x1210], ax
call fcn.00407f30
mov eax, dword [0x422c48]
mov ecx, eax
add esp, 0xc
mov dword [ebp - 0x1a18], 0xf
mov dword [ebp - 0x1a1c], ebx
mov byte [ebp - 0x1a2c], bl
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x401a91
sub ecx, esi
mov edi, ecx
lea esi, [ebp - 0x1a2c]
call fcn.004028f0
mov eax, esi
lea ecx, [ebp - 0x1a80]
mov dword [ebp - 4], ebx
call fcn.00402a20
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x401ac3
mov eax, dword [eax]
push eax
lea edx, [ebp - 0xa10]
push edx
lea eax, [ebp - 0x1210]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
cmp dword [ebp - 0x1a6c], esi
jb 0x401af7
mov ecx, dword [ebp - 0x1a80]
push ecx
call fcn.00404685
add esp, 4
xor edx, edx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1a18], 0x10
mov dword [ebp - 0x1a6c], 7
mov dword [ebp - 0x1a70], ebx
mov word [ebp - 0x1a80], dx
jb 0x401b2f
mov eax, dword [ebp - 0x1a2c]
push eax
call fcn.00404685
add esp, 4
mov eax, 0xf
mov dword [ebp - 0x1a18], eax
mov dword [ebp - 0x1a34], eax
mov eax, dword [0x422c4c]
mov ecx, eax
mov dword [ebp - 0x1a1c], ebx
mov byte [ebp - 0x1a2c], bl
mov dword [ebp - 0x1a38], ebx
mov byte [ebp - 0x1a48], bl
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x401b62
sub ecx, esi
mov edi, ecx
lea esi, [ebp - 0x1a48]
call fcn.004028f0
mov eax, esi
lea ecx, [ebp - 0x1a64]
mov dword [ebp - 4], 1
call fcn.00402a20
mov edi, 8
cmp dword [eax + 0x14], edi
jb 0x401b98
mov eax, dword [eax]
push 5
lea ecx, [ebp - 0xa10]
push ecx
push eax
lea edx, [ebp - 0x1210]
push edx
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, eax
cmp dword [ebp - 0x1a50], edi
jb 0x401bce
mov eax, dword [ebp - 0x1a64]
push eax
call fcn.00404685
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x1a34], 0x10
mov dword [ebp - 0x1a50], 7
mov dword [ebp - 0x1a54], ebx
mov word [ebp - 0x1a64], cx
jb 0x401bff
mov edx, dword [ebp - 0x1a48]
push edx
call fcn.00404685
add esp, 4
cmp esi, 0x20
jae 0x401c1d
mov eax, dword [ebp - 0x1a84]
push 0x30
push str.ERROR
push str.Unable_to_launch_executable__are_you_sure_you_placed_this_file_at_the_right_directory_
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x1a84]
push ebx
push ebx
push 0x10
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040453c
mov esp, ebp
pop ebp
ret 4