Function at 0x401290
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xb0
xor eax, eax
lea ecx, [esp + 0x90]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x80], eax
jmp 0x401334
mov eax, esp
mov dword [eax + 8], 0xacd
mov dword [eax + 4], str.U19c_8_B5Ku_ro
mov dword [eax], 0xa5a
mov eax, dword [sym.imp.USER32.dll_CharNextExA]
call eax
sub esp, 0xc
mov ecx, dword [sym.imp.USER32.dll_EmptyClipboard]
mov dword [esp + 0x7c], eax
call ecx
mov dword [esp + 0x78], eax
jmp 0x4014c0
mov eax, esp
mov dword [eax + 4], 0xcb0
mov dword [eax], 0x90735d
mov eax, dword [sym.imp.USER32.dll_GetWindow]
call eax
sub esp, 8
mov ecx, esp
lea edx, [esp + 0x88]
mov dword [ecx + 0x10], edx
mov dword [ecx + 0xc], edx
mov dword [ecx + 8], edx
mov dword [ecx + 4], edx
mov dword [ecx], 0xbcaf21
mov ecx, dword [sym.imp.KERNEL32.dll_GetThreadTimes]
mov dword [esp + 0x74], eax
call ecx
sub esp, 0x14
mov dword [esp + 0x70], eax
jmp 0x4012b6
mov eax, dword [esp + 0x80]
mov ecx, dword [sym.imp.USER32.dll_GetClipboardOwner]
mov dword [esp + 0x6c], eax
call ecx
mov ecx, esp
mov dword [ecx], 1
mov ecx, dword [sym.imp.ADVAPI32.dll_GetSidLengthRequired]
mov dword [esp + 0x68], eax
call ecx
sub esp, 4
xor ecx, ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], ecx
mov eax, dword [esp + 0x60]
mov ecx, eax
and ecx, 0xf
mov edx, ecx
sub edx, 8
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], edx
je 0x4013b8
jmp 0x401386
mov eax, dword [esp + 0x58]
sub eax, 1
mov dword [esp + 0x50], eax
jne 0x40141c
jmp 0x401399
mov eax, esp
mov dword [eax + 4], 0x978
mov dword [eax], 0x36e
mov eax, dword [sym.imp.USER32.dll_SetCursorPos]
call eax
sub esp, 8
mov dword [esp + 0x4c], eax
jmp 0x4013b8
mov eax, esp
mov dword [eax], 0x64fe67
mov eax, dword [sym.imp.USER32.dll_DestroyAcceleratorTable]
call eax
sub esp, 4
xor ecx, ecx
mov edx, 0x18
mov esi, dword [esp + 0x84]
mov dword [esp], esi
mov dword [esp + 4], 0
mov dword [esp + 8], 0x18
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], edx
call fcn.0057e1b0
mov eax, esp
lea ecx, [esp + 0x90]
mov dword [eax], ecx
mov dword [eax + 4], 0xfa0
mov eax, dword [sym.imp.KERNEL32.dll_SetCriticalSectionSpinCount]
call eax
sub esp, 8
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x5c]
add eax, 1
cmp eax, 0x2dd
sete cl
mov dword [esp + 0x38], eax
mov byte [esp + 0x37], cl
mov al, byte [esp + 0x37]
test al, 1
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x60], ecx
jne 0x40144a
jmp 0x401368
xor eax, eax
xor ecx, ecx
mov edx, dword [esp + 0x6c]
sub edx, 0x12
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
je 0x4012b6
jmp 0x401469
mov eax, dword [esp + 0x6c]
sub eax, 0x58
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
je 0x4012eb
jmp 0x401484
mov eax, dword [esp + 0x20]
mov ecx, esp
mov dword [ecx + 4], 0x58
mov dword [ecx], 0x58
mov ecx, dword [sym.imp.SHLWAPI.dll_ChrCmpIW]
mov dword [esp + 0x1c], eax
call ecx
sub esp, 8
mov ecx, dword [esp + 0x1c]
add ecx, 1
cmp ecx, 0xa
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
jne 0x401484
mov eax, esp
mov dword [eax + 4], 0x79a
mov dword [eax], 0xbc7041
mov eax, dword [sym.imp.USER32.dll_SetWindowContextHelpId]
call eax
sub esp, 8
mov ecx, dword [esp + 0x6c]
add ecx, 1
cmp ecx, 0xb2
mov dword [esp + 0x14], eax
mov dword [esp + 0x80], ecx
jne 0x401334
lea esp, [ebp - 4]
pop esi
pop ebp
ret