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

Disassembly:
push 0xffffffffffffffff
push 0x5c69f0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x18], ecx
push 0xffffffffffffffff
xor ebx, ebx
xor ecx, ecx
push ebx
mov word [esp + 0x48], cx
mov esi, 7
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
call fcn.00402610
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
push 1
lea ecx, [esp + 0x44]
mov dword [esp + 0x74], ebx
call fcn.00420f80
mov eax, 9
push ebx
push eax
lea ecx, [esp + 0x48]
call fcn.004208b0
cmp eax, 0xffffffff
jne 0x52311c
xor eax, eax
jmp 0x52311d
inc eax
xor edx, edx
xor ebp, ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], dx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x70], 1
mov esi, eax
cmp eax, dword [esp + 0x50]
jae 0x523256
jmp 0x523150
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x40]
mov edi, 8
mov eax, edx
cmp ecx, edi
jae 0x523167
lea eax, [esp + 0x40]
cmp word [eax + esi*2], 0x2b
je 0x523183
mov eax, edx
cmp ecx, edi
jae 0x523178
lea eax, [esp + 0x40]
cmp word [eax + esi*2], 0x2d
jne 0x523231
lea eax, [esp + 0x1c]
push eax
mov ecx, str.ctrl
call fcn.00522d10
add esp, 4
test al, al
jne 0x523215
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x633800
call fcn.00522d10
add esp, 4
test al, al
je 0x5231b4
or ebp, 1
jmp 0x523218
lea edx, [esp + 0x1c]
push edx
mov ecx, str.shift
call fcn.00522d10
add esp, 4
test al, al
je 0x5231cf
or ebp, 4
jmp 0x523218
lea eax, [esp + 0x1c]
push eax
mov ecx, str.rawctrl
call fcn.00522d10
add esp, 4
test al, al
jne 0x523215
lea ecx, [esp + 0x1c]
push ecx
mov ecx, str.num
call fcn.00522d10
add esp, 4
test al, al
je 0x523205
cmp dword [esp + 0x54], edi
mov eax, dword [esp + 0x40]
jmp 0x523235
cmp dword [esp + 0x2c], ebx
jne 0x523218
cmp dword [esp + 0x54], edi
mov eax, dword [esp + 0x40]
jmp 0x523235
or ebp, 2
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], ebx
cmp dword [esp + 0x30], edi
jae 0x52322a
lea eax, [esp + 0x1c]
xor edx, edx
mov word [eax], dx
jmp 0x523249
cmp ecx, edi
mov eax, edx
jae 0x52323b
lea eax, [esp + 0x40]
movzx eax, word [eax + esi*2]
push eax
lea ecx, [esp + 0x20]
call fcn.00414690
inc esi
cmp esi, dword [esp + 0x50]
jb 0x523150
jmp 0x52325b
mov edi, 8
mov eax, dword [esp + 0x2c]
sub eax, ebx
je 0x523434
dec eax
jne 0x52329b
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], edi
jae 0x523278
lea eax, [esp + 0x1c]
movzx eax, word [eax]
cmp eax, 0x80
jge 0x52329b
cmp ebp, ebx
je 0x5233c9
push eax
call fcn.005866ce
add esp, 4
movzx eax, ax
jmp 0x5233c9
push 0x18
push 1
lea eax, [esp + 0x24]
push 0x154
push eax
mov ecx, 0x6337e4
call fcn.00522f40
add esp, 0x10
cmp eax, ebx
jne 0x5233c9
mov esi, 0x6334b0
xor edi, edi
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi - 4]
call fcn.00522d10
add esp, 4
test al, al
jne 0x523300
mov ecx, dword [esi]
cmp ecx, ebx
je 0x5232f0
lea edx, [esp + 0x1c]
push edx
call fcn.00522d10
add esp, 4
test al, al
jne 0x523300
add edi, 0xc
add esi, 0xc
cmp edi, 0x318
jb 0x5232c5
jmp 0x52330b
mov eax, dword [esi - 8]
cmp eax, ebx
jne 0x5233c4
push 4
push 1
lea eax, [esp + 0x24]
push 0x173
push eax
mov ecx, str.KP_F
call fcn.00522f40
add esp, 0x10
cmp eax, ebx
jne 0x5233c4
push 9
push ebx
lea ecx, [esp + 0x24]
push 0x144
push ecx
mov ecx, 0x6337d8
call fcn.00522f40
add esp, 0x10
cmp eax, ebx
jne 0x5233c4
push 0x14
push 1
lea edx, [esp + 0x24]
push 0x18d
push edx
mov ecx, str.SPECIAL
call fcn.00522f40
add esp, 0x10
cmp eax, ebx
jne 0x5233c4
mov eax, dword [esp + 0x38]
push eax
call fcn.005844d1
mov esi, 8
add esp, 4
cmp dword [esp + 0x30], esi
jb 0x523390
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00584768
add esp, 4
mov eax, dword [esp + 0x5c]
xor edx, edx
push eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], dx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x54], esi
jb 0x523487
mov ecx, dword [esp + 0x40]
push ecx
jmp 0x52347f
mov edi, 8
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x5233d3
mov dword [ecx], ebp
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x5233dd
mov dword [ecx], eax
mov edx, dword [esp + 0x38]
push edx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x30], edi
jb 0x5233fd
mov eax, dword [esp + 0x1c]
push eax
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0x5c]
xor ecx, ecx
push edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], cx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x54], edi
jb 0x523430
mov eax, dword [esp + 0x40]
push eax
call fcn.00584768
add esp, 4
mov al, 1
jmp 0x523489
mov ecx, dword [esp + 0x38]
push ecx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x30], edi
jb 0x523454
mov edx, dword [esp + 0x1c]
push edx
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0x5c]
xor eax, eax
push ecx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], ax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x54], edi
jb 0x523487
mov edx, dword [esp + 0x40]
push edx
call fcn.00584768
add esp, 4
xor al, al
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00585b7b
add esp, 0x60
ret