Function at 0x140224cc0
Capabilities:
Enumerate pe sections

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x398
movaps xmmword [rax - 0x58], xmm6
movaps xmmword [rax - 0x68], xmm7
mov rax, qword [0x1404b3028]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x48], rdx
mov rdi, rcx
mov rax, qword [rsp + 0x400]
mov qword [rsp + 0x50], rax
xor r12d, r12d
mov eax, dword [rsp + 0x408]
and eax, 1
mov dword [rsp + 0x34], eax
je 0x140224d39
mov r12d, reloc.WS2_32.dll_sendto
cmp r9d, 0xec
jle 0x140224d39
mov dword [rsp + 0x30], 0xec
call fcn.140179f30
movsxd rbp, eax
mov rcx, rdi
call fcn.14017ab40
mov r14d, eax
movd xmm7, eax
pshufd xmm7, xmm7, 0
mov rsi, rbp
mov eax, 8
mul rbp
mov r13, 0xffffffffffffffff
cmovo rax, r13
mov rcx, rax
call fcn.1402d0a1c
mov rbx, rax
mov qword [rsp + 0x40], rax
mov rcx, rdi
call fcn.140179e00
mov r9, rax
movq xmm4, rax
punpcklqdq xmm4, xmm4
xor edx, edx
mov eax, dword [reloc.WS2_32.dll_accept]
test ebp, ebp
jle 0x140224eb7
cmp ebp, 8
jb 0x140224eb7
cmp eax, 2
jl 0x140224eb7
movdqa xmm6, xmmword [0x1403bed90]
mov eax, ebp
and eax, 0x80000007
jge 0x140224dc9
dec eax
or eax, 0xfffffff8
inc eax
mov ecx, ebp
sub ecx, eax
movdqa xmm5, xmmword [0x140387340]
mov r10d, 4
lea r8, [rbx + 0x20]
nop
movq xmm3, xmm6
movq xmm1, xmm5
movq xmm0, xmm7
movd xmm2, edx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm3
pmulld xmm2, xmm0
pmulld xmm2, xmm1
pmovsxdq xmm0, xmm2
paddq xmm0, xmm4
movdqu xmmword [r8 - 0x20], xmm0
movq xmm2, xmm5
movq xmm1, xmm7
lea eax, [r10 - 2]
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmm3
pmulld xmm0, xmm1
pmulld xmm0, xmm2
pmovsxdq xmm0, xmm0
paddq xmm0, xmm4
movdqu xmmword [r8 - 0x10], xmm0
movq xmm2, xmm5
movq xmm1, xmm7
movd xmm0, r10d
pshufd xmm0, xmm0, 0
paddd xmm0, xmm3
pmulld xmm0, xmm1
pmulld xmm0, xmm2
pmovsxdq xmm0, xmm0
paddq xmm0, xmm4
movdqu xmmword [r8], xmm0
movq xmm2, xmm5
movq xmm1, xmm7
lea eax, [r10 + 2]
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmm3
pmulld xmm0, xmm1
pmulld xmm0, xmm2
pmovsxdq xmm0, xmm0
paddq xmm0, xmm4
movdqu xmmword [r8 + 0x10], xmm0
add edx, 8
add r10d, 8
lea r8, [r8 + 0x40]
cmp edx, ecx
jl 0x140224de0
movsxd rcx, edx
cmp rcx, rsi
jge 0x140224ee5
imul edx, r14d
lea edx, [rdx + rdx*2]
lea r8d, [r14 + r14*2]
nop word [rax + rax]
movsxd rax, edx
add rax, r9
mov qword [rbx + rcx*8], rax
add edx, r8d
inc rcx
cmp rcx, rsi
jl 0x140224ed0
mov r15d, r14d
imul r15d, ebp
movsxd rbx, r15d
mov rcx, rbx
call fcn.1402d0a1c
mov rdi, rax
movq xmm6, rax
punpcklqdq xmm6, xmm6
mov eax, 8
mul rsi
cmovo rax, r13
mov rcx, rax
call fcn.1402d0a1c
mov r13, rax
xor ecx, ecx
test ebp, ebp
jle 0x140225013
cmp ebp, 8
jb 0x140225013
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140225013
movdqa xmm4, xmmword [0x1403bed90]
mov edx, ebp
and edx, 0x80000007
jge 0x140224f53
dec edx
or edx, 0xfffffff8
inc edx
mov r9d, ebp
sub r9d, edx
lea rdx, [rax + 0x20]
mov r8d, 4
movq xmm3, xmm4
movq xmm0, xmm7
movd xmm1, ecx
pshufd xmm1, xmm1, 0
paddd xmm1, xmm3
pmulld xmm1, xmm0
pmovsxdq xmm0, xmm1
paddq xmm0, xmm6
movdqu xmmword [rdx - 0x20], xmm0
movq xmm1, xmm7
lea eax, [r8 - 2]
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmm3
pmulld xmm0, xmm1
pmovsxdq xmm0, xmm0
paddq xmm0, xmm6
movdqu xmmword [rdx - 0x10], xmm0
movq xmm1, xmm7
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm3
pmulld xmm2, xmm1
pmovsxdq xmm0, xmm2
paddq xmm0, xmm6
movdqu xmmword [rdx], xmm0
movq xmm1, xmm7
lea eax, [r8 + 2]
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmm3
pmulld xmm0, xmm1
pmovsxdq xmm0, xmm0
paddq xmm0, xmm6
movdqu xmmword [rdx + 0x10], xmm0
add ecx, 8
add r8d, 8
lea rdx, [rdx + 0x40]
cmp ecx, r9d
jl 0x140224f63
movsxd rdx, ecx
cmp rdx, rsi
jge 0x140225036
imul ecx, r14d
nop
movsxd rax, ecx
add rax, rdi
mov qword [r13 + rdx*8], rax
add ecx, r14d
inc rdx
cmp rdx, rsi
jl 0x140225020
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9, r13
mov r8, qword [rsp + 0x40]
mov edx, ebp
mov ecx, r14d
call fcn.140224950
mov rcx, qword [rsp + 0x40]
call fcn.14003b258
mov rcx, r13
call fcn.14003b258
mov r13d, dword [rsp + 0x408]
test r13b, 4
je 0x1402250f0
mov rsi, qword [rsp + 0x48]
mov rcx, rsi
call fcn.14017af20
test al, al
jne 0x14022509c
mov r9b, 1
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.1401792b0
mov rcx, rsi
call fcn.140179e00
xor r9d, r9d
test r15d, r15d
jle 0x1402250f0
lea r8, [rax + 2]
movzx edx, byte [r9 + rdi]
lea rax, [rsp + 0x60]
add rax, rdx
movzx ecx, byte [rax + rdx*2]
mov byte [r8 - 2], cl
lea rax, [rsp + 0x61]
add rax, rdx
movzx ecx, byte [rax + rdx*2]
mov byte [r8 - 1], cl
lea rax, [rsp + 0x62]
add rax, rdx
movzx ecx, byte [rax + rdx*2]
mov byte [r8], cl
inc r9
lea r8, [r8 + 3]
cmp r9, rbx
jl 0x1402250b0
mov r10, qword [rsp + 0x50]
test r10, r10
je 0x1402251e2
test r13b, 2
je 0x1402251e2
mov ebp, dword [rsp + 0x34]
test ebp, ebp
je 0x1402251dd
xor edx, edx
test r15d, r15d
jle 0x1402251b9
cmp r15d, 0x40
jb 0x1402251b9
movsx eax, r12b
movd xmm2, eax
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
mov eax, r15d
and eax, 0x8000003f
jge 0x14022514f
dec eax
or eax, 0xffffffc0
inc eax
sub r15d, eax
movsxd r9, r15d
lea rax, [rdi + 0x20]
mov r8, 0xffffffffffffffe0
sub r8, rdi
movdqu xmm0, xmmword [rax - 0x20]
movdqa xmm1, xmm2
paddb xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
movdqu xmm0, xmmword [rax - 0x10]
movdqa xmm1, xmm2
paddb xmm1, xmm0
movdqu xmmword [rax - 0x10], xmm1
movdqu xmm0, xmmword [rax]
movdqa xmm1, xmm2
paddb xmm1, xmm0
movdqu xmmword [rax], xmm1
movdqu xmm0, xmmword [rax + 0x10]
movdqa xmm1, xmm2
paddb xmm1, xmm0
movdqu xmmword [rax + 0x10], xmm1
add edx, 0x40
lea rax, [rax + 0x40]
lea rcx, [r8 + rax]
cmp rcx, r9
jl 0x140225163
movsxd rcx, edx
cmp rcx, rbx
jge 0x1402251dd
lea rax, [rcx + rdi]
sub rbx, rcx
nop dword [rax + rax]
add byte [rax], r12b
lea rax, [rax + 1]
sub rbx, 1
jne 0x1402251d0
mov qword [r10], rdi
jmp 0x1402251ee
mov rcx, rdi
call fcn.14003b258
mov ebp, dword [rsp + 0x34]
mov r13, qword [rsp + 0x38]
test r13, r13
je 0x1402255cf
mov ecx, 0x100
call fcn.1402d0a1c
mov r14, rax
mov ecx, 0x100
call fcn.1402d0a1c
mov rsi, rax
mov ecx, 0x100
call fcn.1402d0a1c
mov r15, rax
test ebp, ebp
je 0x140225430
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
mov ecx, 0x50
call fcn.1402d0a1c
mov rdi, rax
mov r9, rax
xor edx, edx
lea r8d, [rdx + 0x14]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_GetSystemPaletteEntries]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
movzx ecx, byte [rdi]
mov byte [r14], cl
movzx ecx, byte [rdi + 1]
mov byte [rsi], cl
movzx ecx, byte [rdi + 2]
mov byte [r15], cl
movzx eax, byte [rdi + 4]
mov byte [r14 + 1], al
movzx eax, byte [rdi + 5]
mov byte [rsi + 1], al
movzx eax, byte [rdi + 6]
mov byte [r15 + 1], al
movzx eax, byte [rdi + 8]
mov byte [r14 + 2], al
movzx eax, byte [rdi + 9]
mov byte [rsi + 2], al
movzx eax, byte [rdi + 0xa]
mov byte [r15 + 2], al
movzx eax, byte [rdi + 0xc]
mov byte [r14 + 3], al
movzx eax, byte [rdi + 0xd]
mov byte [rsi + 3], al
movzx eax, byte [rdi + 0xe]
mov byte [r15 + 3], al
movzx eax, byte [rdi + 0x10]
mov byte [r14 + 4], al
movzx eax, byte [rdi + 0x11]
mov byte [rsi + 4], al
movzx eax, byte [rdi + 0x12]
mov byte [r15 + 4], al
movzx eax, byte [rdi + 0x14]
mov byte [r14 + 5], al
movzx eax, byte [rdi + 0x15]
mov byte [rsi + 5], al
movzx eax, byte [rdi + 0x16]
mov byte [r15 + 5], al
movzx eax, byte [rdi + 0x18]
mov byte [r14 + 6], al
movzx eax, byte [rdi + 0x19]
mov byte [rsi + 6], al
movzx eax, byte [rdi + 0x1a]
mov byte [r15 + 6], al
movzx eax, byte [rdi + 0x1c]
mov byte [r14 + 7], al
movzx eax, byte [rdi + 0x1d]
mov byte [rsi + 7], al
movzx eax, byte [rdi + 0x1e]
mov byte [r15 + 7], al
movzx eax, byte [rdi + 0x20]
mov byte [r14 + 8], al
movzx eax, byte [rdi + 0x21]
mov byte [rsi + 8], al
movzx eax, byte [rdi + 0x22]
mov byte [r15 + 8], al
movzx eax, byte [rdi + 0x24]
mov byte [r14 + 9], al
movzx eax, byte [rdi + 0x25]
mov byte [rsi + 9], al
movzx eax, byte [rdi + 0x26]
mov byte [r15 + 9], al
movzx eax, byte [rdi + 0x28]
mov byte [r14 + 0xa], al
movzx eax, byte [rdi + 0x29]
mov byte [rsi + 0xa], al
movzx eax, byte [rdi + 0x2a]
mov byte [r15 + 0xa], al
movzx eax, byte [rdi + 0x2c]
mov byte [r14 + 0xb], al
movzx eax, byte [rdi + 0x2d]
mov byte [rsi + 0xb], al
movzx eax, byte [rdi + 0x2e]
mov byte [r15 + 0xb], al
movzx eax, byte [rdi + 0x30]
mov byte [r14 + 0xc], al
movzx eax, byte [rdi + 0x31]
mov byte [rsi + 0xc], al
movzx eax, byte [rdi + 0x32]
mov byte [r15 + 0xc], al
movzx eax, byte [rdi + 0x34]
mov byte [r14 + 0xd], al
movzx eax, byte [rdi + 0x35]
mov byte [rsi + 0xd], al
movzx eax, byte [rdi + 0x36]
mov byte [r15 + 0xd], al
movzx eax, byte [rdi + 0x38]
mov byte [r14 + 0xe], al
movzx eax, byte [rdi + 0x39]
mov byte [rsi + 0xe], al
movzx eax, byte [rdi + 0x3a]
mov byte [r15 + 0xe], al
movzx eax, byte [rdi + 0x3c]
mov byte [r14 + 0xf], al
movzx eax, byte [rdi + 0x3d]
mov byte [rsi + 0xf], al
movzx eax, byte [rdi + 0x3e]
mov byte [r15 + 0xf], al
movzx eax, byte [rdi + 0x40]
mov byte [r14 + 0x10], al
movzx eax, byte [rdi + 0x41]
mov byte [rsi + 0x10], al
movzx eax, byte [rdi + 0x42]
mov byte [r15 + 0x10], al
movzx eax, byte [rdi + 0x44]
mov byte [r14 + 0x11], al
movzx eax, byte [rdi + 0x45]
mov byte [rsi + 0x11], al
movzx eax, byte [rdi + 0x46]
mov byte [r15 + 0x11], al
movzx eax, byte [rdi + 0x48]
mov byte [r14 + 0x12], al
movzx eax, byte [rdi + 0x49]
mov byte [rsi + 0x12], al
movzx eax, byte [rdi + 0x4a]
mov byte [r15 + 0x12], al
movzx eax, byte [rdi + 0x4c]
mov byte [r14 + 0x13], al
movzx eax, byte [rdi + 0x4d]
mov byte [rsi + 0x13], al
movzx eax, byte [rdi + 0x4e]
mov byte [r15 + 0x13], al
mov rcx, rdi
call fcn.14003b258
movsxd r10, dword [rsp + 0x30]
mov r9, r10
test r10d, r10d
jle 0x140225476
mov r8d, r12d
lea rdx, [rsp + 0x62]
nop word [rax + rax]
movsxd rcx, r8d
movzx eax, byte [rdx - 2]
mov byte [rcx + r14], al
movzx eax, byte [rdx - 1]
mov byte [rcx + rsi], al
movzx eax, byte [rdx]
mov byte [rcx + r15], al
inc r8d
lea rdx, [rdx + 3]
sub r9, 1
jne 0x140225450
lea r8d, [r10 + r12]
mov edi, r8d
mov eax, 0x100
sub eax, r8d
cmp r8d, 0x100
jge 0x140225532
cmp eax, 0x10
jb 0x140225532
movsxd rcx, r8d
lea r12, [rcx + r15]
lea r9, [r15 + 0xff]
lea rbp, [rcx + rsi]
lea r10, [rsi + 0xff]
cmp r12, r10
ja 0x1402254be
cmp r9, rbp
jae 0x140225532
add rcx, r14
lea rdx, [r14 + 0xff]
cmp r12, rdx
ja 0x1402254d2
cmp r9, rcx
jae 0x140225532
cmp rbp, rdx
ja 0x1402254dc
cmp r10, rcx
jae 0x140225532
and eax, 0x8000000f
jge 0x1402254ea
dec eax
or eax, 0xfffffff0
inc eax
mov edx, 0x100
sub edx, eax
add edi, 0x10
cmp edi, edx
jl 0x1402254f1
sub edx, r8d
lea eax, [rdx + 0xf]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
movsxd rbx, eax
shl rbx, 4
mov r8, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov r8, rbx
xor edx, edx
mov rcx, rbp
call sub.VCRUNTIME140.dll_memset
mov r8, rbx
xor edx, edx
mov rcx, r12
call sub.VCRUNTIME140.dll_memset
movsxd r9, edi
cmp r9, 0x100
jge 0x140225576
lea rax, [r9 + rsi]
mov rdx, r14
sub rdx, rsi
mov r8, r15
sub r8, rsi
mov ecx, 0x100
sub rcx, r9
nop word [rax + rax]
mov byte [rdx + rax], 0
mov byte [rax], 0
mov byte [r8 + rax], 0
lea rax, [rax + 1]
sub rcx, 1
jne 0x140225560
mov ecx, reloc.COMCTL32.dll_CreateUpDownControl
call fcn.14003b21c
mov rbx, rax
mov qword [rsp + 0x38], rax
mov qword [rax + 8], 0
lea rax, vtable.wxPalette.0
mov qword [rbx], rax
mov qword [rsp + 0x20], r15
mov r9, rsi
mov r8, r14
mov edx, 0x100
mov rcx, rbx
call fcn.140174080
nop
mov qword [r13], rbx
mov rcx, r14
call fcn.14003b258
mov rcx, rsi
call fcn.14003b258
mov rcx, r15
call fcn.14003b258
mov al, 1
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.14003b100
movaps xmm6, xmmword [rsp + 0x380]
movaps xmm7, xmmword [rsp + 0x370]
add rsp, 0x398
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret