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.00404d90
cmp eax, 0xb7
je 0x40185b
dec eax
je 0x4013f0
call fcn.00401ed0
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esp], 4
call fcn.00402200
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 0x40180d
mov dword [0x408014], edi
xor edi, edi
mov dword [esp], 0x1f
call fcn.00402200
mov dword [0x408010], eax
test eax, eax
je 0x4015e9
mov edi, 1
mov dword [0x408018], edi
mov eax, dword [0x408014]
test eax, eax
jne 0x401458
test edi, edi
je 0x4017e6
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, 0x407010
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 [0x408070], eax
mov edi, dword [0x408014]
sub esp, 0x30
test edi, edi
jne 0x40161b
mov edi, dword [0x408018]
test edi, edi
je 0x40150a
mov ecx, dword [0x408070]
mov edx, 0x4019e0
mov eax, 0x64
mov dword [esp + 0xc], edx
mov esi, 1
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], ecx
call sub.USER32.dll_SetTimer
sub esp, 0x10
test eax, eax
je 0x4013d5
mov dword [esp], 0
mov ebx, 0x40801c
mov dword [esp + 4], ebx
call fcn.004054c0
test eax, eax
je 0x4013d5
mov edi, dword [0x408014]
test edi, edi
jne 0x40153f
mov ecx, dword [0x408018]
test ecx, ecx
je 0x4017f3
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 ecx, ecx
xor edx, edx
mov dword [esp + 0xc], ecx
xor ebx, ebx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
call sub.USER32.dll_GetMessageA
sub esp, 0x10
test eax, eax
jne 0x401547
mov edi, dword [0x408010]
test edi, edi
je 0x4015b0
mov eax, dword [0x40801c]
test eax, eax
je 0x4015b0
mov edx, dword [0x408090]
test edx, edx
je 0x4015b0
mov dword [esp + 8], eax
mov esi, str.Exit_code:_t_d__restarting_the_application__n
mov dword [esp + 4], esi
mov dword [esp], edx
call sub.msvcrt.dll_fprintf
call fcn.00405490
mov eax, dword [0x408010]
test eax, eax
je 0x4015cc
mov edx, dword [0x40801c]
test edx, edx
jne 0x4017e1
mov edx, dword [0x408090]
test edx, edx
jne 0x401817
call fcn.00401c10
mov eax, dword [0x40801c]
jmp 0x4013df
mov dword [esp], 0xb
call fcn.00402200
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.004020c0
test eax, eax
je 0x401668
mov dword [esp], esi
call sub.msvcrt.dll_atoi
lea esi, [eax - 1]
cmp esi, 0x383
jbe 0x40193f
mov edx, 0x3c
mov dword [section..data], edx
imul edi, dword [section..data], 0x3e8
mov dword [esp], 7
xor esi, esi
mov dword [section..data], edi
call fcn.00402200
test eax, eax
je 0x4016a3
mov dword [esp], ebx
mov ecx, str.__l4j_no_splash_err
mov dword [esp + 4], ecx
call sub.msvcrt.dll_strstr
test eax, eax
je 0x401949
mov dword [0x408080], esi
xor edi, edi
xor esi, esi
mov dword [esp], 5
call fcn.00402200
mov dword [0x408060], eax
mov ebx, dword [ebp + 8]
xor edx, edx
mov dword [esp + 0x10], edi
mov ecx, 0x40
mov eax, 1
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
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 [0x408070]
mov edx, 0x172
mov dword [esp + 4], edx
xor ebx, ebx
lea esi, [ebp - 0x138]
mov dword [esp + 8], ebx
mov dword [esp], eax
call sub.USER32.dll_SendMessageA
mov ecx, dword [0x408070]
sub esp, 0x10
mov dword [esp + 4], esi
mov dword [esp], ecx
call sub.USER32.dll_GetWindowRect
sub esp, 8
mov dword [esp], 0
call sub.USER32.dll_GetSystemMetrics
mov edi, dword [ebp - 0x138]
mov edx, eax
sub esp, 4
mov dword [esp], 1
mov ebx, dword [ebp - 0x130]
sub ebx, edi
sub edx, ebx
mov eax, edx
shr eax, 0x1f
lea ebx, [edx + eax]
sar ebx, 1
call sub.USER32.dll_GetSystemMetrics
mov esi, dword [ebp - 0x134]
sub esp, 4
mov edx, 1
mov dword [esp + 0x18], edx
mov ecx, dword [ebp - 0x12c]
mov edx, dword [0x408070]
mov dword [esp + 8], ebx
sub ecx, esi
sub eax, ecx
mov dword [esp], edx
mov edi, eax
xor ecx, ecx
mov dword [esp + 0x10], ecx
shr edi, 0x1f
xor esi, esi
mov dword [esp + 0x14], esi
add eax, edi
sar eax, 1
mov dword [esp + 0xc], eax
xor edi, edi
mov dword [esp + 4], edi
call sub.USER32.dll_SetWindowPos
mov esi, dword [ebp + 0x14]
sub esp, 0x1c
mov eax, dword [0x408070]
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
mov ebx, dword [0x408070]
sub esp, 8
mov dword [esp], ebx
call sub.USER32.dll_UpdateWindow
sub esp, 4
mov eax, dword [0x408014]
test eax, eax
jne 0x4014d6
jmp 0x4014cc
mov eax, dword [0x408090]
test eax, eax
jne 0x401837
call fcn.00405490
call fcn.00401c10
xor eax, eax
jmp 0x4013df
mov edi, 1
jmp 0x40141b
mov dword [esp], edx
mov ecx, dword [0x40801c]
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 esi, 1
mov eax, 0xd
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], str.Exit_code:_t0_n
call sub.msvcrt.dll_fwrite
jmp 0x4017fc
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.004020c0
test eax, eax
jne 0x4018bc
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.00401c10
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
ret
je 0x40188c
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 0x40188e
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
ret
jne 0x4018e9
jmp 0x40188c
mov dword [section..data], eax
jmp 0x401668
mov esi, 1
jmp 0x4016a3