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

Disassembly:
mov dword [rsp + 0x20], r9d
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x40
mov rbp, qword [rcx + 8]
mov r15d, edx
mov rdi, qword [rcx]
xor edx, edx
mov rbx, qword [rcx + 0x10]
mov rsi, rcx
mov ecx, edx
mov dword [rsp + 0x34], edx
movzx eax, byte [rbp + 0x20]
mov r14d, r8d
cmp al, 0x4c
mov byte [rsp + 0x88], al
mov dword [rsp + 0x30], edx
setne cl
dec dword [rdi + 0x44]
mov r13d, dword [rdi + 0x44]
mov dword [rsp + 0x38], ecx
cmp r15d, 2
jne 0x18029157b
cmp byte [rbp + 0x21], 0x5a
jne 0x18029157b
xor eax, eax
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
test r14d, r14d
jle 0x180291607
cmp byte [rbp + 0x20], 0x59
jne 0x1802915ef
mov eax, dword [rbx + 0x90]
mov r9d, r14d
mov dword [rsp + 0x30], eax
mov rcx, rsi
mov dword [rsp + 0x28], r13d
cmp r15d, 2
jne 0x1802915d8
cmp byte [rbp + 0x21], 0x56
jne 0x1802915c1
mov eax, dword [rsi + 0x28]
lea edx, [r15 + 0x35]
mov r8d, dword [rsi + 0x30]
mov dword [rsp + 0x20], eax
call fcn.180291aa0
jmp 0x180291620
mov eax, dword [rsi + 0x30]
mov edx, 0x39
mov r8d, dword [rsi + 0x28]
mov dword [rsp + 0x20], eax
call fcn.180291aa0
jmp 0x180291620
mov eax, dword [rsi + 0x30]
mov edx, 0x36
mov r8d, dword [rsi + 0x38]
mov dword [rsp + 0x20], eax
call fcn.180291aa0
jmp 0x180291607
mov r9d, r13d
mov dword [rsp + 0x20], 1
mov edx, gethostbyname
mov rcx, rbx
call fcn.180265c30
cmp r15d, 1
jne 0x180291620
cmp dword [rbp + 0x84], 0
jne 0x180291620
xor edx, edx
mov rcx, rsi
call fcn.1802902f0
mov eax, dword [rbx + 0x90]
mov dword [rsp + 0x3c], eax
movzx eax, byte [rbp + 0x22]
mov qword [rsp + 0x90], r12
cmp byte [rbp + 0x21], al
jne 0x180291714
test r14d, r14d
je 0x180291714
cmp byte [rbp + 0x20], 0x59
jne 0x180291714
cmp r15d, 2
jne 0x180291714
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x18029166d
inc dword [rdi + 0x38]
mov r12d, dword [rdi + 0x38]
jmp 0x18029167d
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov r12d, dword [rdi + rax*4 + 0xd4]
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x18029168e
inc dword [rdi + 0x38]
mov r14d, dword [rdi + 0x38]
jmp 0x18029169e
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov r14d, dword [rdi + rax*4 + 0xd4]
mov r8d, dword [rsi + 0x28]
mov r9d, r12d
mov edx, 0x80
mov rcx, rbx
call fcn.180265bc0
mov r8d, dword [rsi + 0x38]
mov r9d, r14d
mov edx, 0x80
mov rcx, rbx
call fcn.180265bc0
mov r9d, r13d
mov dword [rsp + 0x20], r12d
mov r8d, r14d
mov edx, 0x39
mov rcx, rbx
call fcn.180265c30
test r12d, r12d
je 0x1802916f9
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x1802916f9
movzx eax, al
mov dword [rdi + rax*4 + 0xd4], r12d
inc byte [rdi + 0x1f]
test r14d, r14d
je 0x180291714
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x180291714
movzx eax, al
mov dword [rdi + rax*4 + 0xd4], r14d
inc byte [rdi + 0x1f]
mov ecx, r15d
sub ecx, 1
je 0x1802917ba
cmp ecx, 1
je 0x180291773
cmp dword [rbp + 0x84], 0
mov r12d, dword [rsi + 0x3c]
mov r14d, dword [rsi + 0x38]
mov dword [rsp + 0x80], r12d
je 0x180291759
mov r8d, dword [rbp + 0x88]
mov r9d, 1
mov rcx, rbx
lea edx, [r9 + 0x51]
call fcn.180265bc0
jmp 0x1802917d0
mov eax, dword [rsi + 0x20]
xor r9d, r9d
mov r8d, r14d
mov dword [rsp + 0x20], eax
mov rdx, rbp
mov rcx, rsi
call fcn.1802906e0
jmp 0x1802917d0
mov r8d, dword [rbp + 0x84]
mov r9d, 1
mov r12d, dword [rsi + 0x2c]
mov r14d, dword [rsi + 0x28]
mov dword [rsp + 0x80], r12d
test r8d, r8d
je 0x1802917a3
lea edx, [r9 + 0x51]
mov rcx, rbx
call fcn.180265bc0
jmp 0x1802917d0
mov eax, dword [rsi + 0x20]
mov r8d, r14d
mov rdx, rbp
mov dword [rsp + 0x20], eax
mov rcx, rsi
call fcn.1802906e0
jmp 0x1802917d0
mov eax, dword [rsi + 0x34]
mov rcx, rsi
mov r14d, dword [rsi + 0x30]
mov dword [rsp + 0x80], eax
call fcn.180292f20
cmp r15d, dword [rsi + 0x24]
jne 0x18029185b
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x180291806
xor r12d, r12d
xor r9d, r9d
mov r8d, r14d
mov dword [rsp + 0x20], r12d
mov rcx, rbx
lea edx, [r12 + 0x7b]
call fcn.18021bc70
jmp 0x180291835
lea eax, [rcx + 1]
xor edx, edx
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
xor r12d, r12d
mov dword [rax + rcx*8], 0x7b
mov dword [rax + rcx*8 + 4], r14d
mov qword [rax + rcx*8 + 8], rdx
mov qword [rax + rcx*8 + 0x10], rdx
mov eax, dword [rbx + 0x90]
test eax, eax
jle 0x18029185e
dec eax
movsxd rcx, eax
mov rax, qword [rbx + 0x88]
lea rdx, [rcx + rcx*2]
mov ecx, 2
mov word [rax + rdx*8 + 2], cx
jmp 0x18029185e
xor r12d, r12d
cmp dword [rsp + 0x98], 0
movsxd rcx, dword [rbx + 0x90]
je 0x1802918e7
lea edx, [rcx + 2]
cmp dword [rbx + 0x94], ecx
jg 0x180291894
mov r9d, edx
mov dword [rsp + 0x20], r12d
mov edx, 5
mov r8d, r14d
mov rcx, rbx
call fcn.18021bc70
jmp 0x1802918c8
lea eax, [rcx + 1]
xor r8d, r8d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
xor r12d, r12d
mov dword [rax + rcx*8], 5
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov edx, VariantTimeToDosDateTime
mov rcx, rbx
call fcn.180265ae0
movzx r15d, byte [rsp + 0x88]
mov dword [rsp + 0x34], eax
jmp 0x18029196a
mov edx, dword [rsp + 0x38]
inc edx
add edx, ecx
cmp dword [rbx + 0x94], ecx
jg 0x180291911
mov r9d, edx
mov dword [rsp + 0x20], r12d
mov edx, 5
mov r8d, r14d
mov rcx, rbx
call fcn.18021bc70
jmp 0x180291945
lea eax, [rcx + 1]
xor r8d, r8d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
xor r12d, r12d
mov dword [rax + rcx*8], 5
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
movzx r15d, byte [rsp + 0x88]
cmp r15b, 0x4c
je 0x1802919f6
xor r8d, r8d
mov r9d, r13d
mov rcx, rbx
lea edx, [r8 + 0xb]
call fcn.180265bc0
cmp r15b, 0x4c
je 0x1802919f6
mov rax, qword [rbp + 0x18]
test rax, rax
je 0x180291995
mov r15d, dword [rax]
test r15d, r15d
je 0x180291998
mov edx, r15d
mov rcx, rdi
call fcn.18024bbc0
mov r12d, eax
jmp 0x180291998
mov r15d, r12d
mov r8d, r12d
mov edx, r14d
mov rcx, rsi
call fcn.180292e00
mov eax, dword [rsp + 0x3c]
mov r8d, r12d
mov r9d, dword [rsp + 0x80]
mov rcx, rdi
mov rdx, qword [rbp + 0x18]
mov dword [rsp + 0x20], eax
call fcn.180292920
cmp r15d, 1
jne 0x1802919e8
test r12d, r12d
je 0x1802919f6
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x1802919f6
movzx eax, al
mov dword [rdi + rax*4 + 0xd4], r12d
inc byte [rdi + 0x1f]
jmp 0x1802919f6
cmp r15d, dword [rdi + 0x28]
jle 0x1802919f6
mov dword [rdi + 0x28], r15d
mov dword [rdi + 0x2c], r12d
mov edx, dword [rsp + 0x30]
mov r12, qword [rsp + 0x90]
test edx, edx
je 0x180291a5b
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x180291a2e
xor eax, eax
mov r9d, edx
xor r8d, r8d
mov dword [rsp + 0x20], eax
mov rcx, rbx
lea edx, [rax + 0xb]
call fcn.18021bc70
jmp 0x180291a5b
lea eax, [rcx + 1]
xor r8d, r8d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov qword [rax + rcx*8], recv
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov rcx, qword [rbx + 0x18]
not r13d
mov eax, dword [rcx + 0x48]
add eax, dword [rcx + 0x44]
jns 0x180291a77
mov r8d, r13d
mov rdx, rbx
call fcn.18022b5c0
jmp 0x180291a87
mov rcx, qword [rcx + 0x50]
mov eax, dword [rbx + 0x90]
movsxd rdx, r13d
mov dword [rcx + rdx*4], eax
mov eax, dword [rsp + 0x34]
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret