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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x80
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov ebp, r8d
mov r12, rdx
mov qword [rsp + 0x68], 0xffffffffffffffff
mov rdx, rcx
lea rcx, [rsp + 0x68]
call fcn.00409a84
xor edi, edi
cmp al, dil
jne 0x401eef
jmp 0x4022d7
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x68]
call fcn.004092ac
cmp al, dil
jne 0x401f08
jmp 0x4022d7
cmp qword [rsp + 0x28], 0x7fffffe0
jb 0x401f18
jmp 0x4022d7
lea rcx, [rsp + 0x38]
call fcn.00403640
nop
cmp ebp, 0x4b0
je 0x402071
cmp ebp, 0x4b1
je 0x402071
lea rcx, [rsp + 0x58]
call fcn.00402f84
nop
mov rax, qword [rsp + 0x28]
cmp eax, dword [rsp + 0x64]
jbe 0x401f62
mov edx, eax
lea rcx, [rsp + 0x58]
call fcn.00402d8c
mov rax, qword [rsp + 0x28]
lea r9, [rsp + 0xc8]
mov r8d, eax
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x68]
call fcn.004093ec
cmp al, dil
jne 0x401f9c
mov rcx, qword [rsp + 0x58]
call fcn.004023c4
nop
mov rcx, qword [rsp + 0x38]
call fcn.004023c4
nop
jmp 0x4022d7
mov eax, dword [rsp + 0xc8]
cmp rax, qword [rsp + 0x28]
je 0x401fc5
mov rcx, qword [rsp + 0x58]
call fcn.004023c4
nop
mov rcx, qword [rsp + 0x38]
call fcn.004023c4
nop
jmp 0x4022d7
lea rcx, [rsp + 0x68]
call fcn.00409280
mov r11, qword [rsp + 0x58]
mov eax, dword [rsp + 0xc8]
mov byte [rax + r11], dil
mov eax, edi
cmp byte [r11], dil
je 0x401ff0
inc eax
inc r11
cmp byte [r11], dil
jne 0x401fe6
mov dword [rsp + 0x60], eax
cmp eax, dword [rsp + 0xc8]
je 0x402018
mov rcx, qword [rsp + 0x58]
call fcn.004023c4
nop
mov rcx, qword [rsp + 0x38]
call fcn.004023c4
nop
jmp 0x4022d7
cmp ebp, 0xfde9
jne 0x40204f
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.004047cc
cmp al, dil
jne 0x402062
mov rcx, qword [rsp + 0x58]
call fcn.004023c4
nop
mov rcx, qword [rsp + 0x38]
call fcn.004023c4
nop
jmp 0x4022d7
mov r8d, ebp
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x38]
call fcn.00404048
nop
mov rcx, qword [rsp + 0x58]
call fcn.004023c4
jmp 0x4021dc
mov rax, qword [rsp + 0x28]
test al, 1
je 0x40208a
mov rcx, qword [rsp + 0x38]
call fcn.004023c4
nop
jmp 0x4022d7
mov rbx, rdi
mov qword [rsp + 0xc8], rdi
cmp rax, rdi
je 0x4020b2
mov rcx, rax
call fcn.00402398
mov rbx, rax
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x28]
lea r9, [rsp + 0x20]
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.004093ec
cmp al, dil
jne 0x4020e5
mov rcx, rbx
call fcn.004023c4
nop
mov rcx, qword [rsp + 0x38]
call fcn.004023c4
nop
jmp 0x4022d7
mov eax, dword [rsp + 0x20]
cmp rax, qword [rsp + 0x28]
je 0x402109
mov rcx, rbx
call fcn.004023c4
nop
mov rcx, qword [rsp + 0x38]
call fcn.004023c4
nop
jmp 0x4022d7
lea rcx, [rsp + 0x68]
call fcn.00409280
mov esi, dword [rsp + 0x28]
shr esi, 1
cmp esi, dword [rsp + 0x44]
jbe 0x40212b
mov edx, esi
lea rcx, [rsp + 0x38]
call fcn.0040339c
mov r10, qword [rsp + 0x38]
cmp ebp, 0x4b0
jne 0x40217f
mov ecx, edi
cmp esi, edi
jbe 0x4021cb
mov rdx, r10
mov rax, rbx
movzx r8d, word [rax]
cmp r8w, di
je 0x402166
mov word [rdx], r8w
inc ecx
add rax, 2
add rdx, 2
cmp ecx, esi
jb 0x402148
jmp 0x4021cb
mov rcx, rbx
call fcn.004023c4
nop
mov rcx, qword [rsp + 0x38]
call fcn.004023c4
nop
jmp 0x4022d7
mov edx, edi
cmp esi, edi
jbe 0x4021cb
mov r8, r10
mov rcx, rbx
movzx r9d, byte [rcx]
shl r9w, 8
movzx eax, byte [rcx + 1]
or r9w, ax
je 0x4021b2
mov word [r8], r9w
inc edx
add rcx, 2
add r8, 2
cmp edx, esi
jb 0x40218b
jmp 0x4021cb
mov rcx, rbx
call fcn.004023c4
nop
mov rcx, qword [rsp + 0x38]
call fcn.004023c4
nop
jmp 0x4022d7
mov word [r10 + rsi*2], di
mov dword [rsp + 0x40], esi
mov rcx, rbx
call fcn.004023c4
lea rcx, [rsp + 0x41]
push rdi