Function at 0x1400c5040
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x188
mov rax, qword [0x140320740]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor ecx, ecx
call fcn.140017fb0
call fcn.140018290
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x18], 0
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x20], 0
call fcn.140018290
mov rax, qword [rax + 0xa0]
mov qword [rsp + 0x30], rax
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x1403f0a60], eax
jle 0x1400c50f0
lea rcx, [0x1403f0a60]
call fcn.140216578
cmp dword [0x1403f0a60], 0xffffffff
jne 0x1400c50f0
mov rcx, qword [rsp + 0x30]
call fcn.14005d950
mov qword [0x1403f11f0], rax
lea rcx, [0x1403f0a60]
call fcn.14021650c
nop
mov rax, qword [0x1403f11f0]
mov qword [rsp + 0x68], rax
movzx r9d, byte [rsp + 0x38]
movzx r8d, byte [rsp + 0x39]
movzx edx, byte [rsp + 0x3a]
lea rcx, [rsp + 0x80]
call fcn.1400c5940
mov rcx, rax
call fcn.1400cfbc0
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
movss xmm2, dword [0x1402e3408]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x30]
call fcn.14005a4b0
nop
mov eax, 8
imul rax, rax, 0
lea rcx, [0x1403f06d8]
cmp qword [rcx + rax], 0
jne 0x1400c51ab
mov rax, qword [0x1403f11f0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
movss xmm3, dword [0x1402e3404]
mov r8d, 0x40418
lea rdx, [0x140365050]
mov rcx, qword [rsp + 0x30]
call fcn.14005a6b0
mov ecx, 8
imul rcx, rcx, 0
lea rdx, [0x1403f06d8]
mov qword [rdx + rcx], rax
mov eax, 8
imul rax, rax, 1
lea rcx, [0x1403f06d8]
cmp qword [rcx + rax], 0
jne 0x1400c520a
mov rax, qword [0x1403f11f0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
movss xmm3, dword [0x1402e3404]
mov r8d, 0x3fdd4
lea rdx, [0x1403a5610]
mov rcx, qword [rsp + 0x30]
call fcn.14005a6b0
mov ecx, 8
imul rcx, rcx, 1
lea rdx, [0x1403f06d8]
mov qword [rdx + rcx], rax
mov eax, 8
imul rax, rax, 2
lea rcx, [0x1403f06d8]
cmp qword [rcx + rax], 0
jne 0x1400c5269
mov rax, qword [0x1403f11f0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
movss xmm3, dword [0x1402e3404]
mov r8d, 0x3f88c
lea rdx, [0x1403257c0]
mov rcx, qword [rsp + 0x30]
call fcn.14005a6b0
mov ecx, 8
imul rcx, rcx, 2
lea rdx, [0x1403f06d8]
mov qword [rdx + rcx], rax
mov eax, 8
imul rax, rax, 0
lea rcx, [0x1403f1208]
cmp qword [rcx + rax], 0
jne 0x1400c52c8
mov rax, qword [0x1403f11f0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
movss xmm3, dword [0x1402e340c]
mov r8d, 0x40418
lea rdx, [0x140365050]
mov rcx, qword [rsp + 0x30]
call fcn.14005a6b0
mov ecx, 8
imul rcx, rcx, 0
lea rdx, [0x1403f1208]
mov qword [rdx + rcx], rax
mov eax, 8
imul rax, rax, 1
lea rcx, [0x1403f1208]
cmp qword [rcx + rax], 0
jne 0x1400c5327
mov rax, qword [0x1403f11f0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
movss xmm3, dword [0x1402e340c]
mov r8d, 0x3fdd4
lea rdx, [0x1403a5610]
mov rcx, qword [rsp + 0x30]
call fcn.14005a6b0
mov ecx, 8
imul rcx, rcx, 1
lea rdx, [0x1403f1208]
mov qword [rdx + rcx], rax
mov eax, 8
imul rax, rax, 2
lea rcx, [0x1403f1208]
cmp qword [rcx + rax], 0
jne 0x1400c5386
mov rax, qword [0x1403f11f0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
movss xmm3, dword [0x1402e340c]
mov r8d, 0x3f88c
lea rdx, [0x1403257c0]
mov rcx, qword [rsp + 0x30]
call fcn.14005a6b0
mov ecx, 8
imul rcx, rcx, 2
lea rdx, [0x1403f1208]
mov qword [rdx + rcx], rax
mov rax, qword [rsp + 0x190]
cmp qword [rax + 0x20], 0
jne 0x1400c53bf
mov rax, qword [rsp + 0x190]
add rax, 0x20
mov r9, rax
mov r8d, 0xe2c
lea rdx, [0x140322e20]
mov rcx, qword [rsp + 0x190]
call fcn.1400c4e20
nop
mov rax, qword [rsp + 0x190]
cmp qword [rax + 0x28], 0
jne 0x1400c53f8
mov rax, qword [rsp + 0x190]
add rax, 0x28
mov r9, rax
mov r8d, 0x1945
lea rdx, [0x1403214d0]
mov rcx, qword [rsp + 0x190]
call fcn.1400c4e20
nop
mov rax, qword [rsp + 0x190]
cmp qword [rax + 0x30], 0
jne 0x1400c5431
mov rax, qword [rsp + 0x190]
add rax, 0x30
mov r9, rax
mov r8d, 0x105c
lea rdx, [0x140324450]
mov rcx, qword [rsp + 0x190]
call fcn.1400c4e20
nop
mov rax, qword [rsp + 0x190]
cmp qword [rax + 0x38], 0
jne 0x1400c546a
mov rax, qword [rsp + 0x190]
add rax, 0x38
mov r9, rax
mov r8d, 0x26d
lea rdx, [0x140324040]
mov rcx, qword [rsp + 0x190]
call fcn.1400c4e20
nop
mov rax, qword [rsp + 0x190]
cmp qword [rax + 0x40], 0
jne 0x1400c54a3
mov rax, qword [rsp + 0x190]
add rax, 0x40
mov r9, rax
mov r8d, 0x194
lea rdx, [0x1403a5470]
mov rcx, qword [rsp + 0x190]
call fcn.1400c4e20
nop
mov rax, qword [rsp + 0x190]
cmp qword [rax + 0x48], 0
jne 0x1400c54dc
mov rax, qword [rsp + 0x190]
add rax, 0x48
mov r9, rax
mov r8d, 0x23a
lea rdx, [0x140323c50]
mov rcx, qword [rsp + 0x190]
call fcn.1400c4e20
nop
mov rax, qword [rsp + 0x190]
cmp qword [rax + 0x50], 0
jne 0x1400c5515
mov rax, qword [rsp + 0x190]
add rax, 0x50
mov r9, rax
mov r8d, 0x193
lea rdx, [0x1403242b0]
mov rcx, qword [rsp + 0x190]
call fcn.1400c4e20
nop
mov rax, qword [rsp + 0x190]
cmp qword [rax + 0x58], 0
jne 0x1400c554e
mov rax, qword [rsp + 0x190]
add rax, 0x58
mov r9, rax
mov r8d, 0x1ba
lea rdx, [0x1403254b0]
mov rcx, qword [rsp + 0x190]
call fcn.1400c4e20
nop
mov rax, qword [rsp + 0x190]
cmp qword [rax + 0x60], 0
jne 0x1400c5587
mov rax, qword [rsp + 0x190]
add rax, 0x60
mov r9, rax
mov r8d, 0xc0
lea rdx, [0x1403e5560]
mov rcx, qword [rsp + 0x190]
call fcn.1400c4e20
nop
mov rax, qword [rsp + 0x190]
cmp qword [rax + 0x68], 0
jne 0x1400c55c0
mov rax, qword [rsp + 0x190]
add rax, 0x68
mov r9, rax
mov r8d, pe_nt_image_headers64
lea rdx, [0x140325670]
mov rcx, qword [rsp + 0x190]
call fcn.1400c4e20
nop
mov rax, qword [rsp + 0x190]
cmp qword [rax + 0x70], 0
jne 0x1400c55f9
mov rax, qword [rsp + 0x190]
add rax, 0x70
mov r9, rax
mov r8d, 0x199
lea rdx, [0x140323e90]
mov rcx, qword [rsp + 0x190]
call fcn.1400c4e20
nop
mov rax, qword [rsp + 0x190]
cmp qword [rax + 0x78], 0
jne 0x1400c5632
mov rax, qword [rsp + 0x190]
add rax, 0x78
mov r9, rax
mov r8d, 0x162
lea rdx, [0x1403e53f0]
mov rcx, qword [rsp + 0x190]
call fcn.1400c4e20
nop
call fcn.1400ed440
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1400c56eb
movzx r9d, byte [rsp + 0x3b]
movzx r8d, byte [rsp + 0x3c]
movzx edx, byte [rsp + 0x3d]
lea rcx, [rsp + 0xa0]
call fcn.1400c5970
mov rcx, rax
call fcn.1400cfae0
mov r8, rax
mov edx, 0x2712
mov rcx, qword [rsp + 0x48]
call fcn.1400ed8b0
nop
mov r8d, 1
mov edx, Ordinal_50
mov rcx, qword [rsp + 0x48]
call fcn.1400ed8b0
lea r8, [0x1400ea320]
mov edx, 0x4e2b
mov rcx, qword [rsp + 0x48]
call fcn.1400ed8b0
mov rax, qword [rsp + 0x190]
add rax, 0xa8
mov r8, rax
mov edx, 0x2711
mov rcx, qword [rsp + 0x48]
call fcn.1400ed8b0
nop
mov rcx, qword [rsp + 0x48]
call fcn.1400ed640
test eax, eax
je 0x1400c56e0
jmp 0x1400c5920
mov rcx, qword [rsp + 0x48]
call fcn.1400ed1d0
nop
call fcn.1400ed440
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400c57a4
movzx r9d, byte [rsp + 0x3e]
movzx r8d, byte [rsp + 0x3f]
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x100]
call fcn.1400c59a0
mov rcx, rax
call fcn.1400cf9d0
mov r8, rax
mov edx, 0x2712
mov rcx, qword [rsp + 0x50]
call fcn.1400ed8b0
nop
mov r8d, 1
mov edx, Ordinal_50
mov rcx, qword [rsp + 0x50]
call fcn.1400ed8b0
lea r8, [0x1400ea320]
mov edx, 0x4e2b
mov rcx, qword [rsp + 0x50]
call fcn.1400ed8b0
mov rax, qword [rsp + 0x190]
add rax, 0x1a0
mov r8, rax
mov edx, 0x2711
mov rcx, qword [rsp + 0x50]
call fcn.1400ed8b0
nop
mov rcx, qword [rsp + 0x50]
call fcn.1400ed640
test eax, eax
je 0x1400c5799
jmp 0x1400c5920
mov rcx, qword [rsp + 0x50]
call fcn.1400ed1d0
nop
call fcn.1400ed440
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1400c585d
movzx r9d, byte [rsp + 0x41]
movzx r8d, byte [rsp + 0x42]
movzx edx, byte [rsp + 0x43]
lea rcx, [rsp + 0xd0]
call fcn.1400c59d0
mov rcx, rax
call fcn.1400cf8f0
mov r8, rax
mov edx, 0x2712
mov rcx, qword [rsp + 0x58]
call fcn.1400ed8b0
nop
mov r8d, 1
mov edx, Ordinal_50
mov rcx, qword [rsp + 0x58]
call fcn.1400ed8b0
lea r8, [0x1400ea320]
mov edx, 0x4e2b
mov rcx, qword [rsp + 0x58]
call fcn.1400ed8b0
mov rax, qword [rsp + 0x190]
add rax, 0x298
mov r8, rax
mov edx, 0x2711
mov rcx, qword [rsp + 0x58]
call fcn.1400ed8b0
nop
mov rcx, qword [rsp + 0x58]
call fcn.1400ed640
test eax, eax
je 0x1400c5852
jmp 0x1400c5920
mov rcx, qword [rsp + 0x58]
call fcn.1400ed1d0
nop
mov rcx, qword [rsp + 0x198]
call fcn.140007a40
mov rax, qword [rsp + 0x190]
mov rdx, qword [rax + 8]
mov rax, qword [rsp + 0x190]
mov rcx, qword [rax]
call fcn.1400075e0
nop
mov rax, qword [rsp + 0x190]
movzx eax, byte [rax + 0x90]
test eax, eax
je 0x1400c5920
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x140]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1400c58f8
lea rcx, [rsp + 0x140]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x140]
call qword [sym.imp.USER32.dll_DispatchMessageW]
nop
cmp dword [rsp + 0x148], 0x12
jne 0x1400c58f6
mov rax, qword [rsp + 0x190]
mov byte [rax + 0x90], 0
jmp 0x1400c589e
mov rax, qword [rsp + 0x190]
movzx eax, byte [rax + 0x90]
test eax, eax
jne 0x1400c590d
jmp 0x1400c5920
mov rcx, qword [rsp + 0x190]
call fcn.1400c5f20
nop
jmp 0x1400c5887
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1402164b0
add rsp, 0x188
ret