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

Disassembly:
test rdx, rdx
je 0x140048c5c
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
sub rsp, 0x50
xor esi, esi
mov qword [rsp + 0x70], rbx
movzx ebx, byte [rdx]
lea eax, [rbx - 0x13]
mov rbp, rdx
mov rdi, rcx
cmp eax, 0x81
mov dword [rsp + 0x78], esi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], ebx
ja case.0x14004886f.20
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x48c80]
mov ecx, dword [rdx + rax*4 + 0x48c60]
add rcx, rdx
jmp rcx
mov rsi, qword [rsp + 0x90]
mov rcx, rsi
call fcn.140023d70
mov ebx, dword [rsp + 0x88]
mov rdx, qword [rbp + 0x10]
mov r9d, ebx
mov r8d, eax
mov rcx, rdi
xor r9d, 0x10
mov dword [rsp + 0x78], eax
call fcn.14004ac30
mov rax, qword [rdi + 0x10]
add dword [rdi + 0x70], 1
test rax, rax
je 0x1400488cb
mov r8d, dword [rsp + 0x80]
mov rdx, qword [rbp + 0x18]
mov r9d, ebx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140048810
mov rdx, qword [rsi + 0x30]
or eax, 0xffffffff
sub eax, dword [rsp + 0x78]
js 0x1400488ee
mov r8, qword [rdx + 0x80]
test r8, r8
je 0x1400488ee
movsxd rcx, eax
mov eax, dword [rsi + 0x3c]
mov dword [r8 + rcx*4], eax
mov eax, dword [rsi + 0x3c]
mov rcx, rdi
sub eax, 1
mov dword [rdx + 0x64], eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
jmp fcn.14000abf0
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x140048935
mov rdx, qword [rbp + 0x10]
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140048810
mov r8d, dword [rsp + 0x80]
mov r9d, dword [rsp + 0x88]
mov rax, qword [rdi + 0x10]
add dword [rdi + 0x70], 1
test rax, rax
je 0x140048953
mov rdx, qword [rbp + 0x18]
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140048810
mov rcx, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
jmp fcn.14000abf0
mov rdx, qword [rbp + 0x10]
mov rcx, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
jmp fcn.14004ac30
mov rdx, qword [rbp + 0x10]
lea r8, [rsp + 0x78]
mov rcx, rdi
call fcn.140024cb0
mov rdx, qword [rbp + 0x18]
lea r8, [rsp + 0x40]
mov rcx, rdi
mov ebx, eax
call fcn.140024cb0
mov edx, dword [rsp + 0x88]
mov r9d, dword [rsp + 0x44]
mov r8, qword [rbp + 0x18]
mov dword [rsp + 0x38], edx
mov edx, dword [rsp + 0x80]
mov dword [rsp + 0x30], edx
mov rdx, qword [rbp + 0x10]
mov dword [rsp + 0x28], eax
mov rcx, rdi
mov dword [rsp + 0x20], ebx
call fcn.1400459d0
jmp 0x140048bcc
mov rdx, qword [rbp + 0x10]
lea r8, [rsp + 0x78]
mov rcx, rdi
call fcn.140024cb0
mov rdx, qword [rbp + 0x18]
lea r8, [rsp + 0x40]
mov rcx, rdi
mov ebx, eax
call fcn.140024cb0
mov edx, dword [rsp + 0x80]
cmp dword [rsp + 0x44], 0x49
mov r8, qword [rbp + 0x18]
mov dword [rsp + 0x38], 0x80
mov dword [rsp + 0x30], edx
mov rdx, qword [rbp + 0x10]
mov r9d, esi
sete r9b
mov dword [rsp + 0x28], eax
mov rcx, rdi
add r9d, 0x4e
mov dword [rsp + 0x20], ebx
call fcn.1400459d0
jmp 0x140048bcc
mov rdx, qword [rbp + 0x10]
lea r8, [rsp + 0x78]
mov rcx, rdi
call fcn.140024cb0
mov r9d, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x90]
mov r8d, eax
mov edx, ebx
call fcn.140025730
jmp 0x140048bcc
mov dword [rsp + 0x20], r9d
mov rdx, rbp
mov rcx, rdi
mov r9d, 1
call fcn.140027630
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [rbp + 4]
mov dword [rsp + 0x44], esi
test al, 1
jne 0x140048b7d
bt eax, 0xa
jae 0x140048aac
mov ecx, dword [rbp + 8]
jmp 0x140048b09
sub ebx, 0x9d
je 0x140048ae5
cmp ebx, 1
jne 0x140048b7d
mov rcx, qword [rbp + 0x10]
bt dword [rcx + 4], 0xa
jae 0x140048acd
mov ecx, dword [rcx + 8]
jmp 0x140048b09
lea rdx, [rsp + 0x44]
call fcn.1400050a0
test eax, eax
je 0x140048b7d
mov ecx, dword [rsp + 0x44]
jmp 0x140048b09
mov rcx, qword [rbp + 0x10]
bt dword [rcx + 4], 0xa
jae 0x140048af5
mov ecx, dword [rcx + 8]
jmp 0x140048b07
lea rdx, [rsp + 0x48]
call fcn.1400050a0
test eax, eax
je 0x140048b7d
mov ecx, dword [rsp + 0x48]
neg ecx
test ecx, ecx
mov eax, esi
setne al
test eax, eax
je 0x140048b7d
mov rbx, qword [rsp + 0x90]
mov rax, qword [rbx + 0x30]
movsxd rdi, dword [rbx + 0x3c]
cmp dword [rax + 0x60], edi
jg 0x140048b3e
mov edx, 1
mov rcx, rbx
call fcn.1400214c0
test eax, eax
jne 0x140048c50
mov rax, qword [rbx + 8]
add dword [rbx + 0x3c], 1
mov edx, dword [rsp + 0x80]
mov rbx, qword [rsp + 0x70]
lea rcx, [rdi + rdi*2]
mov byte [rax + rcx*8], InitCommonControls
mov byte [rax + rcx*8 + 3], sil
mov dword [rax + rcx*8 + 4], esi
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], rsi
mov byte [rax + rcx*8 + 1], sil
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov rcx, rbp
call fcn.140005260
test eax, eax
jne 0x140048c50
lea r8, [rsp + 0x78]
mov rdx, rbp
mov rcx, rdi
call fcn.140024cb0
mov edx, dword [rsp + 0x88]
mov r9d, dword [rsp + 0x80]
test edx, edx
mov ecx, esi
mov r8d, eax
setne cl
mov edx, 0x2d
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0x90]
call fcn.140023de0
mov edx, dword [rsp + 0x78]
test edx, edx
je 0x140048c0b
movzx r8d, byte [rdi + 0x1f]
cmp r8b, 8
jae 0x140048c0b
mov ecx, esi
lea rax, [rdi + 0x88]
cmp dword [rax + 0xc], edx
je 0x140048c07
add ecx, 1
add rax, 0x14
cmp ecx, 0xa
jl 0x140048be8
movzx eax, r8b
mov dword [rdi + rax*4 + 0x24], edx
add byte [rdi + 0x1f], 1
jmp 0x140048c0b
mov byte [rax + 6], 1
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x140048c50
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x140048c50
lea rax, [rdi + 0x88]
cmp dword [rax + 0xc], ecx
je 0x140048c4c
add esi, 1
add rax, 0x14
cmp esi, 0xa
jl 0x140048c23
mov rbx, qword [rsp + 0x70]
movzx eax, dl
mov dword [rdi + rax*4 + 0x24], ecx
add byte [rdi + 0x1f], 1
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov byte [rax + 6], 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret 0