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

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xa8
xor eax, eax
lea ecx, [esp + 0x88]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x78], eax
jmp 0x40134b
mov eax, dword [esp + 0x74]
mov ecx, eax
and ecx, 0xf
mov edx, ecx
sub edx, 1
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], edx
je 0x401381
jmp 0x4012f2
mov eax, dword [esp + 0x6c]
sub eax, 8
mov dword [esp + 0x64], eax
je 0x40139e
jmp 0x4013ff
xor eax, eax
xor ecx, ecx
mov edx, dword [esp + 0x60]
sub edx, 0x12
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], edx
je 0x401463
jmp 0x401327
mov eax, dword [esp + 0x60]
sub eax, 0x58
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], ecx
je 0x40141c
jmp 0x401495
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov eax, dword [esp + 0x78]
mov ecx, dword [sym.imp.USER32.dll_GetClipboardOwner]
mov dword [esp + 0x60], eax
call ecx
mov ecx, esp
mov dword [ecx], 1
mov ecx, dword [sym.imp.ADVAPI32.dll_GetSidLengthRequired]
mov dword [esp + 0x48], eax
call ecx
sub esp, 4
xor ecx, ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x74], ecx
jmp 0x4012d0
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 + 0x40], eax
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 + 0x7c]
mov dword [esp], esi
mov dword [esp + 4], 0
mov dword [esp + 8], 0x18
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], edx
call fcn.00520170
mov eax, esp
lea ecx, [esp + 0x88]
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 + 0x30], eax
mov eax, dword [esp + 0x70]
add eax, 1
cmp eax, 0x2dd
mov dword [esp + 0x74], eax
je 0x401308
jmp 0x4012d0
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 + 0x80]
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 + 0x2c], eax
call ecx
sub esp, 0x14
mov dword [esp + 0x28], eax
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 + 0x24], eax
call ecx
mov dword [esp + 0x20], eax
jmp 0x4014d1
mov eax, dword [esp + 0x4c]
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 + 0x4c], ecx
jne 0x401495
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 + 0x60]
add ecx, 1
cmp ecx, 0xb2
mov dword [esp + 0x14], eax
mov dword [esp + 0x78], ecx
je 0x401345
jmp 0x40134b