Function at 0x4dca70
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [0x56de04]
mov ecx, dword [esi + 8]
lea eax, [esp + 0x20]
push 0
push eax
push 0xa09
push ecx
mov dword [esp + 0x20], 0
call edi
mov ecx, dword [esp + 0x20]
mov ebp, 1
test ecx, ecx
je 0x4dcac0
test eax, eax
jle 0x4dcac0
mov ecx, dword [esi + 4]
movsx edx, word [ecx + 0x68]
cmp eax, edx
je 0x4dcac0
mov dword [esp + 0x10], ebp
mov word [ecx + 0x68], ax
mov eax, dword [esi + 8]
mov ebx, dword [0x56dd98]
push 0x9f3
push eax
call ebx
mov ecx, dword [esi + 4]
movsx edx, byte [ecx + 0x6d]
cmp edx, eax
je 0x4dcae3
mov dword [esp + 0x10], ebp
mov byte [ecx + 0x6d], al
mov eax, dword [esi + 8]
push ebp
push 0
push 0x40400000
push 0
push 0x9f5
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.004dd600
mov ecx, dword [esi + 4]
fld dword [ecx + 0x70]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x40
jne 0x4dcb26
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], ebp
mov dword [ecx + 0x70], edx
mov eax, dword [esi + 8]
push 0xa78
push eax
call ebx
mov ecx, dword [esi + 4]
mov dword [ecx + 0x264], eax
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x264]
test eax, eax
je 0x4dcc78
mov eax, dword [esi + 8]
push 0
push 0
push 0xa5c
push eax
call edi
mov ecx, dword [esi + 4]
push 0
push 0
push 0xa5e
mov dword [ecx + 0x268], eax
mov edx, dword [esi + 8]
push edx
call edi
mov ecx, dword [esi + 4]
mov edi, dword [0x56dce4]
mov dword [ecx + 0x26c], eax
mov eax, dword [esi + 4]
cmp dword [eax + 0x268], ebp
jae 0x4dcba0
mov dword [eax + 0x268], ebp
mov edx, dword [esi + 8]
push 0
push ebp
push 0xa5c
push edx
call edi
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x1f4]
mov edx, dword [eax + 0x268]
cmp edx, ecx
jbe 0x4dcbd0
mov dword [eax + 0x268], ecx
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
push 0
mov ecx, dword [eax + 0x268]
push ecx
push 0xa5c
push edx
call edi
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x1f4]
mov edx, dword [eax + 0x26c]
cmp edx, ecx
jbe 0x4dcc00
mov dword [eax + 0x26c], ecx
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
push 0
mov ecx, dword [eax + 0x26c]
push ecx
push 0xa5e
push edx
call edi
mov eax, dword [esi + 4]
cmp dword [eax + 0x26c], ebp
jae 0x4dcc28
mov dword [eax + 0x26c], ebp
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
push 0
mov ecx, dword [eax + 0x26c]
push ecx
push 0xa5e
push edx
call edi
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x268]
mov edx, dword [eax + 0x26c]
cmp ecx, edx
jbe 0x4dcc78
mov dword [eax + 0x268], edx
mov eax, dword [esi + 4]
push 0
mov dword [eax + 0x26c], ecx
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
mov edx, dword [ecx + 0x268]
push edx
push 0xa5c
push eax
call edi
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
push 0
mov edx, dword [ecx + 0x26c]
push edx
push 0xa5e
push eax
call edi
mov cl, byte [0x5688a4]
xor edx, edx
lea eax, [esp + 0x18]
mov byte [esp + 0x18], cl
mov ecx, dword [esi + 8]
mov dword [esp + 0x19], edx
push 8
push eax
mov word [esp + 0x25], dx
push 0x482
push ecx
mov byte [esp + 0x2f], dl
call dword [0x56dda0]
push eax
call dword [0x56dd44]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
test eax, eax
jle 0x4dccc6
mov ecx, dword [esi + 4]
mov dword [ecx + 0x10], eax
mov dl, byte [0x5688a4]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], dl
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 8]
mov edi, dword [0x56dd2c]
push 0
push 0x147
push 0xa5a
push eax
call edi
mov edx, dword [esi + 8]
lea ecx, [esp + 0x24]
push ecx
push eax
push 0x148
push 0xa5a
push edx
call edi
lea eax, [esp + 0x24]
test eax, eax
je 0x4dcd4a
mov edx, dword [esi + 4]
lea ecx, [esp + 0x24]
add edx, 0x143
push ecx
push edx
call dword [0x56cd68]
test eax, eax
je 0x4dcd4a
mov ecx, dword [esi + 4]
lea eax, [esp + 0x24]
add ecx, 0x143
push eax
push ecx
mov ebx, ebp
call dword [0x56cdd4]
jmp 0x4dcd4e
mov ebx, dword [esp + 0x10]
mov edx, dword [esi + 8]
push 0
push 0
push 0x147
push 0x28d
push edx
call edi
test eax, eax
jle 0x4dcd79
mov ecx, dword [esi + 4]
dec eax
mov dword [ecx + 0x238], ebp
mov edx, dword [esi + 4]
mov dword [edx + 0x23c], eax
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x118
ret