Function at 0x5166a0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b95ed
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x6360e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x9c
call fcn.00577033
mov edi, eax
mov dword [ebp - 0x10], edi
push 8
mov dword [ebp - 4], 0
call fcn.00577033
mov esi, eax
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
push 0x18
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00577033
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi], esi
lea esi, [edi + 4]
push 0x102
push esi
mov dword [ebp - 0x18], esi
call fcn.00562f5f
add esi, 0x30
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], esi
push 0xc
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.00577033
add esp, 0x18
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 5
mov dword [esi + 0x18], 7
mov dword [esi + 0x1c], 8
mov dword [esi], 0x3f800000
push dword [esi + 4]
push 0x10
call fcn.00498c80
lea ecx, [edi + 0x54]
mov byte [ebp - 4], 6
call fcn.0051fd10
mov byte [ebp - 4], 7
lea esi, [edi + 0x7c]
mov dword [ebp - 0x18], esi
push 0x14
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00577033
mov dword [ebp - 4], 0xffffffff
push 0x48
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov byte [edi + 0x84], 0
mov dword [edi + 0x88], 0
mov byte [edi + 0x8c], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0
mov byte [edi + 0x98], 0
mov dword [0x65d354], edi
call fcn.00577033
mov ebx, eax
mov dword [ebp - 0x18], ebx
push 0x102
push ebx
mov dword [ebp - 4], 8
call fcn.00562f5f
mov byte [ebp - 4], 9
lea esi, [ebx + 0x30]
mov dword [ebp - 0x14], esi
push 0x34
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00577033
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
push 8
mov byte [ebp - 4], 0xa
call fcn.00577033
mov esi, eax
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0xb
push 0x18
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00577033
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [ebx + 0x38], esi
mov byte [ebp - 4], 0xc
lea edi, [ebx + 0x3c]
push 8
mov dword [ebp - 0x14], edi
call fcn.00577033
mov esi, eax
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0xd
push 0x38
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00577033
add esp, 0x24
mov dword [ebp - 4], 0xffffffff
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi], esi
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [0x65d358], ebx
call fcn.0051e8d0
mov ecx, dword [eax]
test ecx, ecx
je 0x516914
cmp dword [eax + 4], 0
je 0x516914
cmp dword [eax + 0xc], 0
je 0x516914
cmp dword [eax + 8], 0
je 0x516914
cmp dword [eax + 0x14], 0
je 0x516914
push 2
call ecx
call fcn.004ff090
push 0x1c
lea eax, [ebp - 0x34]
push eax
push 0x65d568
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, dword [ebp - 0x30]
push 0x7f00
push 0
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x3c], str.NanaWindowInternal
mov dword [ebp - 0x5c], 0x5180c0
mov dword [ebp - 0x60], 0x28
mov dword [ebp - 0x64], 0x30
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push 0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x44], 0x10
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.TrackMouseEvent
push str.User32.DLL
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov dword [0x65d0dc], eax
test eax, eax
jne 0x5169c3
mov dword [0x65d0dc], method.nana::widgets::skeletons::text_editor::behavior_normal.virtual_36
push str.Imm32.DLL
call esi
mov esi, eax
push str.ImmGetContext
push esi
call edi
push str.ImmReleaseContext
push esi
mov dword [0x65d0d8], eax
call edi
push str.ImmSetCompositionFontW
push esi
mov dword [0x65d0e0], eax
call edi
push str.ImmSetCompositionWindow
push esi
call edi
push str.ImmGetCompositionStringW
push esi
call edi
mov dword [0x65d0e4], eax
mov eax, 0x65d354
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret