Function at 0x4012b0
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 0x4013f2
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 dword [esp + 0x7c], eax
mov eax, dword [sym.imp.USER32.dll_EmptyClipboard]
call eax
mov dword [esp + 0x78], eax
jmp 0x401340
xor eax, eax
xor ecx, ecx
mov edx, dword [esp + 0x74]
sub edx, 0x12
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], edx
je 0x4012d9
jmp 0x401325
mov eax, dword [esp + 0x74]
sub eax, 0x58
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], ecx
je 0x4014d4
jmp 0x401391
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 + 0x74]
add ecx, 1
cmp ecx, 0xb2
sete dl
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ecx
mov byte [esp + 0x57], dl
mov al, byte [esp + 0x57]
test al, 1
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x80], ecx
jne 0x40151f
jmp 0x4013f2
mov eax, dword [esp + 0x60]
mov ecx, esp
mov dword [ecx + 4], 0x58
mov dword [ecx], 0x58
mov ecx, dword [sym.imp.SHLWAPI.dll_ChrCmpIW]
mov dword [esp + 0x50], eax
call ecx
sub esp, 8
mov ecx, dword [esp + 0x50]
add ecx, 1
cmp ecx, 0xa
mov dword [esp + 0x4c], eax
mov dword [esp + 0x60], ecx
je 0x401340
jmp 0x401391
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 + 0x48], eax
jmp 0x401453
mov eax, dword [esp + 0x80]
mov ecx, dword [sym.imp.USER32.dll_GetClipboardOwner]
mov dword [esp + 0x74], eax
call ecx
mov ecx, esp
mov dword [ecx], 1
mov ecx, dword [sym.imp.ADVAPI32.dll_GetSidLengthRequired]
mov dword [esp + 0x44], eax
call ecx
sub esp, 4
xor ecx, ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x3c]
mov ecx, eax
and ecx, 0xf
mov edx, ecx
sub edx, 1
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edx
je 0x4013d3
jmp 0x401444
mov eax, dword [esp + 0x34]
sub eax, 8
mov dword [esp + 0x2c], eax
jne 0x4014b7
jmp 0x401453
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 + 0x28], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
call fcn.004f85e0
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 + 0x1c], eax
mov eax, dword [esp + 0x38]
add eax, 1
cmp eax, 0x2dd
mov dword [esp + 0x3c], eax
je 0x40130a
jmp 0x401426
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 dword [esp + 0x18], eax
mov eax, esp
lea ecx, [esp + 0x88]
mov dword [eax + 0x10], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 8], ecx
mov dword [eax + 4], ecx
mov dword [eax], 0xbcaf21
mov eax, dword [sym.imp.KERNEL32.dll_GetThreadTimes]
call eax
sub esp, 0x14
mov dword [esp + 0x14], eax
jmp 0x4012d9
lea esp, [ebp - 4]
pop esi
pop ebp
ret