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

Disassembly:
sub esp, 0x43c
push ebx
push ebp
push esi
push edi
push str.Story_Editor_Preferences
mov ebp, ecx
push 0x65ceaa
mov dword [esp + 0x38], 1
call fcn.00454390
add esp, 8
test eax, eax
je 0x4bed76
xor eax, eax
mov ax, word [0x65ceda]
mov dword [esp + 0x30], eax
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0xd9]
mov byte [esp + 0xd8], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x450]
mov ecx, dword [0x655ff8]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esi + 0x14]
lea eax, [esp + 0x34c]
push 0x100
push eax
push 0x187b
push ecx
mov dword [esp + 0x30], edi
call dword [sym.imp.USER32.dll_LoadStringA]
mov ebx, dword [esp + 0x454]
lea edx, [esp + 0xd8]
push edx
push ebx
push edi
call fcn.004d42c0
mov edi, eax
add esp, 0xc
test edi, edi
mov dword [esp + 0x18], edi
je 0x4bf47a
push ebx
call fcn.004d41b0
mov eax, dword [ebx + 0x14]
lea ecx, [esp + 0x68]
shr eax, 4
and eax, 1
push eax
push 0x4e6a10
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push str.Printing
lea edx, [esp + 0x78]
push str.Collate_Copies
push edx
call fcn.00454130
mov eax, dword [ebx + 0x14]
lea ecx, [esp + 0x80]
shr eax, 5
and eax, 1
push eax
push 0x4e6a10
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push str.Printing
lea edx, [esp + 0x90]
push str.Print_To_File
push edx
call fcn.00454130
mov ecx, dword [0x655ff8]
add esp, 0x34
lea eax, [esp + 0x24c]
mov dword [0x655b7c], 0
push 0x100
push eax
push 0x18d7
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
mov cl, byte [esi + 0x138]
lea eax, [esi + 0x138]
test cl, cl
je 0x4beea2
push eax
lea edx, [esp + 0x8c]
push 0x501668
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4beebe
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x88]
push 0x50
push eax
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
xor edx, edx
lea ecx, [esp + 0x34]
mov dword [esp + 0x50], edx
push ecx
mov dword [esp + 0x58], edx
lea eax, [esp + 0x8c]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x54], 0x14
mov dword [esp + 0x60], edx
mov dword [esp + 0x58], eax
push edx
push edx
push 0xd
push edi
mov dword [esp + 0x74], edx
mov dword [esp + 0x6c], edx
call dword [sym.imp.GDI32.dll_Escape]
lea edx, [esp + 0x50]
push edx
push edi
call dword [sym.imp.GDI32.dll_StartDocA]
test eax, eax
jle 0x4bf3f4
push esi
mov ecx, 0x65c2a8
call fcn.00446410
lea eax, [esi + 0x260]
mov dword [0x65d828], esi
push eax
push edi
mov dword [esi + 0x10], edi
call fcn.00454980
add esp, 8
lea eax, [esp + 0x128]
mov word [esi + 0xc], 0x3e8
mov ecx, dword [0x655ff8]
push 0x40
push eax
push 0x5230
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0x24c]
push 2
push edx
push 1
call fcn.004ce9e0
add esp, 0xc
mov dword [0x65c518], eax
mov eax, dword [esi + 0x10]
push 0x4bec90
push eax
call dword [sym.imp.GDI32.dll_SetAbortProc]
mov ecx, dword [0x655afc]
push 0
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [0x65c518]
push 0
push 0
push edx
call fcn.004ce4a0
mov al, byte [ebx + 0x14]
add esp, 0xc
test al, 3
jne 0x4befb6
mov ax, word [ebx + 0x1c]
mov cx, word [ebx + 0x1e]
mov word [ebx + 0x18], ax
mov word [ebx + 0x1a], cx
mov word [esi + 0xe], 1
mov edx, dword [0x65c518]
push 5
push 2
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
mov eax, dword [0x65c518]
push 5
push eax
call edi
mov ecx, dword [0x65c518]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
lea ecx, [esp + 0x40]
call fcn.004049f0
lea edx, [esp + 0x40]
push edx
push ebx
call fcn.004d43d0
mov edi, dword [esp + 0x4c]
mov ecx, dword [0x507180]
mov eax, dword [0x507178]
mov edx, dword [0x50717c]
sub edi, ecx
mov ecx, dword [0x507174]
sub edi, eax
mov eax, dword [esp + 0x48]
sub eax, edx
add esp, 8
sub eax, ecx
mov dword [esp + 0x24], edi
mov dword [0x65d5a0], eax
mov ecx, dword [ebp + 0x388]
push 1
push ecx
mov ecx, ebp
mov dword [ebp + 0x408], 0xffffffff
call fcn.0048f6d0
mov edx, dword [ebp + 0x388]
push 1
push edx
call fcn.00490a80
add esp, 4
mov ecx, ebp
push eax
call fcn.00486d40
push eax
mov eax, dword [ebp + 0x388]
push eax
call fcn.004952e0
add esp, 4
mov ecx, ebp
push eax
call fcn.00487210
push eax
mov ecx, ebp
call fcn.004b21a0
push 0
push esi
mov ecx, ebp
call fcn.0049aa40
mov eax, dword [ebp + 0x388]
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x2c]
push ecx
push edx
push eax
call fcn.00490a60
mov eax, 1
add esp, 0xc
cmp word [ebx + 0x20], ax
mov dword [esp + 0x20], eax
jb 0x4bf386
test byte [ebx + 0x14], 1
je 0x4bf133
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x48]
push ecx
mov ecx, dword [ebp + 4]
push edx
push eax
push ecx
call fcn.0048df70
mov edx, dword [esp + 0x58]
add esp, 0x10
mov ecx, ebp
push edx
call fcn.004898d0
push eax
call fcn.004952e0
add esp, 4
mov ecx, ebp
push eax
call fcn.00484750
push eax
call fcn.00485500
add esp, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov ecx, ebp
push eax
call fcn.004898b0
push eax
call fcn.00490a80
add esp, 4
mov ecx, ebp
push eax
call fcn.00484770
push eax
call fcn.00485520
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x4bf143
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
sub eax, ecx
push eax
call fcn.004cecb0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, ecx
mov dword [0x655c22], 0
mov dword [esp + 0x1c], 1
jge 0x4bf373
jmp 0x4bf17e
mov edi, dword [esp + 0x24]
mov edx, dword [esi + 0x10]
push edx
call dword [sym.imp.GDI32.dll_StartPage]
mov eax, dword [esp + 0x18]
lea ebx, [esi + 0x260]
push ebx
push eax
call fcn.00454980
mov ecx, dword [esp + 0x18]
add esp, 8
lea eax, [ecx + edi]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jge 0x4bf1c2
push eax
mov ecx, ebp
call fcn.00487210
push eax
call fcn.00485500
add esp, 4
mov dword [esp + 0x28], eax
jmp 0x4bf1c6
mov dword [esp + 0x28], ecx
lea edx, [esp + 0xd8]
push 0x504908
push edx
call dword [sym.imp.MSVCRT.dll_strtok]
mov ecx, dword [esp + 0x24]
push eax
lea eax, [esp + 0x94]
lea edx, [esp + 0x134]
push eax
push ecx
lea eax, [esp + 0x1e0]
push edx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [0x65c518]
add esp, 0x1c
lea ecx, [esp + 0x1cc]
push ecx
push 0
push 0xc
push 0x16ae
push edx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov edi, dword [esp + 0x34]
mov eax, dword [ebp + 0x388]
imul edi, dword [ebx]
mov ebx, dword [esi + 0x264]
push eax
imul ebx, dword [esp + 0x3c]
call fcn.004952e0
mov ecx, dword [0x507178]
add esp, 4
sub ecx, ebx
mov ebx, dword [esp + 0x10]
sub ecx, ebx
add eax, ecx
mov dword [esi + 8], eax
mov edx, dword [0x507174]
mov eax, dword [esp + 0x2c]
sub edx, edi
mov edi, dword [esp + 0x28]
mov dword [esi + 4], edx
mov ecx, edi
mov edx, ebx
sub ecx, eax
sub edx, eax
mov eax, dword [ebp + 0x388]
push ecx
push edx
push eax
push esi
mov ecx, ebp
call fcn.0049a3a0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4bf317
mov ecx, dword [0x507178]
mov edx, dword [esp + 0x24]
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x38]
cdq
idiv dword [esi + 0x264]
mov edx, dword [0x50717c]
sub eax, ecx
push eax
mov eax, dword [0x507174]
add eax, edx
mov edx, dword [0x65d5a0]
add eax, edx
cdq
idiv dword [esi + 0x260]
neg ecx
mov edx, eax
mov eax, dword [esp + 0x38]
sub edx, eax
push edx
push ecx
neg eax
push eax
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x168]
push ecx
push str.___d__
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esi + 0x10]
add esp, 0xc
lea eax, [esp + 0x78]
lea ecx, [esp + 0x168]
push 0x121
push eax
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esp + 0x24]
mov eax, edi
sub eax, ebx
push eax
push ecx
call fcn.00412540
mov ecx, dword [0x655c22]
add ecx, eax
push ecx
mov dword [0x655c22], ecx
call fcn.004ceb90
mov edx, dword [esi + 0x10]
add esp, 0xc
push edx
call dword [sym.imp.GDI32.dll_EndPage]
test eax, eax
jl 0x4bf3d6
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
inc ecx
cmp edi, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], ecx
jl 0x4bf17a
mov ebx, dword [esp + 0x454]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
inc eax
cmp ax, word [ebx + 0x20]
mov dword [esp + 0x20], eax
jbe 0x4bf0bd
mov edx, dword [0x655afc]
push 1
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.GDI32.dll_EndDoc]
push 0x65c2a8
mov ecx, esi
call fcn.00446410
mov ecx, dword [esi + 0x10]
lea eax, [esi + 0x260]
push eax
push ecx
call fcn.00454980
add esp, 8
call fcn.004ceb00
mov edx, dword [esp + 0x18]
push 0
push edx
call dword [sym.imp.GDI32.dll_SetAbortProc]
mov edi, dword [esp + 0x18]
jmp 0x4bf40c
mov eax, dword [0x655afc]
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.GDI32.dll_AbortDoc]
mov edi, dword [esp + 0x18]
jmp 0x4bf40c
mov eax, dword [0x655afc]
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.GDI32.dll_AbortDoc]
push edi
mov dword [0x65d828], 0
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [ebp + 0x388]
push 1
push edx
mov ecx, ebp
mov dword [ebp + 0x408], 0xffffffff
call fcn.0048f6d0
mov eax, dword [ebp + 0x388]
push 1
push eax
call fcn.00490a80
add esp, 4
mov ecx, ebp
push eax
call fcn.00486d40
mov ecx, dword [ebp + 0x388]
push eax
push ecx
call fcn.004952e0
add esp, 4
mov ecx, ebp
push eax
call fcn.00487210
push eax
mov ecx, ebp
call fcn.004b21a0
push 0
push esi
mov ecx, ebp
call fcn.0049aa40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x43c
ret 8