Function at 0x4d7d80
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x40
cmp eax, 0x402
push ebx
push esi
push edi
mov esi, ecx
ja 0x4d805e
je 0x4d803e
cmp eax, 0x115
ja 0x4d7f4d
cmp eax, 0x114
jae 0x4d7ecf
sub eax, 0x110
je 0x4d7ead
dec eax
jne 0x4d806b
mov eax, dword [esp + 0x58]
cmp ax, 0xa0d
jne 0x4d806b
shr eax, 0x10
cmp eax, 0x400
jne 0x4d806b
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x2c]
push 0x20
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x4d8178
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov edi, eax
add esp, 4
test edi, edi
jg 0x4d7e1f
mov edi, 1
mov ecx, dword [esi]
mov eax, dword [ecx + 0x1f4]
cmp edi, eax
jle 0x4d7e2d
mov edi, eax
cmp edi, dword [ecx + 0x1c8]
je 0x4d7e60
call fcn.004d6e60
mov ecx, dword [esi]
mov dword [ecx + 0x1c8], edi
mov ecx, dword [esi]
call fcn.004d6da0
mov edx, dword [esi]
mov eax, dword [edx + 0x244]
test eax, eax
je 0x4d7e60
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
push edi
lea eax, [esp + 0x10]
push 0x551684
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0xc]
lea edx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4d8178
mov eax, dword [esp + 0x50]
push 0
push edi
push 0xa0d
push eax
call dword [sym.imp.USER32.dll_SetDlgItemInt]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x40
ret 0x10
mov edi, dword [esp + 0x50]
mov ecx, esi
push edi
call fcn.004d8b00
mov ecx, dword [esi]
mov eax, 1
mov dword [ecx + 0x240], edi
pop edi
pop esi
pop ebx
add esp, 0x40
ret 0x10
mov edi, dword [esp + 0x5c]
push 0xfffffffffffffff4
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0
push 0
push 0x468
push edi
mov ebx, eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
and edi, 0xffff
cmp ebx, 0xa0f
jne 0x4d806b
mov ecx, dword [esi]
cmp dword [ecx + 0x1c8], edi
je 0x4d8178
call fcn.004d6e60
mov edx, dword [esi]
mov dword [edx + 0x1c8], edi
mov ecx, dword [esi]
call fcn.004d6da0
mov eax, dword [esi]
mov eax, dword [eax + 0x244]
test eax, eax
je 0x4d8178
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x40
ret 0x10
cmp eax, 0x401
jne 0x4d806b
mov ecx, dword [esi]
mov edi, dword [esp + 0x50]
push ebp
mov ebp, dword [sym.imp.USER32.dll_SetDlgItemInt]
mov dword [ecx + 0x25c], 1
mov edx, dword [esi]
push 0
mov eax, dword [edx + 0x1f4]
push eax
push 0xa11
push edi
call ebp
push 0xa0f
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esi]
mov ebx, eax
mov edx, dword [ecx + 0x1f4]
and edx, 0xffff
or edx, 0x10000
push edx
push 0
push 0x465
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_InvalidateRect]
call ebx
push 0
push 0
push 0xa0d
push edi
call dword [sym.imp.USER32.dll_GetDlgItemInt]
test eax, eax
jg 0x4d7fd9
mov eax, 1
mov ecx, dword [esi]
mov edx, dword [ecx + 0x1f4]
cmp eax, edx
jle 0x4d7fe7
mov eax, edx
mov dword [ecx + 0x1c8], eax
mov eax, dword [esi]
push 0
mov ecx, dword [eax + 0x1c8]
push ecx
push 0xa0d
push edi
call ebp
mov edx, dword [esi + 8]
push 0
push 0
push edx
call ebx
push 0
push 0xa21
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi]
push 1
call fcn.004d7070
mov ecx, dword [esi]
call fcn.004d6da0
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x40
ret 0x10
mov eax, dword [esi + 8]
test eax, eax
je 0x4d8178
mov ecx, dword [esi]
call fcn.004d6b70
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x40
ret 0x10
sub eax, 0x403
je 0x4d80ce
dec eax
je 0x4d80ab
dec eax
je 0x4d8076
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x40
ret 0x10
mov eax, dword [esi]
mov ecx, dword [eax + 0x244]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edx, dword [esi]
mov eax, dword [esp + 0x50]
push eax
mov ecx, esi
mov dword [edx + 0x244], 0
call fcn.004d8b00
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x40
ret 0x10
mov ecx, dword [esi + 8]
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esi]
call fcn.004d6da0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x40
ret 0x10
mov eax, dword [esi + 8]
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov edi, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x10], edx
add eax, edx
mov edx, dword [esi]
add edi, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], edi
mov edi, dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x1d4]
mov edx, dword [esp + 0x34]
push eax
push edx
push ecx
call edi
mov edx, dword [esp + 0x34]
mov dword [esp + 0xc], eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x1d4]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
call edi
mov ecx, dword [esi]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
mov edx, dword [ecx + 0x1d8]
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
call edi
mov edx, dword [esi]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x1d8]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
call edi
mov ecx, dword [esi + 8]
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x40
ret 0x10