Function at 0x403240
Capabilities:
Get graphical window text
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46b874
push eax
mov dword fs:[0], esp
sub esp, 0x440
push ebx
push ebp
push esi
push edi
call dword [0x4724d4]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x4035d2
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
push eax
push esi
call dword [0x4724d0]
cmp dword [esp + 0x3c], ebx
jne 0x4035d2
mov edi, dword [0x4917fc]
lea ecx, [esi + 0x3e8]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x18]
mov dword [esp + 0x2c], ecx
push edx
push eax
mov ecx, 0x4917f8
call fcn.004054c0
cmp dword [eax], edi
jne 0x4035a2
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x50]
lea edx, [esp + 0x50]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
push ecx
push 0x1f4
push ebx
push edx
push 0x3fc
push 0xd
push esi
call dword [0x472564]
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4035d2
mov al, byte [esp + 0x12]
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], al
call fcn.00404d20
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x24]
call fcn.004049b0
mov edi, str..wins
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x458], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str..wins
lea ecx, [esp + 0x24]
call fcn.004046f0
push 0xa4
call fcn.00460529
mov esi, eax
add esp, 4
mov dword [esp + 0x48], esi
cmp esi, ebx
mov byte [esp + 0x458], 1
je 0x403512
mov eax, dword [esp + 0x20]
mov dword [esp + 0x40], 0x4727b4
cmp eax, ebx
je 0x403385
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x12]
push eax
mov ecx, esi
mov dword [esp + 0x18], edx
call fcn.00403f60
lea ecx, [esp + 0x33]
lea ebp, [esi + 0x10]
push ecx
mov ecx, ebp
mov byte [esp + 0x45c], 2
call fcn.00403f60
lea ebx, [esi + 0x20]
lea edx, [esp + 0x36]
push edx
mov ecx, ebx
mov byte [esp + 0x45c], 3
call fcn.00403f60
lea eax, [esp + 0x35]
lea ecx, [esi + 0x30]
push eax
mov byte [esp + 0x45c], 4
call fcn.00403f60
lea edx, [esp + 0x37]
lea ecx, [esi + 0x40]
push edx
mov byte [esp + 0x45c], 5
call fcn.00403f60
lea eax, [esp + 0x34]
lea ecx, [esi + 0x50]
push eax
mov byte [esp + 0x45c], 6
call fcn.00403f60
lea edx, [esp + 0x13]
lea ecx, [esi + 0x60]
push edx
mov byte [esp + 0x45c], 7
call fcn.00403f60
lea ecx, [esi + 0x7c]
mov byte [esp + 0x458], 8
call fcn.00403040
mov edi, dword [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x40]
not ecx
dec ecx
push ecx
push eax
mov ecx, esi
call fcn.004049b0
mov ecx, dword [esp + 0x14]
mov edi, 0x49186c
mov dword [esi + 0x74], ecx
or ecx, 0xffffffff
xor eax, eax
mov dword [esi + 0x70], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x49186c
mov ecx, ebp
call fcn.004049b0
mov edi, 0x49186c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x49186c
mov ecx, ebx
call fcn.004049b0
mov edi, 0x49186c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x49186c
lea ecx, [esi + 0x30]
call fcn.004049b0
mov edi, 0x49186c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x49186c
lea ecx, [esi + 0x40]
call fcn.004049b0
xor eax, eax
mov edi, 0x49186c
or ecx, 0xffffffff
mov dword [esi + 0x78], eax
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], eax
mov dword [esi + 0xa0], eax
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x49186c
lea ecx, [esi + 0x60]
call fcn.004049b0
jmp 0x403514
xor esi, esi
test esi, esi
mov byte [esp + 0x458], 0
je 0x40358a
mov ecx, esi
call fcn.00401ec0
mov edx, dword [0x4727b8]
lea eax, [esp + 0x1c]
push edx
push 0
push eax
lea ecx, [esi + 0x20]
call fcn.004047b0
mov edi, str.0.0.0.0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.0.0.0.0
lea ecx, [esi + 0x10]
call fcn.004049b0
lea ecx, [esp + 0x14]
lea edx, [esp + 0x2c]
push ecx
push edx
lea ecx, [esp + 0x50]
mov dword [esp + 0x1c], 0
call fcn.00404370
push eax
lea eax, [esp + 0x44]
push eax
mov ecx, 0x4917f8
call fcn.00404280
mov eax, dword [eax]
mov dword [eax + 0x10], esi
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x45c], 0xffffffff
call fcn.00404d20
jmp 0x4035d2
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x48]
push ecx
push edx
mov ecx, 0x4917e0
call fcn.00406040
mov eax, dword [eax]
mov ecx, dword [0x4917e4]
cmp eax, ecx
je 0x4035d2
push eax
lea eax, [esp + 0x4c]
push eax
mov ecx, 0x4917e0
call fcn.00405b70
call fcn.00403170
mov ecx, dword [0x4917e4]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x38], eax
je 0x403874
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x48]
push ecx
push edx
mov ecx, 0x4917f8
mov dword [esp + 0x1c], eax
call fcn.004054c0
mov esi, dword [eax]
mov eax, dword [0x4917fc]
cmp esi, eax
mov dword [esp + 0x18], esi
je 0x403851
mov ebp, dword [esi + 0x10]
test ebp, ebp
je 0x403841
mov edi, str..wins
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push eax
push str..wins
mov ecx, ebp
call fcn.00404c10
cmp eax, dword [0x4727b8]
je 0x40378e
mov edx, dword [ebp + 0x74]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x50]
sub edx, 0x3e8
push 0x200
push eax
push edx
call dword [0x4724d8]
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
call fcn.00404d20
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x20]
push ebx
call fcn.004061f0
test al, al
je 0x4036cd
mov edi, dword [esp + 0x20]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call fcn.004061d0
mov esi, dword [esp + 0x18]
or ebx, 0xffffffff
mov edi, str..wins
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x458], 9
push ecx
push str..wins
lea ecx, [esp + 0x24]
call fcn.004046f0
mov eax, dword [ebp + 4]
xor edi, edi
cmp eax, edi
jne 0x403706
mov eax, 0x4727b4
mov ecx, dword [esp + 0x20]
cmp ecx, edi
jne 0x403713
mov ecx, 0x4727b4
push eax
push ecx
call fcn.00448770
add esp, 8
mov dword [esp + 0x458], ebx
test eax, eax
jne 0x40375d
mov ecx, dword [esp + 0x20]
cmp ecx, edi
je 0x40374c
mov al, byte [ecx - 1]
test al, al
je 0x403742
cmp al, 0xff
je 0x403742
dec al
mov byte [ecx - 1], al
jmp 0x40374c
dec ecx
push ecx
call fcn.00460552
add esp, 4
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
jmp 0x403859
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x403782
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x403779
cmp al, 0xff
je 0x403779
dec al
mov byte [ecx], al
jmp 0x403782
push ecx
call fcn.00460552
add esp, 4
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov ecx, ebp
call fcn.00401f20
push ebp
call fcn.00403050
mov eax, dword [0x491838]
add esp, 4
cmp eax, ebp
jne 0x4037b1
mov dword [0x491838], 0
mov dword [esp + 0x18], ebp
push 1
lea ecx, [ebp + 0x60]
mov dword [esp + 0x45c], 0xf
call fcn.00404d20
push 1
lea ecx, [ebp + 0x50]
mov byte [esp + 0x45c], 0xe
call fcn.00404d20
push 1
lea ecx, [ebp + 0x40]
mov byte [esp + 0x45c], 0xd
call fcn.00404d20
push 1
lea ecx, [ebp + 0x30]
mov byte [esp + 0x45c], 0xc
call fcn.00404d20
push 1
lea ecx, [ebp + 0x20]
mov byte [esp + 0x45c], 0xb
call fcn.00404d20
push 1
lea ecx, [ebp + 0x10]
mov byte [esp + 0x45c], 0xa
call fcn.00404d20
push 1
mov ecx, ebp
mov dword [esp + 0x45c], 0xffffffff
call fcn.00404d20
push ebp
call fcn.00460552
add esp, 4
lea eax, [esp + 0x40]
push esi
push eax
mov ecx, 0x4917f8
call fcn.00404ff0
push 0
call dword [0x472354]
lea ecx, [esp + 0x38]
call fcn.00407a10
mov ecx, dword [0x4917e4]
mov eax, dword [esp + 0x38]
cmp eax, ecx
jne 0x4035eb
mov ecx, dword [esp + 0x450]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x44c
ret