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

Disassembly:
push 0xffffffffffffffff
push 0x65a865
mov eax, dword fs:[0]
push eax
sub esp, 0x688
mov eax, dword [0x7d9a88]
xor eax, esp
mov dword [esp + 0x680], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7d9a88]
xor eax, esp
push eax
lea eax, [esp + 0x69c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x6ac]
xor ebx, ebx
cmp dword [0x842660], ebx
je 0x406e65
cmp dword [ebp + 0xb268], ebx
jne 0x406b50
push 0x20
call fcn.005ae818
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x6a4], ebx
cmp esi, ebx
je 0x406b3d
push esi
call fcn.00407210
mov eax, esi
jmp 0x406b3f
xor eax, eax
mov dword [esp + 0x6a4], 0xffffffff
mov dword [ebp + 0xb268], eax
mov ecx, dword [0x842660]
push str.config
push str.cursor.xml
lea eax, [esp + 0x9c]
push eax
call fcn.00512b70
push 0x13
push ebx
lea ecx, [esp + 0x9c]
push ecx
mov ecx, dword [0x842660]
call fcn.00515e90
mov esi, eax
mov edi, 0xf
cmp esi, ebx
je 0x406db5
lea eax, [esi + 8]
push eax
call fcn.0056bdbf
add esp, 4
lea ecx, [esi + 8]
push ecx
push eax
mov dword [esp + 0x24], eax
call fcn.0050cd20
mov edx, dword [esp + 0x24]
mov ecx, dword [0x842660]
add esp, 8
push 0x13
push edx
lea eax, [esp + 0x9c]
push eax
call fcn.00515e90
lea ecx, [esp + 0x14]
call fcn.0042db40
mov dword [esp + 0x6a4], 1
mov ecx, dword [esp + 0x1c]
push esi
push ecx
lea ecx, [esp + 0x1c]
call fcn.004319d0
push ebx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.00431710
add esp, 0xc
test eax, eax
jne 0x406c24
lea ecx, [esp + 0x14]
mov dword [esp + 0x6a4], 0xffffffff
call fcn.00430150
jmp 0x406e65
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6ac], 2
call fcn.0042e890
test eax, eax
je 0x406d6b
lea esp, [esp]
cmp dword [esp + 0x90], 0x10
mov eax, dword [esp + 0x7c]
jae 0x406c72
lea eax, [esp + 0x7c]
push eax
push 1
push 0x6c20dc
lea eax, [esp + 0x2a0]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.004304d0
add esp, 0x14
lea edx, [esp + 0x294]
push edx
call dword [0x65b4f4]
push 0xffffffffffffffff
mov esi, eax
push ebx
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.00402570
mov dword [esp + 0x68], esi
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x54]
mov byte [esp + 0x6ac], 3
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00402570
mov edx, dword [esp + 0x68]
mov dword [esp + 0x3c], edx
lea eax, [esp + 0x20]
mov byte [esp + 0x6a4], 4
mov ecx, dword [ebp + 0xb268]
push eax
push ecx
lea ebx, [esp + 0x74]
call fcn.00406f00
mov esi, 0x10
cmp dword [esp + 0x38], esi
jb 0x406d25
mov edx, dword [esp + 0x24]
push edx
call fcn.005ae7f2
add esp, 4
xor eax, eax
mov byte [esp + 0x6a4], 2
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], eax
mov byte [esp + 0x24], al
cmp dword [esp + 0x64], esi
jb 0x406d4e
mov eax, dword [esp + 0x50]
push eax
call fcn.005ae7f2
add esp, 4
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x1c]
call fcn.0042e890
xor ebx, ebx
test eax, eax
jne 0x406c60
cmp dword [esp + 0x90], 0x10
jb 0x406d82
mov eax, dword [esp + 0x7c]
push eax
call fcn.005ae7f2
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
mov dword [esp + 0x6a4], 0xffffffff
call fcn.00430150
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.005aecc5
add esp, 4
push 7
push 0x6c2800
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.00402760
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x18]
mov dword [esp + 0x6a8], 5
mov esi, dword [ebp + 0xb268]
push eax
call fcn.00407080
cmp dword [esp + 0x38], 0x10
jb 0x406e05
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005ae7f2
add esp, 4
mov eax, dword [ebp + 0xb268]
mov esi, dword [esp + 0x14]
mov edi, dword [eax + 0x18]
mov eax, dword [eax]
cmp esi, ebx
je 0x406e1c
cmp esi, eax
je 0x406e21
call fcn.005aec38
cmp dword [esp + 0x18], edi
je 0x406e53
cmp esi, ebx
jne 0x406e4f
call fcn.005aec38
xor esi, esi
mov edx, dword [esp + 0x18]
cmp edx, dword [esi + 0x18]
jne 0x406e40
call fcn.005aec38
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x28]
mov dword [ebp + 0xb26c], ecx
jmp 0x406e65
mov esi, dword [esi]
jmp 0x406e32
push 0x7f00
push ebx
call dword [0x65b394]
mov dword [ebp + 0xb26c], eax
mov ecx, dword [esp + 0x69c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x680]
xor ecx, esp
call fcn.005ae766
add esp, 0x694
ret