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

Disassembly:
push 0xffffffffffffffff
push 0x46f5c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
shl eax, 0xb
mov ebp, eax
and eax, 0x1fff
add ecx, eax
xor edi, edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x14], edi
shr ebp, 0xd
mov dword [esp + 0x1c], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x10], ecx
call fcn.00460104
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
push 0x473bb0
push eax
mov byte [esp + 0x40], 1
call fcn.004481c9
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx + 0x1c]
add esp, 8
push edi
push edi
push 0x408
push edx
mov dword [esp + 0x38], eax
call dword [sym.imp.user32.dll_SendMessageA]
mov ebx, eax
mov dword [esp + 0x24], ebx
jmp 0x40d2c0
mov eax, dword [esi + 0x4a38]
cmp eax, 0x7ff
jbe 0x40d2e2
mov dword [esi + 0x4a38], edi
mov edi, dword [esp + 0x60]
mov ecx, dword [edi]
shr eax, 0xb
add ecx, eax
mov dword [edi], ecx
jmp 0x40d2e6
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0x58]
mov eax, dword [edi]
cmp eax, dword [ecx]
jbe 0x40d33a
mov edx, dword [esp + 0x50]
mov eax, dword [edx + 0x1c]
push 0
inc ebx
push ebx
push 0x402
push eax
mov dword [esp + 0x34], ebx
call dword [sym.imp.user32.dll_SendMessageA]
mov ecx, dword [edi]
mov edx, dword [esp + 0x5c]
push ebx
add ecx, edx
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x1c]
push 0x473f00
push eax
mov dword [edx], ecx
call fcn.00402a00
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
mov ecx, dword [esp + 0x58]
call fcn.0045f49d
mov edx, dword [esi + 0xc]
mov eax, dword [edx + ebp*4]
mov edi, dword [esp + 0x28]
push 0
push eax
push edi
call fcn.00448124
mov ecx, dword [esi + 0x10]
movzx edx, word [ecx + ebp*2]
push edi
push edx
lea eax, [esi + 0x14]
push 1
push eax
call fcn.00448049
mov ecx, dword [esi + 0x4a24]
add esp, 0x1c
xor edi, edi
test ecx, ecx
jle 0x40d397
lea ecx, [esi + 0x4418]
mov edx, dword [ecx]
cmp ebp, edx
jb 0x40d389
mov ebx, ebp
sub ebx, edx
cmp ebx, dword [ecx + 4]
jb 0x40d413
mov edx, dword [esi + 0x4a24]
inc edi
add ecx, 8
cmp edi, edx
jl 0x40d376
mov edx, dword [esi + 0x10]
lea ecx, [edx + ebp*2]
movzx edx, word [ecx]
cmp eax, edx
jne 0x40d4ae
mov dword [esp + 0x2c], 0x2000
movzx eax, word [ecx]
push eax
lea eax, [esi + 0x14]
push eax
lea ecx, [esp + 0x34]
push ecx
lea ebx, [esi + 0x2414]
push ebx
call fcn.0043d3d0
add esp, 0x10
test eax, eax
jne 0x40d4ba
mov edi, dword [esp + 0x10]
cmp edi, 0x2000
jb 0x40d3e5
mov edi, 0x2000
mov eax, dword [esp + 0x1c]
test eax, eax
push 0
je 0x40d462
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x4c]
mov ecx, edi
sub ecx, eax
add ebx, eax
mov eax, dword [edx]
push ecx
push ebx
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov dword [esp + 0x1c], 0
jmp 0x40d476
mov edi, dword [esp + 0x10]
cmp edi, 0x2000
jb 0x40d424
mov edi, 0x2000
mov eax, dword [esp + 0x1c]
test eax, eax
lea edx, [esp + 0x20]
push 0
push edx
je 0x40d454
mov edx, edi
sub edx, eax
lea ecx, [esi + eax + 0x14]
mov eax, dword [esp + 0x4c]
push edx
push ecx
mov ecx, dword [eax]
push ecx
call dword [sym.imp.kernel32.dll_WriteFile]
mov dword [esp + 0x1c], 0
jmp 0x40d476
push edi
lea eax, [esi + 0x14]
push eax
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
push ecx
jmp 0x40d470
mov edx, dword [esp + 0x48]
mov eax, dword [edx]
lea ecx, [esp + 0x24]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov ecx, dword [esi + 0x4a38]
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x4c]
add ecx, edi
add ebx, edi
sub edx, edi
mov dword [esi + 0x4a38], ecx
mov ecx, ebx
inc ebp
cmp ecx, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edx
jae 0x40d4e3
mov ebx, dword [esp + 0x24]
xor edi, edi
jmp 0x40d2c0
push 0x474d50
call fcn.00448589
jmp 0x40d536
push eax
push 0x474d44
call fcn.00448589
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40d552
mov ebx, dword [sym.imp.kernel32.dll_SetFilePointer]
mov byte [esp + 0x48], 0
mov edi, edi
mov ebp, dword [esp + 0x44]
mov eax, dword [ebp]
push 1
push 0
push 0
push eax
call ebx
mov edi, eax
and edi, 0x7ff
jbe 0x40d528
mov eax, dword [ebp]
push 0
lea ecx, [esp + 0x24]
push ecx
push 1
lea edx, [esp + 0x54]
push edx
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
inc dword [esi + 0x4a38]
test edi, edi
ja 0x40d4f0
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00447f0f
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x38], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d55c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d582
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x24