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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1cc
mov eax, dword [0x4da6bc]
xor eax, esp
mov dword [esp + 0x1c8], eax
mov eax, dword [0x514540]
mov edx, dword [eax + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, 0x514540
mov dword [esp + 0x20], edi
call edx
add eax, 0x10
mov ecx, edi
mov dword [esp + 0xc], eax
call fcn.0046f910
movzx ecx, word [ebp + 0xc]
mov dword [esp + 0x24], eax
push 0
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.00419bd0
lea edx, [esp + 0xc]
push edx
call fcn.004376d0
mov eax, dword [esp + 0x10]
add esp, 4
push eax
mov ecx, edi
call fcn.00479430
mov ecx, edi
call fcn.00481510
mov ecx, eax
call fcn.00457ff0
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov esi, eax
mov ecx, dword [esi + 4]
push 0
push 0x435
push ecx
mov dword [esp + 0x44], esi
call ebx
mov edx, dword [esi + 4]
push 0
push 0
push 0xb
push edx
call ebx
mov ecx, dword [0x5144c4]
mov eax, dword [edi + 8]
mov edx, dword [0x4d100c]
push 0
push ecx
mov ecx, dword [section..data]
push 0
push eax
mov eax, dword [0x4d1004]
sub edx, eax
push edx
mov edx, dword [0x4d1008]
sub edx, ecx
push edx
push eax
push ecx
push 0
push 0
push str.EDIT
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x18]
push eax
call fcn.00434db0
xor ecx, ecx
push 0x4e
mov word [esp + 0x188], cx
push ecx
lea edx, [esp + 0x18e]
push edx
call fcn.0049e9f0
mov eax, dword [0x5144c8]
add esp, 0x10
push 0x13c
push eax
call dword [sym.imp.USER32.dll_LoadMenuW]
mov dword [esp + 0x24], eax
mov eax, 1
mov dword [esp + 0x14], eax
jmp 0x46e2a4
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0x46e2ab
jmp 0x46e2ac
inc eax
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.00419bd0
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x68]
push eax
push 0
push 0x411
push ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], 0xffffffff
call ebx
mov eax, dword [esi + 4]
lea edx, [esp + 0x38]
push edx
push 0
push 0x411
push eax
mov dword [esp + 0x48], 0x4bb454
mov dword [esp + 0x4c], 0xffffffff
call ebx
mov eax, dword [edi + 0x1d4]
xor ecx, ecx
mov dword [esp + 0x28], ecx
test eax, eax
jle 0x46e70c
test ecx, ecx
jl 0x46e7df
cmp ecx, eax
jge 0x46e7df
mov edx, dword [edi + 0x1d0]
mov eax, dword [esp + 0x14]
mov edi, dword [edx + ecx*4]
mov dword [esp + 0x1c], edi
cmp eax, 1
jne 0x46e340
cmp dword [edi + 4], eax
jmp 0x46e35c
cmp eax, 2
jne 0x46e34a
cmp dword [edi + 4], eax
jmp 0x46e35c
cmp eax, 3
jne 0x46e354
cmp dword [edi + 4], eax
jmp 0x46e35c
cmp eax, 4
jne 0x46e362
cmp dword [edi + 4], eax
jne 0x46e6f1
mov edx, dword [esp + 0xc]
cmp dword [edx - 0xc], 0
mov ecx, dword [edx - 0x10]
lea eax, [edx - 0x10]
mov dword [esp + 0x10], ecx
je 0x46e3c3
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x46e39b
cmp dword [edx - 8], 0
jl 0x46e7d5
mov dword [edx - 0xc], 0
mov eax, dword [esp + 0xc]
xor edx, edx
mov word [eax], dx
jmp 0x46e3c3
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46e3b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
push 2
push 0x4c072c
lea ecx, [esp + 0x14]
call fcn.004020b0
xor eax, eax
cmp dword [edi + 0xc], eax
mov dword [esp + 0x10], eax
jle 0x46e4e9
jmp 0x46e3e8
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x46e7df
cmp eax, dword [edi + 0xc]
jge 0x46e7df
mov ecx, dword [edi + 8]
movzx edx, word [ecx + eax*2]
mov esi, dword [esp + 0x18]
push edx
push esi
call fcn.00434800
add esp, 8
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
inc esi
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049f212
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x18]
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
test edi, edi
jne 0x46e44a
xor eax, eax
jmp 0x46e45f
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46e450
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x14]
call fcn.004020b0
mov eax, dword [esp + 0xc]
mov ebx, dword [eax - 0xc]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
lea esi, [ebx + 1]
sub edx, esi
or ecx, edx
jge 0x46e493
push esi
lea ecx, [esp + 0x10]
call fcn.00401af0
mov eax, dword [esp + 0xc]
mov ecx, 0x2c
mov word [eax + ebx*2], cx
test esi, esi
jl 0x46e7d5
mov eax, dword [esp + 0xc]
cmp esi, dword [eax - 8]
jg 0x46e7d5
mov dword [eax - 0xc], esi
mov eax, dword [esp + 0xc]
xor edx, edx
push edi
mov word [eax + esi*2], dx
call fcn.0049f207
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
inc eax
add esp, 4
cmp eax, dword [ecx + 0xc]
mov dword [esp + 0x10], eax
mov edi, ecx
jl 0x46e3e4
mov esi, dword [esp + 0x34]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 0xc]
push 1
dec eax
push eax
lea ecx, [esp + 0x14]
call fcn.00401d10
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x78]
push edx
push 0
push 0x411
push eax
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], 0xffffffff
call ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
cmp eax, 0x28
jg 0x46e599
mov ecx, 0x28
sub ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
jle 0x46e567
mov eax, 0x20
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
shr ecx, 1
lea edi, [esp + 0x180]
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
xor eax, eax
lea edx, [esp + 0x50]
push edx
push eax
mov word [esp + ecx*2 + 0x188], ax
mov eax, dword [esi + 4]
push 0x411
lea ecx, [esp + 0x18c]
push eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], 0xffffffff
call ebx
mov ecx, dword [esp + 0xc]
cmp dword [ecx - 0xc], 0
mov edx, dword [ecx - 0x10]
lea eax, [ecx - 0x10]
mov dword [esp + 0x10], edx
je 0x46e5f6
cmp dword [eax + 0xc], 0
lea edx, [eax + 0xc]
jge 0x46e5ce
cmp dword [ecx - 8], 0
jl 0x46e7d5
mov dword [ecx - 0xc], 0
mov ecx, dword [esp + 0xc]
xor eax, eax
mov word [ecx], ax
jmp 0x46e5f6
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46e5e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, edi
call edx
mov edx, dword [esi + 4]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x70]
push ecx
push 0
push 0x411
push edx
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0xffffffff
call ebx
cmp dword [esp + 0x14], 1
jne 0x46e6cc
movzx ecx, word [edi + 0x14]
xor eax, eax
push eax
push ecx
lea ecx, [esp + 0x88]
mov word [esp + 0x88], ax
call fcn.0046db50
lea edx, [esp + 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x46e6cc
mov ecx, dword [esi + 4]
lea eax, [esp + 0x60]
push eax
push 0
push 0x411
or edi, 0xffffffff
push ecx
mov dword [esp + 0x70], 0x4bc1a0
mov dword [esp + 0x74], edi
call ebx
mov ecx, dword [esi + 4]
lea eax, [esp + 0x40]
push eax
push 0
push 0x411
lea edx, [esp + 0x8c]
push ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edi
call ebx
mov eax, dword [esi + 4]
lea edx, [esp + 0x48]
push edx
push 0
push 0x411
push eax
mov dword [esp + 0x58], 0x4bc1a4
mov dword [esp + 0x5c], edi
call ebx
jmp 0x46e6cf
or edi, 0xffffffff
mov edx, dword [esi + 4]
lea ecx, [esp + 0x58]
push ecx
push 0
push 0x411
push edx
mov dword [esp + 0x68], 0x4bb454
mov dword [esp + 0x6c], edi
call ebx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x1d4]
mov edi, dword [esp + 0x20]
inc ecx
cmp ecx, eax
mov dword [esp + 0x28], ecx
jl 0x46e315
mov edx, dword [esi + 4]
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0x411
push edx
mov dword [esp + 0x3c], 0x4bb454
mov dword [esp + 0x40], 0xffffffff
call ebx
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 4
mov dword [esp + 0x14], eax
jle 0x46e2a0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [esi + 4]
xor edi, edi
push edi
push 1
push 0x435
push ecx
call ebx
mov edx, dword [esi + 4]
push edi
push 1
push 0xb
push edx
call ebx
mov eax, dword [esi + 4]
push 1
push edi
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esi + 4]
push 1
lea ecx, [esp + 0x30]
push ecx
push 0x42e
push edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call ebx
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x46e79c
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46e7bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1d4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0049e9d2
mov esp, ebp
pop ebp
ret 0x10
push 0x80070057
call fcn.00401000
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]