Function at 0x4013b0
Capabilities:
Get graphical window text
Hide graphical window
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x17c
mov ebx, dword [ebp + 0x10]
mov dword [esp], ebx
call fcn.00405a50
cmp eax, 0xb7
je 0x40184c
dec eax
je 0x4013f0
call fcn.00401eb0
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esp], 4
call fcn.00402180
xor edi, edi
test eax, eax
je 0x40141b
mov dword [esp], ebx
mov edx, str.__l4j_no_splash
mov dword [esp + 4], edx
call sub.msvcrt.dll_strstr
test eax, eax
je 0x4017fe
mov dword [0x409014], edi
xor edi, edi
mov dword [esp], 0x1f
call fcn.00402180
mov dword [0x409010], eax
test eax, eax
je 0x4015e9
mov edi, 1
mov dword [0x409018], edi
mov eax, dword [0x409014]
test eax, eax
jne 0x401458
test edi, edi
je 0x4017d7
mov dword [esp], pe_nt_image_headers32
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [esp + 0x2c], eax
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x24], ecx
mov esi, 0x80000000
mov eax, 0x80000000
mov dword [esp + 0x28], edi
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x20], edx
mov edx, 0x8000000e
mov dword [esp + 0x1c], esi
mov esi, 0x408010
mov dword [esp + 0x18], eax
mov eax, str.STATIC
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
call sub.USER32.dll_CreateWindowExA
mov dword [0x409070], eax
mov edi, dword [0x409014]
sub esp, 0x30
test edi, edi
jne 0x40161b
mov edx, dword [0x409018]
test edx, edx
je 0x40150a
mov ecx, dword [0x409070]
mov eax, 0x3e8
mov esi, 0x4019d0
mov dword [esp + 0xc], esi
mov edi, 1
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], ecx
call sub.USER32.dll_SetTimer
sub esp, 0x10
test eax, eax
je 0x4013d5
mov dword [esp], 0
mov ebx, 0x40901c
mov dword [esp + 4], ebx
call fcn.00406580
test eax, eax
je 0x4013d5
mov edx, dword [0x409014]
test edx, edx
jne 0x40153f
mov ecx, dword [0x409018]
test ecx, ecx
je 0x4017e4
lea edi, [ebp - 0x158]
jmp 0x40155d
mov dword [esp], edi
call sub.USER32.dll_TranslateMessage
sub esp, 4
mov dword [esp], edi
call sub.USER32.dll_DispatchMessageA
sub esp, 4
mov dword [esp], edi
xor edx, edx
xor ebx, ebx
mov dword [esp + 0xc], edx
xor esi, esi
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
call sub.USER32.dll_GetMessageA
sub esp, 0x10
test eax, eax
jne 0x401547
mov ecx, dword [0x409010]
test ecx, ecx
je 0x4015b0
mov eax, dword [0x40901c]
test eax, eax
je 0x4015b0
mov edx, dword [0x409090]
test edx, edx
je 0x4015b0
mov dword [esp + 8], eax
mov edi, str.Exit_code:_t_d__restarting_the_application__n
mov dword [esp + 4], edi
mov dword [esp], edx
call sub.msvcrt.dll_fprintf
call fcn.00406550
mov eax, dword [0x409010]
test eax, eax
je 0x4015cc
mov esi, dword [0x40901c]
test esi, esi
jne 0x4017d2
mov edx, dword [0x409090]
test edx, edx
jne 0x401808
call fcn.00401bf0
mov eax, dword [0x40901c]
jmp 0x4013df
mov dword [esp], 0xb
call fcn.00402180
test eax, eax
je 0x401441
mov dword [esp], ebx
mov ecx, str.__l4j_dont_wait
mov dword [esp + 4], ecx
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x401441
jmp 0x40143c
cld
xor eax, eax
lea esi, [ebp - 0x128]
mov ecx, 2
mov edi, esi
rep stosd dword es:[edi], eax
mov word [edi], 0
mov dword [esp + 4], esi
mov dword [esp], 6
call fcn.004020a0
test eax, eax
je 0x401668
mov dword [esp], esi
call sub.msvcrt.dll_atoi
lea esi, [eax - 1]
cmp esi, 0x383
jbe 0x401930
mov edx, 0x3c
mov dword [section..data], edx
mov dword [esp], 7
call fcn.00402180
xor esi, esi
test eax, eax
je 0x401693
mov dword [esp], ebx
mov edi, str.__l4j_no_splash_err
mov dword [esp + 4], edi
call sub.msvcrt.dll_strstr
test eax, eax
je 0x40193a
mov dword [0x409080], esi
mov edi, 0x40
xor esi, esi
mov dword [esp], 5
call fcn.00402180
mov dword [0x409060], eax
mov ebx, dword [ebp + 8]
xor edx, edx
mov dword [esp + 0x14], edi
xor eax, eax
mov ecx, 1
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], ebx
call sub.USER32.dll_LoadImageA
sub esp, 0x18
test eax, eax
je 0x4013d5
mov dword [esp + 0xc], eax
mov eax, dword [0x409070]
xor ebx, ebx
mov dword [esp + 8], ebx
mov esi, 0x172
lea edi, [ebp - 0x138]
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.USER32.dll_SendMessageA
mov ecx, dword [0x409070]
sub esp, 0x10
mov dword [esp + 4], edi
mov dword [esp], ecx
call sub.USER32.dll_GetWindowRect
sub esp, 8
mov dword [esp], 0
call sub.USER32.dll_GetSystemMetrics
mov edx, dword [ebp - 0x138]
mov esi, eax
sub esp, 4
mov dword [esp], 1
mov ebx, dword [ebp - 0x130]
sub ebx, edx
sub esi, ebx
mov eax, esi
shr eax, 0x1f
lea ebx, [esi + eax]
mov esi, 1
call sub.USER32.dll_GetSystemMetrics
mov edi, dword [ebp - 0x134]
sub esp, 4
sar ebx, 1
mov dword [esp + 0x18], esi
mov ecx, dword [ebp - 0x12c]
mov esi, dword [0x409070]
mov dword [esp + 8], ebx
sub ecx, edi
sub eax, ecx
mov dword [esp], esi
mov edx, eax
xor ecx, ecx
mov dword [esp + 0x14], ecx
shr edx, 0x1f
xor edi, edi
mov dword [esp + 0x10], edi
add eax, edx
sar eax, 1
mov dword [esp + 0xc], eax
xor edx, edx
mov dword [esp + 4], edx
call sub.USER32.dll_SetWindowPos
mov ecx, dword [0x409070]
sub esp, 0x1c
mov eax, dword [ebp + 0x14]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sub.USER32.dll_ShowWindow
mov ebx, dword [0x409070]
sub esp, 8
mov dword [esp], ebx
call sub.USER32.dll_UpdateWindow
sub esp, 4
mov eax, dword [0x409014]
test eax, eax
jne 0x4014d6
jmp 0x4014cc
mov eax, dword [0x409090]
test eax, eax
jne 0x401828
call fcn.00406550
call fcn.00401bf0
xor eax, eax
jmp 0x4013df
mov edi, 1
jmp 0x40141b
mov dword [esp], edx
mov ecx, dword [0x40901c]
mov ebx, str.Exit_code:_t_d_n
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call sub.msvcrt.dll_fprintf
jmp 0x4015da
mov dword [esp + 0xc], eax
mov edi, 1
mov eax, 0xd
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], str.Exit_code:_t0_n
call sub.msvcrt.dll_fwrite
jmp 0x4017ed
xor edx, edx
mov ecx, pe_nt_image_headers32
lea esi, [ebp - 0x118]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], esi
call sub.msvcrt.dll_memset
mov dword [esp + 4], esi
mov dword [esp], 0x18
call fcn.004020a0
test eax, eax
jne 0x4018ad
xor ebx, ebx
mov dword [esp], ebx
mov esi, 5
mov dword [esp + 4], esi
call sub.USER32.dll_ShowWindow
sub esp, 8
mov dword [esp], ebx
call sub.USER32.dll_SetForegroundWindow
sub esp, 4
call fcn.00401bf0
mov eax, 2
jmp 0x4013df
mov dword [esp], 0
xor ebx, ebx
xor eax, eax
mov dword [esp + 8], ebx
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
call sub.USER32.dll_FindWindowExA
sub esp, 0x10
test eax, eax
mov ebx, eax
je 0x40187d
lea edi, [ebp - 0x98]
mov dword [esp + 4], edi
mov edx, 0x7f
mov dword [esp + 8], edx
mov dword [esp], ebx
call sub.USER32.dll_GetWindowTextA
sub esp, 0xc
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x40187f
mov dword [esp + 4], ebx
xor eax, eax
xor ecx, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp], 0
call sub.USER32.dll_FindWindowExA
sub esp, 0x10
test eax, eax
mov ebx, eax
jne 0x4018da
jmp 0x40187d
mov dword [section..data], eax
jmp 0x401668
mov esi, 1
jmp 0x401693