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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
and dword [rsp + 0x90], 0
xor r12d, r12d
and dword [rsp + 0xa8], r12d
mov r14, rdx
mov rdi, rcx
mov rsi, qword [rcx + 0x10]
mov r15, qword [rdx + 0x30]
mov dword [rsp + 0x30], r12d
mov byte [rdx], 1
cmp dword [rdx + 0x38], r12d
jle 0x18003db0e
xor eax, eax
mov dword [rsp + 0xa0], eax
mov rax, qword [r15]
mov r13, qword [rax + 0x20]
test r13, r13
je 0x18003d942
mov ebp, dword [r13]
mov rcx, rdi
mov edx, ebp
call fcn.18002fc08
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov r8d, eax
mov rcx, rdi
mov rdx, r13
mov r12d, eax
call fcn.18002ec80
jmp 0x18003d947
xor ebp, ebp
xor r12d, r12d
cmp dword [r15 + 0x14], 0
jl 0x18003d977
mov rcx, rsi
call fcn.180020a8c
mov edx, dword [r15 + 0x14]
mov r9d, 1
mov r8d, eax
mov dword [rsp + 0xa0], eax
mov rcx, rdi
mov dword [rsp + 0x20], r12d
call fcn.18003b1d8
mov rax, qword [r15 + 8]
test byte [rax + 2], 0x20
je 0x18003da1a
mov r13, qword [r13 + 8]
xor ebx, ebx
xor eax, eax
mov dword [rsp + 0x98], eax
cmp eax, ebp
jge 0x18003d9c0
mov rdx, qword [r13]
mov rcx, rdi
call fcn.18002c530
mov rbx, rax
add r13, 0x28
mov eax, dword [rsp + 0x98]
inc eax
mov dword [rsp + 0x98], eax
test rbx, rbx
je 0x18003d994
test rbx, rbx
jne 0x18003d9cc
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov r13d, dword [rsp + 0x90]
test r13d, r13d
jne 0x18003d9ee
cmp dword [r14 + 0x2c], r13d
je 0x18003d9ee
inc dword [rdi + 0x58]
mov r13d, dword [rdi + 0x58]
mov dword [rsp + 0x90], r13d
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, r13d
mov rcx, rsi
lea edx, [r9 + 0x56]
call fcn.180020968
mov r9d, 0xfffffffc
mov r8, rbx
mov edx, eax
mov rcx, rsi
call fcn.180020d74
jmp 0x18003da22
mov r13d, dword [rsp + 0x90]
mov eax, dword [r15 + 0x10]
mov r9d, r12d
mov rbx, qword [r15 + 8]
xor r8d, r8d
mov edx, reloc.WLDAP32.dll_Ordinal_145
mov dword [rsp + 0x20], eax
mov rcx, rsi
call fcn.180020968
mov r9d, 0xfffffffb
mov r8, rbx
mov edx, eax
mov rcx, rsi
call fcn.180020d74
mov rax, qword [rsi]
cmp byte [rax + 0x55], 0
jne 0x18003da71
mov eax, dword [rsi + 0x3c]
dec eax
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 + 3], bpl
mov r8d, ebp
mov edx, r12d
mov rcx, rdi
call fcn.18002db74
mov r8d, ebp
call fcn.18002db74
cmp ebp, dword [rdi + 0x48]
jle 0x18003da93
mov dword [rdi + 0x48], ebp
mov dword [rdi + 0x4c], r12d
mov eax, dword [rsp + 0xa0]
test eax, eax
je 0x18003daca
mov rdx, qword [rsi + 0x30]
mov r8, qword [rdx + 0x88]
test r8, r8
je 0x18003daba
not eax
movsxd rcx, eax
mov eax, dword [rsi + 0x3c]
mov dword [r8 + rcx*4], eax
mov eax, dword [rsi + 0x3c]
mov rcx, rdi
dec eax
mov dword [rdx + 0x6c], eax
call fcn.18002de28
mov ecx, dword [rsp + 0xa8]
add r15, 0x18
inc ecx
mov dword [rsp + 0xa8], ecx
cmp ecx, dword [r14 + 0x38]
jl 0x18003d904
test r13d, r13d
je 0x18003db09
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, r13d
mov rcx, rsi
lea edx, [r9 + 0x15]
call fcn.180020968
mov r12d, eax
jmp 0x18003db0e
mov r12d, dword [rsp + 0x30]
mov rcx, rdi
call fcn.18002de28
mov rbx, qword [r14 + 0x20]
xor ebp, ebp
cmp dword [r14 + 0x2c], ebp
jle 0x18003db41
add rbx, 0x18
mov r8d, dword [rbx - 4]
mov rcx, rdi
mov rdx, qword [rbx]
call fcn.18002ebb4
inc ebp
lea rbx, [rbx + 0x20]
cmp ebp, dword [r14 + 0x2c]
jl 0x18003db26
mov rcx, rdi
mov byte [r14], 0
call fcn.18002de28
test r12d, r12d
je 0x18003db6f
mov ecx, dword [rsi + 0x3c]
mov edx, r12d
mov rax, qword [rsi + 0x30]
dec ecx
mov dword [rax + 0x6c], ecx
mov rcx, rsi
call fcn.180020dec
mov ecx, dword [rsi + 0x3c]
mov dword [rax + 8], ecx
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret