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

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov rax, rsp
sub rsp, 0x78
mov qword [rax - 8], rbx
mov rbx, qword [rcx + 0x10]
mov qword [rax - 0x10], rbp
mov qword [rax - 0x18], rsi
xor esi, esi
test rbx, rbx
mov qword [rax - 0x20], rdi
mov r10d, r8d
mov rbp, rdx
mov qword [rsp + 0x48], rbx
mov dword [rax + 8], esi
mov dword [rax - 0x38], esi
mov rdi, rcx
je 0x4d3aea
test rdx, rdx
je 0x4d3aea
movzx eax, byte [rdx]
mov ecx, eax
add eax, 0xffffffed
xor ecx, 1
cmp eax, 0x81
mov dword [rsp + 0x44], ecx
ja case.0x4d37c2.20
lea rdx, [0x00400000]
cdqe
movzx eax, byte [rdx + rax + 0xd3b34]
mov ecx, dword [rdx + rax*4 + 0xd3b10]
add rcx, rdx
jmp rcx
mov rdx, qword [rbp + 0x10]
mov rcx, rdi
call fcn.004d3740
inc dword [rdi + 0x70]
mov rdx, qword [rbp + 0x18]
mov r9d, dword [rsp + 0x98]
mov r8d, dword [rsp + 0x90]
mov rcx, rdi
call fcn.004d3740
mov rcx, rdi
call fcn.00431e60
jmp 0x4d3aea
mov rcx, rbx
call fcn.00441e70
mov esi, dword [rsp + 0x98]
mov rdx, qword [rbp + 0x10]
mov r9d, esi
mov r8d, eax
mov rcx, rdi
xor r9d, 0x10
mov ebx, eax
call fcn.004d32c0
inc dword [rdi + 0x70]
mov rdx, qword [rbp + 0x18]
mov r8d, dword [rsp + 0x90]
mov r9d, esi
mov rcx, rdi
call fcn.004d3740
mov r11, qword [rsp + 0x48]
mov eax, 0xffffffff
sub eax, ebx
mov r10, qword [r11 + 0x30]
js 0x4d3865
mov rdx, qword [r10 + 0x80]
test rdx, rdx
je 0x4d3865
movsxd rcx, eax
mov eax, dword [r11 + 0x3c]
mov dword [rdx + rcx*4], eax
mov eax, dword [r11 + 0x3c]
mov rcx, rdi
dec eax
mov dword [r10 + 0x64], eax
call fcn.00431e60
jmp 0x4d3aea
mov rdx, qword [rbp + 0x10]
mov rcx, rdi
call fcn.004d32c0
jmp 0x4d3aea
mov rdx, qword [rbp + 0x10]
lea r8, [rsp + 0x80]
mov rcx, rdi
call fcn.00459de0
mov rdx, qword [rbp + 0x18]
lea r8, [rsp + 0x40]
mov rcx, rdi
mov ebx, eax
call fcn.00459de0
mov edx, dword [rsp + 0x98]
mov ecx, dword [rsp + 0x90]
mov r9d, dword [rsp + 0x44]
mov r8, qword [rbp + 0x18]
mov dword [rsp + 0x38], edx
mov rdx, qword [rbp + 0x10]
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], eax
mov rcx, rdi
mov dword [rsp + 0x20], ebx
call fcn.00480220
jmp 0x4d3a79
mov rdx, qword [rbp + 0x10]
lea r8, [rsp + 0x80]
mov rcx, rdi
call fcn.00459de0
mov rdx, qword [rbp + 0x18]
lea r8, [rsp + 0x40]
mov rcx, rdi
mov ebx, eax
call fcn.00459de0
cmp byte [rbp], 0x49
mov ecx, dword [rsp + 0x90]
mov r8, qword [rbp + 0x18]
mov rdx, qword [rbp + 0x10]
mov r9d, esi
mov dword [rsp + 0x38], 0x80
mov dword [rsp + 0x30], ecx
setne r9b
mov dword [rsp + 0x28], eax
mov rcx, rdi
add r9d, 0x4e
mov dword [rsp + 0x20], ebx
call fcn.00480220
jmp 0x4d3a79
mov rdx, qword [rbp + 0x10]
lea r8, [rsp + 0x80]
mov rcx, rdi
call fcn.00459de0
mov r9d, dword [rsp + 0x90]
mov edx, dword [rsp + 0x44]
mov r8d, eax
mov rcx, rbx
call fcn.00441dd0
jmp 0x4d3a79
mov dword [rsp + 0x20], r9d
mov rdx, rbp
mov rcx, rdi
xor r9d, r9d
call fcn.0045a260
jmp 0x4d3aea
test r9d, r9d
je 0x4d39b2
mov r9d, r8d
mov rdx, rbp
mov rcx, rdi
call fcn.004d2770
jmp 0x4d3aea
mov rcx, rbx
call fcn.00441e70
mov r8d, dword [rsp + 0x90]
mov rdx, rbp
mov r9d, eax
mov rcx, rdi
mov ebx, eax
call fcn.004d2770
mov r11, qword [rsp + 0x48]
mov eax, 0xffffffff
sub eax, ebx
mov r10, qword [r11 + 0x30]
js 0x4d39fa
mov rdx, qword [r10 + 0x80]
test rdx, rdx
je 0x4d39fa
movsxd rcx, eax
mov eax, dword [r11 + 0x3c]
mov dword [rdx + rcx*4], eax
mov eax, dword [r11 + 0x3c]
dec eax
mov dword [r10 + 0x64], eax
jmp 0x4d3aea
mov rcx, rbp
call fcn.00444f80
test eax, eax
je 0x4d3a2c
xor r8d, r8d
mov r9d, r10d
mov rcx, rbx
lea edx, [r8 + 0x10]
call fcn.00441dd0
jmp 0x4d3aea
mov rcx, rbp
call fcn.00444ef0
test eax, eax
jne 0x4d3aea
lea r8, [rsp + 0x80]
mov rdx, rbp
mov rcx, rdi
call fcn.00459de0
mov edx, dword [rsp + 0x98]
mov r9d, dword [rsp + 0x90]
test edx, edx
mov ecx, esi
mov r8d, eax
setne cl
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov dword [rsp + 0x20], ecx
mov rcx, rbx
call fcn.00441bf0
mov edx, dword [rsp + 0x80]
test edx, edx
je 0x4d3ab3
movzx r8d, byte [rdi + 0x1f]
cmp r8b, 8
jae 0x4d3ab3
mov ecx, esi
lea rax, [rdi + 0x88]
cmp dword [rax + 0xc], edx
je 0x4d3b03
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x4d3a98
movzx eax, r8b
mov dword [rdi + rax*4 + 0x24], edx
inc byte [rdi + 0x1f]
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x4d3aea
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x4d3aea
lea rax, [rdi + 0x88]
nop
nop
cmp dword [rax + 0xc], ecx
je 0x4d3b09
inc esi
add rax, 0x14
cmp esi, 0xa
jl 0x4d3ad0
movzx eax, dl
mov dword [rdi + rax*4 + 0x24], ecx
inc byte [rdi + 0x1f]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
add rsp, 0x78
ret
mov byte [rax + 6], 1
jmp 0x4d3ab3
mov byte [rax + 6], 1
jmp 0x4d3aea