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

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x5d8
lea rcx, [rsp + 0x100]
mov qword [rsp + 0x5b8], rdi
call fcn.140003e30
xor ecx, ecx
cmp qword [rsp + 0x5e0], rcx
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0xa0], rcx
jne 0x140002972
lea rdx, str.pDevice_pointer_is_invalid
jmp 0x1400029af
mov rdx, qword [rsp + 0x5e8]
test rdx, rdx
jne 0x140002988
lea rdx, str.pvSrcData_pointer_is_invalid
jmp 0x1400029af
mov r8d, dword [rsp + 0x5f0]
test r8d, r8d
jne 0x14000299e
lea rdx, str.cbSrcData_value_is_invalid
jmp 0x1400029af
cmp qword [rsp + 0x660], rcx
jne 0x1400029d6
lea rdx, str.Texture_pointer_is_invalid
call fcn.1400039d0
lea rcx, [rsp + 0x100]
call fcn.140003e60
mov eax, 0x8876086c
mov rdi, qword [rsp + 0x5b8]
add rsp, 0x5d8
ret
mov rdi, qword [rsp + 0x648]
mov qword [rsp + 0x5d0], rbx
mov ebx, dword [rsp + 0x608]
mov qword [rsp + 0x5c8], rbp
mov ebp, dword [rsp + 0x600]
mov qword [rsp + 0x5c0], rsi
mov esi, dword [rsp + 0x5f8]
mov eax, ecx
mov qword [rsp + 0x5b0], r12
mov r12d, dword [rsp + 0x658]
cmp esi, 0xfffffffd
mov qword [rsp + 0x5a8], r13
mov r13d, dword [rsp + 0x620]
sete al
cmp ebp, 0xfffffffd
mov dword [rsp + 0xc0], eax
mov eax, ecx
sete al
mov dword [rsp + 0xb8], eax
cmp ebx, 0xfffffffd
mov eax, ecx
sete al
mov qword [rsp + 0x598], r15
mov r15d, dword [rsp + 0x610]
mov dword [rsp + 0xbc], eax
cmp r15d, 0xfffffffd
mov eax, ecx
sete al
cmp r13d, 0xfffffffd
mov dword [rsp + 0xb0], eax
mov eax, ecx
sete al
test rdi, rdi
mov dword [rsp + 0x64], eax
jne 0x140002a9d
lea rax, [rsp + 0x170]
cmp r12d, 0xffffffff
cmovne rax, rdi
mov rdi, rax
mov eax, 1
lea rcx, [rsp + 0x100]
mov r9, rdi
mov qword [rsp + 0x5a0], r14
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x20], eax
call fcn.140007b30
test eax, eax
mov r14d, eax
jns 0x140002ade
lea rcx, [rsp + 0x100]
call fcn.140003e60
mov eax, r14d
jmp 0x1400038d8
cmp r12d, 0xffffffff
jne 0x140002ae8
mov r12d, dword [rdi + 0x14]
mov rax, qword [rsp + 0x158]
mov r11d, 1
test rax, rax
mov ecx, r11d
mov dword [rsp + 0x88], r11d
je 0x140002b22
nop
nop
nop
mov rax, qword [rax + 0x58]
inc ecx
test rax, rax
jne 0x140002b10
mov dword [rsp + 0x88], ecx
cmp r12d, 5
mov edx, r11d
mov dword [rsp + 0x78], r11d
jne 0x140002b79
mov rax, qword [rsp + 0x160]
test rax, rax
je 0x140002b54
nop
mov rax, qword [rax + 0x60]
inc edx
test rax, rax
jne 0x140002b40
cmp edx, 6
mov dword [rsp + 0x78], edx
je 0x140002b79
lea rdx, str.File_does_not_contain_a_cube_texture
xor ecx, ecx
call fcn.1400039d0
lea rcx, [rsp + 0x100]
call fcn.140003e60
mov eax, 0x80004005
jmp 0x1400038d8
mov eax, dword [rsp + 0x118]
cmp r15d, 0xfffffffd
cmove r15d, ecx
cmp esi, 0xfffffffe
mov dword [rsp + 0xa8], r15d
mov dword [rsp + 0x610], r15d
je 0x140002bcf
cmp esi, 0xfffffffd
je 0x140002bcf
test eax, eax
js 0x140002bcf
test esi, esi
je 0x140002baf
cmp esi, 0xffffffff
jne 0x140002bd8
cmp eax, r11d
mov esi, r11d
mov dword [rsp + 0x5f8], r11d
jbe 0x140002bd8
nop
add esi, esi
cmp esi, eax
jb 0x140002bc0
mov dword [rsp + 0x5f8], esi
jmp 0x140002bd8
mov esi, eax
mov dword [rsp + 0x5f8], eax
cmp ebp, 0xfffffffe
mov eax, dword [rsp + 0x11c]
je 0x140002c15
cmp ebp, 0xfffffffd
je 0x140002c15
test eax, eax
js 0x140002c15
test ebp, ebp
je 0x140002bf6
cmp ebp, 0xffffffff
jne 0x140002c1e
cmp eax, r11d
mov ebp, r11d
mov dword [rsp + 0x600], r11d
jbe 0x140002c1e
add ebp, ebp
cmp ebp, eax
jb 0x140002c06
mov dword [rsp + 0x600], ebp
jmp 0x140002c1e
mov ebp, eax
mov dword [rsp + 0x600], eax
cmp ebx, 0xfffffffe
mov eax, dword [rsp + 0x120]
je 0x140002c5f
cmp ebx, 0xfffffffd
je 0x140002c5f
test eax, eax
js 0x140002c5f
test ebx, ebx
je 0x140002c3c
cmp ebx, 0xffffffff
jne 0x140002c68
cmp eax, r11d
mov ebx, r11d
mov dword [rsp + 0x608], r11d
jbe 0x140002c68
nop
add ebx, ebx
cmp ebx, eax
jb 0x140002c50
mov dword [rsp + 0x608], ebx
jmp 0x140002c68
mov ebx, eax
mov dword [rsp + 0x608], eax
mov eax, dword [rsp + 0x630]
mov ecx, 0x80004
mov edx, 5
cmp eax, 0xffffffff
cmove eax, ecx
mov ecx, dword [rsp + 0x638]
cmp ecx, 0xffffffff
mov dword [rsp + 0x630], eax
cmove ecx, edx
cmp r12d, edx
mov dword [rsp + 0x638], ecx
jne 0x140002cb8
or eax, 0x70000
or ecx, 0x70000
mov dword [rsp + 0x638], ecx
mov dword [rsp + 0x630], eax
cmp al, r11b
je 0x140002cd4
movzx eax, cl
cmp eax, 2
je 0x140002cd4
cmp eax, edx
je 0x140002cd4
xor edi, edi
mov dword [rsp + 0x98], edi
jmp 0x140002cde
mov dword [rsp + 0x98], r11d
xor edi, edi
mov r14, qword [rsp + 0x110]
test r14, r14
je 0x140002eb7
mov ecx, dword [rsp + 0x640]
mov r9, r14
mov edx, 0x100
mov eax, ecx
shr eax, 0x10
movzx r8d, al
movzx eax, cl
and ecx, 0xff00ff00
shl eax, 0x10
or r8d, eax
lea rax, [rsp + 0x190]
or r8d, ecx
sub r9, rax
lea rcx, [rsp + 0x190]
nop
mov eax, dword [r9 + rcx]
cmp eax, r8d
cmove eax, edi
add rcx, 4
dec rdx
mov dword [rcx - 4], eax
jne 0x140002d30
cmp r13d, 0x29
mov eax, edi
mov dword [rsp + 0x60], edi
je 0x140002eea
mov r10d, dword [rsp + 0x100]
cmp r10d, 0x29
jne 0x140002ef6
mov ecx, edi
lea rdx, [rsp + 0x190]
nop
nop
nop
nop
mov eax, ecx
or eax, 0xffffff00
shl eax, 8
or eax, ecx
shl eax, 8
or eax, ecx
cmp dword [rdx], eax
jne 0x140002da3
inc ecx
add rdx, 4
cmp ecx, 0x100
jb 0x140002d80
cmp ecx, 0x100
jne 0x140002dc0
mov r10d, reloc.WLDAP32.dll_Ordinal_50
mov eax, edi
mov dword [rsp + 0x100], r10d
jmp 0x140002ef6
mov dword [rsp + 0xf0], edi
mov dword [rsp + 0xf4], 0x55
mov dword [rsp + 0xf8], 0xaa
mov dword [rsp + 0xfc], 0xff
mov dword [rsp + 0xc8], edi
mov dword [rsp + 0xcc], Ordinal_45
mov dword [rsp + 0xd0], Ordinal_79
mov dword [rsp + 0xd4], WSAStartup
mov dword [rsp + 0xd8], __WSAFDIsSet
mov dword [rsp + 0xdc], 0xb6
mov dword [rsp + 0xe0], 0xdb
mov dword [rsp + 0xe4], 0xff
mov r8d, edi
lea r9, [rsp + 0x190]
nop
nop
nop
mov al, r8b
mov edx, r8d
and eax, 3
shr rdx, 5
mov ecx, dword [rsp + rax*4 + 0xf0]
mov al, r8b
or ecx, 0xffffff00
shr al, 2
shl ecx, 8
and eax, 7
or ecx, dword [rsp + rax*4 + 0xc8]
shl ecx, 8
or ecx, dword [rsp + rdx*4 + 0xc8]
cmp dword [r9], ecx
jne 0x140002e9c
inc r8d
add r9, 4
cmp r8d, 0x100
jb 0x140002e50
cmp r8d, 0x100
jne 0x140002ef4
mov r10d, reloc.WLDAP32.dll_Ordinal_27
mov eax, edi
mov dword [rsp + 0x100], r10d
jmp 0x140002ef6
lea rcx, [rsp + 0x190]
mov r8d, 0x400
mov edx, 0xff
call sub.VCRUNTIME140.dll_memset
mov eax, dword [rsp + 0x640]
mov r10d, dword [rsp + 0x100]
mov dword [rsp + 0x60], eax
mov r11d, 1
jmp 0x140002ef6
mov r10d, dword [rsp + 0x100]
jmp 0x140002ef6
mov eax, edi
test r13d, r13d
mov r15d, dword [rsp + 0x618]
mov ecx, reloc.WLDAP32.dll_Ordinal_22
je 0x140002f12
cmp r13d, 0xfffffffd
jne 0x140003035
test eax, eax
je 0x140002fed
mov rax, qword [section..data]
lea rcx, reloc.WS2_32.dll_sendto
cmp rcx, rax
jae 0x140002f3e
nop
cmp r10d, dword [rcx]
je 0x140002f45
add rcx, 0x24
cmp rcx, rax
jb 0x140002f30
lea rcx, [0x1401190a0]
mov eax, dword [rcx + 4]
test eax, eax
je 0x140002f5a
cmp eax, 1
je 0x140002f5a
cmp eax, 2
jne 0x140002fe1
cmp dword [rcx + 0x10], 0
jne 0x140002fe8
mov eax, dword [rcx]
lea rdx, [rsp + 0xc8]
lea r9, [rsp + 0xc8]
mov dword [rdx], eax
mov eax, dword [rcx + 4]
mov r8d, r12d
mov dword [rdx + 4], eax
mov eax, dword [rcx + 8]
mov dword [rdx + 8], eax
mov eax, dword [rcx + 0xc]
mov dword [rdx + 0xc], eax
mov eax, dword [rcx + 0x10]
mov dword [rdx + 0x10], eax
mov eax, dword [rcx + 0x14]
mov dword [rdx + 0x14], eax
mov eax, dword [rcx + 0x18]
mov dword [rdx + 0x18], eax
mov eax, dword [rcx + 0x1c]
mov dword [rdx + 0x1c], eax
mov eax, dword [rcx + 0x20]
xor ecx, ecx
mov dword [rdx + 0x20], eax
mov edx, r15d
mov dword [rsp + 0xc8], edi
mov dword [rsp + 0xd8], r11d
call fcn.140001040
mov r14, qword [rsp + 0x110]
mov r10d, eax
test eax, eax
mov ecx, reloc.WLDAP32.dll_Ordinal_22
cmove r10d, dword [rsp + 0x100]
jmp 0x140002fed
mov ecx, reloc.WLDAP32.dll_Ordinal_22
jmp 0x140002fed
mov ecx, reloc.WLDAP32.dll_Ordinal_22
cmp r10d, 0x36314c41
je 0x140003009
mov r13d, Ordinal_41
cmp r10d, 0x36315220
cmovne r13d, r10d
jmp 0x14000300f
mov r13d, 0x33
mov edi, dword [rsp + 0x628]
mov dword [rsp + 0x620], r13d
cmp edi, 3
je 0x14000303c
cmp r13d, 0x14
cmove r13d, ecx
mov dword [rsp + 0x620], r13d
jmp 0x14000303c
mov edi, dword [rsp + 0x628]
mov rax, qword [rsp + 0x650]
test rax, rax
je 0x140003068
lea rdx, [rsp + 0x190]
mov rcx, rax
mov r8d, 0x400
call sub.VCRUNTIME140.dll_memcpy
test r14, r14
jne 0x1400030ea
cmp dword [rsp + 0x64], 0
je 0x140003093
cmp r13d, 0x28
je 0x14000307b
cmp r13d, 0x29
jne 0x140003093
lea rdx, str.D3DFMT_FROM_FILE_specified_for_palettized_files_without_providing_memory_to_return_palette
xor ecx, ecx
call fcn.1400039d0
mov edi, 0x8876086c
jmp 0x140003808
cmp r13d, 0x28
jne 0x1400030a9
mov r13d, reloc.WS2_32.dll_setsockopt
mov dword [rsp + 0x620], r13d
jmp 0x1400030ea
cmp r13d, 0x29
jne 0x1400030ea
mov r13d, reloc.WLDAP32.dll_Ordinal_22
xor ecx, ecx
lea rax, [rsp + 0x193]
mov dword [rsp + 0x620], r13d
cmp byte [rax], 0xff
jne 0x1400030dc
inc ecx
add rax, 4
cmp ecx, 0x100
jb 0x1400030c7
jmp 0x1400030ea
mov r13d, reloc.WS2_32.dll_setsockopt
mov dword [rsp + 0x620], r13d
test edi, edi
jne 0x1400030f5
bt r15d, 9
jae 0x1400030fd
mov dword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x5e0]
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], edi
lea rax, [rsp + 0x620]
lea r9, [rsp + 0x608]
lea r8, [rsp + 0x600]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x610]
lea rdx, [rsp + 0x5f8]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
call fcn.140001870
test eax, eax
mov edi, eax
js 0x140003808
cmp dword [rsp + 0xc0], 0
mov r14d, dword [rsp + 0x5f8]
je 0x14000316b
cmp esi, r14d
jne 0x1400031c2
cmp dword [rsp + 0xb8], 0
mov esi, dword [rsp + 0x600]
je 0x140003180
cmp ebp, esi
jne 0x1400031c2
cmp dword [rsp + 0xbc], 0
mov ebp, dword [rsp + 0x608]
je 0x140003195
cmp ebx, ebp
jne 0x1400031c2
cmp dword [rsp + 0xb0], 0
je 0x1400031af
mov eax, dword [rsp + 0x610]
cmp dword [rsp + 0xa8], eax
jne 0x1400031c2
cmp dword [rsp + 0x64], 0
mov ebx, dword [rsp + 0x620]
je 0x1400031cc
cmp r13d, ebx
je 0x1400031cc
mov edi, 0x8876086a
jmp 0x140003808
mov ecx, r12d
sub ecx, 3
je 0x14000329d
dec ecx
je 0x14000323d
dec ecx
jne 0x1400032f8
mov r13, qword [rsp + 0x5e0]
lea rcx, [rsp + 0x90]
and r15d, 0xffe07fff
mov rax, qword [r13]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], rcx
mov ecx, dword [rsp + 0x628]
mov r9d, r15d
mov r15d, dword [rsp + 0x610]
mov dword [rsp + 0x28], ecx
mov rcx, r13
mov r8d, r15d
mov edx, r14d
mov dword [rsp + 0x20], ebx
call qword [rax + reloc.WLDAP32.dll_Ordinal_200]
mov edi, eax
jmp 0x140003308
mov r13, qword [rsp + 0x5e0]
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x90]
mov rax, qword [r13]
mov qword [rsp + 0x40], rcx
mov ecx, dword [rsp + 0x628]
mov dword [rsp + 0x38], ecx
and r15d, 0xffe07fff
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], r15d
mov r15d, dword [rsp + 0x610]
mov r9d, ebp
mov r8d, esi
mov edx, r14d
mov rcx, r13
mov dword [rsp + 0x20], r15d
call qword [rax + 0xc0]
mov edi, eax
jmp 0x140003308
mov r13, qword [rsp + 0x5e0]
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x90]
mov rax, qword [r13]
mov qword [rsp + 0x38], rcx
mov ecx, dword [rsp + 0x628]
mov dword [rsp + 0x30], ecx
and r15d, 0xffe07fff
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], r15d
mov r15d, dword [rsp + 0x610]
mov r8d, esi
mov edx, r14d
mov rcx, r13
mov r9d, r15d
call qword [rax + 0xb8]
mov edi, eax
jmp 0x140003308
mov r15d, dword [rsp + 0x610]
mov r13, qword [rsp + 0x5e0]
test edi, edi
jns 0x14000331f
lea rdx, str.Failed_trying_to_create_texture
xor ecx, ecx
call fcn.1400039d0
jmp 0x140003808
mov edx, dword [rsp + 0x68]
test edx, edx
je 0x140003424
mov ecx, r12d
sub ecx, 3
je 0x1400033cd
dec ecx
je 0x140003386
dec ecx
jne 0x14000340d
mov rax, qword [r13]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x30], rcx
xor r9d, r9d
mov r8d, r15d
mov rcx, r13
mov edx, r14d
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], ebx
call qword [rax + reloc.WLDAP32.dll_Ordinal_200]
mov edx, dword [rsp + 0x68]
mov edi, eax
jmp 0x14000340d
mov rax, qword [r13]
xor edx, edx
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x38], 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], edx
mov r9d, ebp
mov edx, r14d
mov r8d, esi
mov rcx, r13
mov dword [rsp + 0x20], r15d
call qword [rax + 0xc0]
mov edx, dword [rsp + 0x68]
mov edi, eax
jmp 0x14000340d
mov rax, qword [r13]
xor edx, edx
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], edx
mov r9d, r15d
mov edx, r14d
mov r8d, esi
mov rcx, r13
call qword [rax + 0xb8]
mov edx, dword [rsp + 0x68]
mov edi, eax
test edi, edi
jns 0x140003424
lea rdx, str.Failed_trying_to_create_texture
xor ecx, ecx
call fcn.1400039d0
jmp 0x140003808
mov rbp, qword [rsp + 0x90]
mov r8d, dword [rsp + 0x78]
movsxd rcx, dword [rsp + 0x98]
test edx, edx
lea rax, [rsp + 0x100]
mov qword [rsp + 0xb0], rcx
cmovne rbp, qword [rsp + 0xa0]
xor edx, edx
test r8d, r8d
mov dword [rsp + 0x64], edx
mov qword [rsp + 0xa8], rax
je 0x140003781
mov r13, qword [rsp + 0x650]
mov r14d, dword [rsp + 0x630]
nop
nop
xor esi, esi
mov rbx, rax
cmp dword [rsp + 0x88], esi
jbe 0x140003634
cmp esi, r15d
jae 0x14000361f
mov ecx, r12d
sub ecx, 3
je 0x1400034df
dec ecx
je 0x1400034c4
dec ecx
jne 0x1400034f5
mov rax, qword [rbp]
lea r9, [rsp + 0x70]
mov r8d, esi
mov rcx, rbp
call qword [rax + 0x90]
mov edi, eax
jmp 0x1400034f5
mov rax, qword [rbp]
lea r8, [rsp + 0x80]
mov edx, esi
mov rcx, rbp
call qword [rax + 0x90]
mov edi, eax
jmp 0x1400034f5
mov rax, qword [rbp]
lea r8, [rsp + 0x70]
mov edx, esi
mov rcx, rbp
call qword [rax + 0x90]
mov edi, eax
test edi, edi
js 0x140003808
mov ecx, r12d
sub ecx, 3
je 0x140003511
dec ecx
je 0x1400035af
dec ecx
jne 0x140003557
mov ecx, dword [rsp + 0x60]
mov r9, qword [rbx + 8]
lea rax, [rbx + 0x24]
mov dword [rsp + 0x48], ecx
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x190]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov eax, dword [rbx + 0x3c]
mov rdx, r13
mov dword [rsp + 0x28], eax
mov eax, dword [rbx]
mov dword [rsp + 0x20], eax
call fcn.140001320
mov edi, eax
test edi, edi
js 0x140003808
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14000357e
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rsp + 0x80], 0
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140003597
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rsp + 0x70], 0
inc esi
cmp esi, dword [rsp + 0x88]
jae 0x140003604
mov rbx, qword [rbx + 0x58]
mov edx, dword [rsp + 0x64]
jmp 0x140003492
mov ecx, dword [rsp + 0x60]
mov r9, qword [rbx + 8]
lea rax, [rbx + 0x24]
mov dword [rsp + 0x50], ecx
mov rcx, qword [rsp + 0x80]
mov dword [rsp + 0x48], r14d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x190]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov eax, dword [rbx + 0x40]
mov rdx, r13
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 0x3c]
mov dword [rsp + 0x28], eax
mov eax, dword [rbx]
mov dword [rsp + 0x20], eax
call fcn.1400015e0
mov edi, eax
jmp 0x140003557
mov edx, dword [rsp + 0x64]
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
mov r8d, dword [rsp + 0x78]
jmp 0x140003634
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
mov r8d, dword [rsp + 0x78]
test rcx, rcx
jne 0x140003766
cmp esi, r15d
jae 0x140003766
mov ecx, r12d
sub ecx, 3
je 0x14000368a
dec ecx
je 0x14000366f
dec ecx
jne 0x1400036a0
mov rax, qword [rbp]
lea r9, [rsp + 0x70]
mov r8d, esi
mov rcx, rbp
call qword [rax + 0x90]
mov edi, eax
jmp 0x1400036a0
mov rax, qword [rbp]
lea r8, [rsp + 0x80]
mov edx, esi
mov rcx, rbp
call qword [rax + 0x90]
mov edi, eax
jmp 0x1400036a0
mov rax, qword [rbp]
lea r8, [rsp + 0x70]
mov edx, esi
mov rcx, rbp
call qword [rax + 0x90]
mov edi, eax
test edi, edi
js 0x140003808
mov ecx, r12d
sub ecx, 3
je 0x1400036bc
dec ecx
je 0x140003827
dec ecx
jne 0x140003702
mov ecx, dword [rsp + 0x60]
mov r9, qword [rbx + 8]
lea rax, [rbx + 0x24]
mov dword [rsp + 0x48], ecx
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x190]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov eax, dword [rbx + 0x3c]
mov rdx, r13
mov dword [rsp + 0x28], eax
mov eax, dword [rbx]
mov dword [rsp + 0x20], eax
call fcn.140001320
mov edi, eax
test edi, edi
js 0x140003808
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140003729
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rsp + 0x80], 0
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140003742
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rsp + 0x70], 0
mov edx, dword [rsp + 0x64]
inc esi
cmp esi, r15d
jb 0x140003646
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
mov r8d, dword [rsp + 0x78]
mov rax, qword [rax + 0x60]
inc edx
cmp edx, r8d
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x64], edx
jb 0x140003480
cmp dword [rsp + 0x98], 0
je 0x1400037b9
mov eax, dword [rsp + 0x88]
cmp eax, r15d
jae 0x1400037b9
mov r9d, dword [rsp + 0x638]
lea r8d, [rax - 1]
lea rdx, [rsp + 0x190]
mov rcx, rbp
call fcn.140002370
test eax, eax
mov edi, eax
js 0x140003808
cmp dword [rsp + 0x68], 0
je 0x1400037e7
mov rcx, qword [rsp + 0x5e0]
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rcx]
call qword [rax + 0xf8]
test eax, eax
mov edi, eax
js 0x140003808
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x660]
xor edi, edi
mov qword [rcx], rax
mov qword [rsp + 0x90], 0
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14000387c
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
xor ebx, ebx
mov qword [rsp + 0x80], rbx
jmp 0x14000387e
mov ecx, dword [rsp + 0x60]
mov r9, qword [rbx + 8]
lea rax, [rbx + 0x24]
mov dword [rsp + 0x50], ecx
mov rcx, qword [rsp + 0x80]
mov dword [rsp + 0x48], r14d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x190]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov eax, dword [rbx + 0x40]
mov rdx, r13
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 0x3c]
mov dword [rsp + 0x28], eax
mov eax, dword [rbx]
mov dword [rsp + 0x20], eax
call fcn.1400015e0
mov edi, eax
jmp 0x140003702
xor ebx, ebx
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140003893
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rsp + 0x70], rbx
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x1400038ae
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rsp + 0x90], rbx
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x1400038c9
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rsp + 0xa0], rbx
lea rcx, [rsp + 0x100]
call fcn.140003e60
mov eax, edi
mov r14, qword [rsp + 0x5a0]
mov r13, qword [rsp + 0x5a8]
mov r12, qword [rsp + 0x5b0]
mov rsi, qword [rsp + 0x5c0]
mov rbp, qword [rsp + 0x5c8]
mov rbx, qword [rsp + 0x5d0]
mov r15, qword [rsp + 0x598]
mov rdi, qword [rsp + 0x5b8]
add rsp, 0x5d8
ret